/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #faf8f5;
}

h1, h2, h3 {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation */
.navbar {
    background: white;
    color: #4a2c2a;
    padding: 1rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 86px;
    width: auto;
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.header-icon {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #4a2c2a;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: background-color 0.2s, color 0.2s;
}

.header-icon:hover {
    background-color: #f5f0eb;
    color: #8b4513;
}

.header-icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.cart-badge {
    background-color: #d97706;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
    justify-content: center;
    padding: 0.75rem 0;
    border-top: 1px solid #e5e0db;
}

.nav-links a {
    color: #4a2c2a;
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #d97706;
    transition: width 0.2s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: #8b4513;
}

/* Dropdown menu for About Us */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    min-width: 180px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    padding: 0.5rem 0;
    padding-top: 1rem;
    margin-top: 0;
    z-index: 1001;
    border: 1px solid #e5e0db;
}

.nav-dropdown-content::before {
    content: '';
    position: absolute;
    top: -0.5rem;
    left: 0;
    right: 0;
    height: 0.5rem;
    background: transparent;
}

.nav-dropdown:hover .nav-dropdown-content {
    display: block;
}

.nav-dropdown-content a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: #4a2c2a;
    text-decoration: none;
    font-size: 1rem;
    transition: background-color 0.2s;
}

.nav-dropdown-content a:hover {
    background-color: #f5f0eb;
    color: #8b4513;
}

.nav-dropdown-content a::after {
    display: none;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #4a2c2a 0%, #6b3d2e 50%, #8b4513 100%);
    color: white;
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="2" height="2" fill="white" opacity="0.05"/></svg>');
    background-size: 50px 50px;
}

.hero .container {
    position: relative;
}

.hero h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.1;
}

.hero p {
    font-size: 1.35rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.btn-primary {
    background-color: #d97706;
    color: white;
}

.btn-primary:hover {
    background-color: #b45309;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 16px rgba(217, 119, 6, 0.35);
}

.btn-secondary {
    background-color: transparent;
    color: #4a2c2a;
    border: 2px solid #4a2c2a;
}

.btn-secondary:hover {
    background-color: #4a2c2a;
    color: white;
    transform: translateY(-1px);
}

.btn-small {
    padding: 0.625rem 1.25rem;
    font-size: 0.9rem;
}

.btn-disabled {
    background-color: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-disabled:hover {
    background-color: #e5e7eb;
    transform: none;
}

/* Sections */
.services, .about, .shop, .media-section, .tree-services, .admin-section {
    padding: 5rem 0;
}

.services h2, .about h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.page-header {
    background: linear-gradient(135deg, #4a2c2a 0%, #6b3d2e 100%);
    color: white;
    padding: 3.5rem 0;
    text-align: center;
}

.page-header h2 {
    font-size: 2.75rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.page-header p {
    font-size: 1.15rem;
    opacity: 0.9;
}

/* Service Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #f3f4f6;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}

.service-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.25rem;
    color: #d97706;
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.service-card p {
    margin-bottom: 1.5rem;
    color: #6b7280;
    line-height: 1.7;
}

/* Sawmill Banner */
.sawmill-banner {
    width: 100%;
    overflow: hidden;
    line-height: 0;
    position: relative;
}

.sawmill-banner img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
}

.sawmill-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
    text-align: center;
    line-height: 1.6;
}

.sawmill-overlay p {
    color: white;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Category Tabs */
.category-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.category-tab {
    padding: 0.75rem 1.5rem;
    border: 2px solid #d4c5b9;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s;
    color: #6b3d2e;
}

.category-tab:hover {
    border-color: #4a2c2a;
    color: #4a2c2a;
    background: #faf5f0;
}

.category-tab.active {
    background: linear-gradient(135deg, #4a2c2a 0%, #6b3d2e 100%);
    border-color: #4a2c2a;
    color: white;
}

/* Custom Boards Banner */
.custom-banner {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #fbbf24;
    border-radius: 12px;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.custom-banner-content h3 {
    color: #92400e;
    margin-bottom: 0.25rem;
    font-size: 1.25rem;
}

.custom-banner-content p {
    color: #78350f;
    margin: 0;
}

/* Engraving Option */
.engraving-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 8px;
    margin-bottom: 1rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: #4b5563;
    transition: background 0.2s;
}

.engraving-option:hover {
    background: #f3f4f6;
}

.engraving-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

/* Cart Notification */
.cart-notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #1a1a1a;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2000;
}

.cart-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.cart-notification a {
    color: #fcd34d;
    text-decoration: none;
    font-weight: 600;
}

.cart-notification a:hover {
    text-decoration: underline;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid #f3f4f6;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.product-card.out-of-stock {
    opacity: 0.65;
}

.product-image {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
    background: #f9fafb;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.out-of-stock-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0,0,0,0.85);
    color: white;
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    border-radius: 8px;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.product-info {
    padding: 1.75rem;
}

.product-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
    color: #1a1a1a;
}

.product-description {
    color: #6b7280;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f3f4f6;
}

.product-price {
    font-size: 1.75rem;
    font-weight: 800;
    color: #d97706;
    letter-spacing: -0.5px;
}

.product-stock {
    font-size: 0.875rem;
    font-weight: 600;
    color: #10b981;
    padding: 0.25rem 0.75rem;
    background: #d1fae5;
    border-radius: 6px;
}

.product-stock.stock-low {
    color: #f59e0b;
    background: #fef3c7;
}

.product-stock.stock-out {
    color: #ef4444;
    background: #fee2e2;
}

.product-info .btn {
    width: 100%;
}

/* Tree Removal Services */
.services-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.service-info h3 {
    margin-bottom: 1rem;
    color: #2d3e50;
}

.service-list {
    list-style: none;
    margin-bottom: 2rem;
}

.service-list li {
    padding: 0.5rem 0;
    font-size: 1.1rem;
}

.pricing-info {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #fbbf24;
}

.pricing-info p {
    margin-bottom: 0.5rem;
}

.pricing-note {
    font-size: 0.9rem;
    color: #666;
    margin-top: 1rem;
    font-style: italic;
}

/* Contact Form */
.contact-form-container {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid #f3f4f6;
}

.contact-form-container h3 {
    margin-bottom: 2rem;
    color: #1a1a1a;
    font-size: 1.75rem;
    font-weight: 700;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.625rem;
    font-weight: 600;
    color: #374151;
    font-size: 0.95rem;
}

.form-group label .required,
.form-group label.required::after {
    color: #dc2626;
    font-weight: 700;
}

.form-group input:required ~ .required-indicator,
.form-group select:required ~ .required-indicator {
    color: #dc2626;
}

/* Auto-add asterisk to labels for required fields */
.form-group:has(input:required) > label::after,
.form-group:has(select:required) > label::after,
.form-group:has(textarea:required) > label::after {
    content: ' *';
    color: #dc2626;
    font-weight: 700;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s;
    background: #fafafa;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #d97706;
    background: white;
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.1);
}

.form-message {
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
}

.form-message.success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.form-message.error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

/* About Pages */
.about-content {
    padding: 4rem 0;
}

.about-intro {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 3rem;
    align-items: start;
    margin-bottom: 4rem;
}

.about-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

.about-text h3 {
    font-size: 1.75rem;
    color: #4a2c2a;
    margin-bottom: 1.25rem;
}

.about-text p {
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.about-text p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .about-intro {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image {
        max-width: 350px;
        margin: 0 auto;
    }
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.about-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid #f3f4f6;
    text-align: center;
    transition: all 0.3s ease;
}

.about-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #4a2c2a;
}

.about-card p {
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.background-content {
    padding: 4rem 0;
}

.story-section {
    max-width: 800px;
    margin: 0 auto 3rem;
}

.story-section h3 {
    font-size: 1.75rem;
    color: #4a2c2a;
    margin-bottom: 1rem;
}

.story-section p {
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

/* Service Area Info */
.service-area {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    margin-top: 2rem;
    border-left: 4px solid #3b82f6;
}

.service-area h3 {
    color: #1e40af;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.service-area p {
    color: #1e3a8a;
    margin: 0;
}

/* Contact Page */
.contact-section {
    padding: 4rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
}

.contact-info h3 {
    font-size: 1.5rem;
    color: #4a2c2a;
    margin-bottom: 1rem;
}

.contact-info > p {
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-item {
    margin-bottom: 1.5rem;
}

.contact-item strong {
    display: block;
    color: #4a2c2a;
    margin-bottom: 0.25rem;
}

.contact-item p {
    color: #6b7280;
    margin: 0;
}

.contact-item a {
    color: #d97706;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.response-time {
    background: #f3f4f6;
    padding: 1rem 1.25rem;
    border-radius: 8px;
}

.response-time p {
    color: #6b7280;
    margin: 0;
    font-size: 0.9rem;
}

/* Legal Pages (Privacy Policy, Terms of Service) */
.legal-content {
    padding: 3rem 0 5rem;
}

.legal-document {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 2.5rem 3rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.legal-updated {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.legal-document h3 {
    font-size: 1.4rem;
    color: #4a2c2a;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
}

.legal-document h3:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.legal-document h4 {
    font-size: 1.1rem;
    color: #6b3d2e;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-document p {
    color: #374151;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-document ul {
    margin: 1rem 0 1.5rem 1.5rem;
    color: #374151;
    line-height: 1.8;
}

.legal-document ul li {
    margin-bottom: 0.5rem;
}

.legal-document a {
    color: #d97706;
    text-decoration: none;
}

.legal-document a:hover {
    text-decoration: underline;
}

.legal-document .contact-list {
    list-style: none;
    margin-left: 0;
    background: #f9fafb;
    padding: 1.25rem 1.5rem;
    border-radius: 8px;
}

.legal-document .contact-list li {
    margin-bottom: 0.5rem;
}

.legal-document .contact-list li:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .legal-document {
        padding: 1.5rem;
        margin: 0 1rem;
    }

    .legal-document h3 {
        font-size: 1.25rem;
    }
}

/* Image Carousel */
.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #1a1a1a;
}

.carousel-slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 550px;
    object-fit: cover;
}

.carousel-slide .slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    text-align: center;
}

.carousel-slide .slide-content h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.carousel-slide .slide-content p {
    opacity: 0.9;
    margin-bottom: 1rem;
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    color: #1a1a1a;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.carousel-prev {
    left: 1rem;
}

.carousel-next {
    right: 1rem;
}

.carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.carousel-dot.active,
.carousel-dot:hover {
    background: white;
}

/* Cart Page */
.cart-section {
    padding: 3rem 0;
}

.cart-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto auto auto;
    gap: 1.5rem;
    align-items: center;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    border: 1px solid #f3f4f6;
}

.cart-item-image img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-details h4 {
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.engraving-badge {
    display: inline-block;
    font-size: 0.75rem;
    background: #fef3c7;
    color: #92400e;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.item-price {
    color: #6b7280;
    font-size: 0.9rem;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #e5e7eb;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
}

.qty-btn:hover {
    background: #f3f4f6;
}

.cart-item-total {
    font-weight: 700;
    color: #1a1a1a;
    font-size: 1.1rem;
}

.remove-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: #9ca3af;
    transition: color 0.2s;
}

.remove-btn:hover {
    color: #ef4444;
}

.remove-btn svg {
    fill: currentColor;
}

.cart-summary {
    background: #faf5f0;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e5ddd4;
    border-left: 4px solid #4a2c2a;
    height: fit-content;
    position: sticky;
    top: 120px;
}

.summary-totals {
    margin-top: 1rem;
    padding-top: 0.5rem;
    border-top: 2px solid #e5e7eb;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.summary-row.total {
    border-bottom: none;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    padding-top: 1rem;
}

.checkout-btn {
    width: 100%;
    margin-top: 1.5rem;
    text-align: center;
}

.continue-shopping {
    display: block;
    text-align: center;
    margin-top: 1rem;
    color: #6b7280;
    text-decoration: none;
}

.continue-shopping:hover {
    color: #4a2c2a;
}

.empty-cart {
    text-align: center;
    padding: 4rem 2rem;
    grid-column: 1 / -1;
}

.empty-cart h3 {
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.empty-cart p {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .logo img {
        height: 67px;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .nav-links a {
        font-size: 1rem;
    }

    .carousel-slide img {
        height: 380px;
    }

    .carousel-prev,
    .carousel-next {
        width: 40px;
        height: 40px;
    }

    .cart-content {
        grid-template-columns: 1fr;
    }

    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: 1rem;
    }

    .cart-item-quantity,
    .cart-item-total,
    .remove-btn {
        grid-column: 2;
    }

    .checkout-content {
        grid-template-columns: 1fr;
    }

    .checkout-summary {
        position: static;
    }

    .process-steps {
        grid-template-columns: 1fr 1fr;
    }
}

/* Videos Grid */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.video-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid #f3f4f6;
}

.video-card:hover {
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}

.video-embed {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background: #1a1a1a;
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-info {
    padding: 1.75rem;
}

.video-info h3 {
    margin-bottom: 0.75rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: #1a1a1a;
}

.video-info p {
    color: #6b7280;
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.media-info {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.1rem;
    color: #4b5563;
}

.edit-note {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #fbbf24;
    padding: 1.75rem;
    border-radius: 12px;
    margin-top: 2rem;
}

.edit-note code {
    background-color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-family: 'SF Mono', 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
    border: 1px solid #fbbf24;
}

/* Admin Section */
.admin-info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border-left: 4px solid #3b82f6;
}

.admin-info code {
    background-color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-family: 'SF Mono', 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
    border: 1px solid #60a5fa;
}

.admin-products-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.admin-product-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid #f3f4f6;
}

.admin-product-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 2px solid #e5e7eb;
}

.admin-product-header h3 {
    font-weight: 700;
    font-size: 1.5rem;
    color: #1a1a1a;
}

.product-id {
    color: #666;
    font-size: 0.9rem;
}

.admin-product-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.admin-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.save-message {
    font-size: 0.9rem;
}

.save-message.success {
    color: #4caf50;
}

.save-message.error {
    color: #f44336;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #4a2c2a 0%, #6b3d2e 50%, #8b4513 100%);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 5rem;
    border-top: 3px solid #d97706;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.footer-nav a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-nav a:hover {
    color: #fcd34d;
}

.footer-divider {
    color: rgba(255,255,255,0.4);
}

footer p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.85);
}

footer a {
    color: white;
    text-decoration: none;
}

footer a:hover {
    color: #fcd34d;
}

/* Checkout Page */
.checkout-section {
    padding: 3rem 0;
}

.checkout-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
}

.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.checkout-step {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #f3f4f6;
}

.checkout-step h3 {
    font-size: 1.25rem;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e5e7eb;
}

.checkout-submit {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.engraving-note {
    color: #6b7280;
    margin-bottom: 1rem;
}

.engraving-upload-item {
    margin-bottom: 1rem;
    padding: 1rem;
    background: #fafafa;
    border-radius: 8px;
}

.engraving-upload-item label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.engraving-upload-item input[type="file"] {
    width: 100%;
}

.engraving-upload-item .upload-note {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-top: 0.5rem;
}

.engraving-upload-section {
    background: #fffbeb;
    border: 1px solid #fbbf24;
    border-radius: 12px;
    padding: 1.5rem;
}

.upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
}

.upload-area:hover {
    border-color: #d97706;
    background: #fef3c7;
}

.upload-area input[type="file"] {
    display: none;
}

.upload-area p {
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.upload-area small {
    color: #9ca3af;
    font-size: 0.8rem;
}

.uploaded-files {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.uploaded-file {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    background: white;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.payment-option:hover {
    border-color: #d97706;
}

.payment-option.selected {
    border-color: #d97706;
    background: #fffbeb;
}

.payment-option input[type="radio"] {
    width: 20px;
    height: 20px;
}

.payment-option-info h4 {
    margin-bottom: 0.25rem;
    color: #1a1a1a;
}

.payment-option-info p {
    color: #6b7280;
    font-size: 0.9rem;
    margin: 0;
}

/* Google Sign-in Prompt */
.google-signin-prompt {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 2px solid #f59e0b;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.signin-prompt-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.signin-prompt-title {
    margin: 0;
    color: #92400e;
    font-size: 1.05rem;
    font-weight: 700;
}

.signin-prompt-desc {
    margin: 0.15rem 0 0;
    color: #78350f;
    font-size: 0.9rem;
}

.google-signin-prompt p {
    margin: 0;
}

.btn-google {
    display: inline-flex;
    align-items: center;
    background: white;
    color: #1a1a1a;
    border: 1px solid #e5e7eb;
    padding: 0.6rem 1.25rem;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.btn-google:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-google-checkout {
    padding: 0.875rem 1.5rem;
    font-size: 1.05rem;
    font-weight: 600;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.btn-google-checkout:hover {
    border-color: #d97706;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.15);
    transform: translateY(-1px);
}

.logged-in-user {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1.5rem;
}

.logged-in-user p {
    margin: 0;
    color: #166534;
    font-size: 0.95rem;
}

/* Delivery Options */
.delivery-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.delivery-option {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.delivery-option:hover {
    border-color: #d97706;
}

.delivery-option:has(input:checked) {
    border-color: #d97706;
    background: #fffbeb;
}

.delivery-option input[type="radio"] {
    width: 20px;
    height: 20px;
}

.delivery-option span {
    font-weight: 600;
    color: #1a1a1a;
}

.delivery-option p {
    width: 100%;
    margin: 0.5rem 0 0 1.75rem;
    color: #6b7280;
    font-size: 0.9rem;
}

.checkout-summary {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #f3f4f6;
    height: fit-content;
    position: sticky;
    top: 120px;
}

.checkout-summary h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e5e7eb;
}

.order-items {
    margin-bottom: 1.5rem;
}

.order-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.order-item .item-name {
    flex: 1;
    font-size: 0.95rem;
    color: #374151;
}

.order-item .item-qty {
    color: #6b7280;
    font-size: 0.85rem;
    white-space: nowrap;
}

.order-item .item-price {
    font-weight: 600;
    color: #1a1a1a;
    white-space: nowrap;
}

.order-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

.order-item-details {
    flex: 1;
}

.order-item-details h4 {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.order-item-details .item-price {
    color: #6b7280;
    font-size: 0.85rem;
}

.place-order-btn {
    width: 100%;
    margin-top: 1rem;
    padding: 1rem;
    font-size: 1.1rem;
}

.secure-checkout {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.8rem;
    color: #6b7280;
}

.secure-checkout svg {
    width: 14px;
    height: 14px;
    vertical-align: middle;
    margin-right: 0.25rem;
}

/* Account Page */
.account-section {
    padding: 4rem 0;
}

.account-content {
    max-width: 480px;
    margin: 0 auto;
}

.login-card {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid #f3f4f6;
    text-align: center;
}

.login-card h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.login-card > p {
    color: #6b7280;
    margin-bottom: 2rem;
}

.google-login-btn,
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem 1.5rem;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    cursor: pointer;
    transition: all 0.2s;
}

.google-login-btn:hover,
.btn-google:hover {
    border-color: #d97706;
    background: #fafafa;
}

.google-login-btn svg,
.btn-google svg {
    width: 24px;
    height: 24px;
}

.login-container {
    display: flex;
    justify-content: center;
}

.guest-note {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
    color: #9ca3af;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.guest-checkout-note {
    background: #f3f4f6;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #6b7280;
}

.guest-checkout-note a {
    color: #d97706;
    text-decoration: none;
    font-weight: 600;
}

.guest-checkout-note a:hover {
    text-decoration: underline;
}

/* User Profile (when logged in) */
.user-profile {
    text-align: center;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 1rem;
    border: 3px solid #d97706;
}

.user-profile h3 {
    margin-bottom: 0.25rem;
}

.user-profile .user-email {
    color: #6b7280;
    margin-bottom: 2rem;
}

.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.logout-btn {
    background: #ef4444;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.logout-btn:hover {
    background: #dc2626;
}

/* Account Sections (logged in view) */
.account-sections {
    display: grid;
    gap: 1.5rem;
    margin: 2rem 0;
}

.account-card {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: left;
}

.account-card h4 {
    color: #4a2c2a;
    margin-bottom: 0.5rem;
}

.account-card p {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.no-orders {
    font-style: italic;
    color: #9ca3af !important;
}

.no-orders a {
    color: #d97706;
    text-decoration: none;
}

.no-orders a:hover {
    text-decoration: underline;
}

.loading-text {
    color: #9ca3af;
    font-style: italic;
}

/* Order History Cards */
.order-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: box-shadow 0.2s;
}

.order-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
}

.order-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.order-id {
    font-weight: 600;
    color: #4a2c2a;
    font-size: 0.95rem;
}

.order-date {
    color: #6b7280;
    font-size: 0.85rem;
}

.order-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.order-status {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    text-transform: capitalize;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-completed {
    background: #d1fae5;
    color: #065f46;
}

.status-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.order-total {
    font-weight: 700;
    color: #4a2c2a;
    font-size: 1.05rem;
}

.order-details {
    padding: 0 1.25rem 1.25rem;
    border-top: 1px solid #f3f4f6;
}

.order-items-label {
    font-size: 0.85rem;
    color: #6b7280;
    margin: 1rem 0 0.5rem;
}

.order-items-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.order-items-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
    font-size: 0.9rem;
    color: #374151;
    border-bottom: 1px solid #f9fafb;
}

.order-totals {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e5e7eb;
}

.order-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #6b7280;
    padding: 0.2rem 0;
}

.order-grand-total {
    font-weight: 700;
    color: #4a2c2a;
    font-size: 1rem;
    padding-top: 0.5rem;
    margin-top: 0.25rem;
    border-top: 1px solid #e5e7eb;
}

@media (max-width: 480px) {
    .order-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .order-meta {
        width: 100%;
        justify-content: space-between;
    }
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    justify-content: center;
}

.profile-header h3 {
    margin-bottom: 0.25rem;
}

.profile-header p {
    color: #6b7280;
    margin: 0;
}

/* Custom Boards Page */
.custom-section {
    padding: 4rem 0;
}

.custom-intro {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
}

.custom-intro h3 {
    font-size: 2rem;
    color: #4a2c2a;
    margin-bottom: 1rem;
}

.custom-intro p {
    color: #6b7280;
    font-size: 1.1rem;
    line-height: 1.7;
}

.custom-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.custom-option-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid #f3f4f6;
    transition: all 0.3s ease;
}

.custom-option-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}

.custom-option-card h4 {
    color: #4a2c2a;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.custom-option-card p {
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

.custom-process {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 3rem;
    border-radius: 16px;
    margin-bottom: 4rem;
}

.custom-process h3 {
    text-align: center;
    color: #92400e;
    font-size: 1.75rem;
    margin-bottom: 2rem;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.process-step {
    text-align: center;
}

.step-number {
    width: 48px;
    height: 48px;
    background: #d97706;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.process-step h4 {
    color: #92400e;
    margin-bottom: 0.5rem;
}

.process-step p {
    color: #78350f;
    font-size: 0.95rem;
    margin: 0;
}

.custom-cta {
    text-align: center;
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid #f3f4f6;
}

.custom-cta h3 {
    font-size: 1.5rem;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
}

.custom-cta p {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

/* Special Shop Sections (Lumber, Custom Orders) */
.special-section {
    background: #f9fafb;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.lumber-content,
.custom-orders-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2rem;
}

.lumber-content h3,
.custom-orders-content h3 {
    color: #4a2c2a;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.lumber-content p,
.custom-orders-content p {
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.lumber-cta {
    margin-top: 1.5rem;
    font-weight: 600;
}

.lumber-cta a {
    color: #4a2c2a;
    text-decoration: underline;
}

.lumber-contact,
.custom-orders-contact {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.lumber-contact h4,
.custom-orders-contact h4 {
    color: #4a2c2a;
    margin-bottom: 1.5rem;
    text-align: center;
}

.inline-contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.inline-contact-form .form-group {
    margin-bottom: 1rem;
}

.inline-contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #374151;
    font-weight: 500;
}

.inline-contact-form input,
.inline-contact-form select,
.inline-contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
}

.inline-contact-form input:focus,
.inline-contact-form select:focus,
.inline-contact-form textarea:focus {
    outline: none;
    border-color: #4a2c2a;
    box-shadow: 0 0 0 3px rgba(74, 44, 42, 0.1);
}

.inline-contact-form button {
    width: 100%;
    margin-top: 1rem;
}

/* Product Dimensions */
.product-dimensions {
    font-size: 0.85rem;
    color: #6b7280;
    margin: 0.25rem 0 0.5rem;
    font-style: italic;
}

/* Add-On Options */
.addon-options {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin: 0.5rem 0;
}

.addon-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    cursor: pointer;
}

.addon-option input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

.addon-option input[type="checkbox"]:disabled {
    opacity: 0.7;
}

.addon-option span {
    color: #374151;
}

.addon-option em {
    color: #059669;
    font-size: 0.8rem;
}

/* Custom Radio Buttons */
input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #d4c5b9;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
    flex-shrink: 0;
}

input[type="radio"]:checked {
    border-color: #d97706;
    background: white;
}

input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d97706;
}

input[type="radio"]:hover {
    border-color: #b45309;
}

input[type="radio"]:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.2);
}

/* Custom Checkboxes */
input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #d4c5b9;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
    flex-shrink: 0;
}

input[type="checkbox"]:checked {
    border-color: #d97706;
    background: #d97706;
}

input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 1px;
    left: 5px;
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

input[type="checkbox"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

input[type="checkbox"]:disabled:checked {
    background: #b45309;
    border-color: #b45309;
}

input[type="checkbox"]:hover:not(:disabled) {
    border-color: #b45309;
}

input[type="checkbox"]:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.2);
}

/* Engraving Options */
.engraving-container {
    margin-top: 0.5rem;
}

.engraving-options {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 0.75rem;
}

.engraving-options .engraving-note {
    font-size: 0.8rem;
    font-style: italic;
    color: #6b7280;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.engraving-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.engraving-row:last-child {
    margin-bottom: 0;
}

.engraving-row label {
    font-size: 0.875rem;
    color: #374151;
    font-weight: 500;
}

.engraving-row select {
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 0.875rem;
    min-width: 120px;
}

.engraving-details {
    color: #6b7280;
    margin: 0.5rem 0;
}

/* Skeleton Loading States */
.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.skeleton-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #f3f4f6;
}

.skeleton-image {
    width: 100%;
    height: 320px;
    background: linear-gradient(90deg, #f0ebe6 25%, #e8e0d8 50%, #f0ebe6 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton-info {
    padding: 1.75rem;
}

.skeleton-line {
    height: 14px;
    border-radius: 6px;
    background: linear-gradient(90deg, #f0ebe6 25%, #e8e0d8 50%, #f0ebe6 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    margin-bottom: 0.75rem;
}

.skeleton-line.title {
    height: 20px;
    width: 70%;
    margin-bottom: 1rem;
}

.skeleton-line.short {
    width: 40%;
}

.skeleton-line.medium {
    width: 85%;
}

.skeleton-line.price {
    height: 28px;
    width: 30%;
    margin-top: 1rem;
}

.skeleton-line.button {
    height: 44px;
    width: 100%;
    margin-top: 1rem;
    border-radius: 8px;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Utility Classes */
.loading {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.error-message {
    text-align: center;
    padding: 2rem;
    color: #f44336;
    background-color: #ffebee;
    border-radius: 8px;
}

.no-products {
    text-align: center;
    padding: 3rem;
    color: #666;
}

/* Product Modal & Gallery */
.product-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.product-modal.active {
    display: block;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    cursor: pointer;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 12px;
    max-width: 900px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #666;
    z-index: 10;
    line-height: 1;
    padding: 5px;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
}

.modal-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.gallery-main {
    position: relative;
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    color: #4a2c2a;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.gallery-nav:hover {
    background: white;
}

.gallery-prev {
    left: 10px;
}

.gallery-next {
    right: 10px;
}

.gallery-thumbs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.25rem;
}

.gallery-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s, opacity 0.2s;
    flex-shrink: 0;
}

.gallery-thumb:hover {
    opacity: 0.8;
}

.gallery-thumb.active {
    border-color: #4a2c2a;
}

.modal-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-details h2 {
    font-size: 1.75rem;
    color: #4a2c2a;
    margin: 0;
}

.modal-description {
    color: #666;
    line-height: 1.6;
}

.modal-price-stock {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.modal-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #4a2c2a;
    margin: 0;
}

.modal-stock {
    color: #2d5016;
    font-weight: 500;
    margin: 0;
}

.modal-stock.stock-low {
    color: #f59e0b;
}

.modal-stock.stock-out {
    color: #dc2626;
}

.modal-add-btn {
    margin-top: auto;
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Image count badge on product cards */
.product-image {
    position: relative;
    cursor: pointer;
}

.product-image.has-gallery::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.2s;
}

.product-image.has-gallery:hover::after {
    background: rgba(0, 0, 0, 0.1);
}

.image-count-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 1;
}

.image-count-badge svg {
    flex-shrink: 0;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: #4a2c2a;
}

.hamburger svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

/* Scroll Reveal Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .skeleton-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cart-content {
        grid-template-columns: 1fr 300px;
    }

    .checkout-content {
        grid-template-columns: 1fr 350px;
    }

    .modal-body {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        gap: 0;
        padding: 0;
        border-top: 1px solid #e5e0db;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li {
        border-bottom: 1px solid #f3f0eb;
    }

    .nav-links a {
        display: block;
        padding: 0.875rem 0;
        font-size: 1rem;
    }

    .nav-links a::after {
        display: none;
    }

    .header-icons {
        gap: 0.5rem;
    }

    .header-icon span {
        display: none;
    }

    .logo img {
        height: 53px;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .services-content {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .videos-grid {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .footer-nav {
        gap: 1rem;
    }

    /* Modal responsive */
    .modal-body {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }

    .modal-content {
        max-height: 95vh;
    }

    .modal-details h2 {
        font-size: 1.4rem;
    }

    .gallery-thumb {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem;
    }

    .header-top {
        padding: 0 0.5rem;
    }

    .logo img {
        height: 48px;
    }
}
