/* --- General Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
}

/* --- Announcement Bar --- */
.announcement-bar {
    background-color: #443b3f;
    color: white;
    text-align: center;
    padding: 8px 16px;
    font-size: 14px;
}

/* --- Header & Navigation --- */
header {
    background-color: white;
    border-bottom: 1px solid #e5e5e5;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    font-size: 24px;
    font-weight: 600;
    color: #111;
    text-decoration: none;
}

nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

nav a {
    color: #111;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    padding: 10px 0;
    display: inline-block;
}

nav a:hover {
    color: #666;
}

/* --- Dropdown Logic --- */
.dropdown {
    position: relative;
    display: inline-block;
}

nav > .dropdown > .menu-label {
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 10px 0;
    color: #111;
    font-weight: 500;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
    z-index: 1;
    padding: 8px 0;
    border-radius: 4px;
    border: 1px solid #e5e5e5;
    top: 100%;
}

.dropdown-content a,
.dropdown-content .menu-label {
    color: black;
    padding: 10px 15px;
    text-decoration: none;
    display: block;
    width: 100%;
    white-space: nowrap;
}

.dropdown-content a:hover,
.sub-dropdown:hover > .menu-label {
    background-color: #f5f5f5;
}

.dropdown:hover > .dropdown-content {
    display: block;
}

/* --- Sub-Dropdowns --- */
.sub-dropdown {
    position: relative;
}

.sub-dropdown-content {
    display: none;
    position: absolute;
    left: 100%;
    top: -8px;
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.1);
    border: 1px solid #e5e5e5;
    z-index: 2;
}

.sub-dropdown:hover .sub-dropdown-content {
    display: block;
}

/* --- Icons / Arrows --- */
.arrow-down, .arrow-right {
    font-size: 12px;
    margin-left: 8px;
    display: inline-block;
}

.arrow-right {
    float: right;
    margin-top: 4px;
}

/* --- Hero Section --- */
.hero, .collection {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero { background-image: url('../images/103539.png?q=80&w=2000&auto=format&fit=crop'); }
.collection { background-image: url('../images/Collections.png?q=80&w=2000&auto=format&fit=crop'); }

.hero::before, .collection::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.3);
}

.hero-content, .collection-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    padding: 0 16px;
}

.hero h2, .collection h2 {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: bold;
    margin-bottom: 16px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero p, .collection p {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: bold;
    margin-bottom: 32px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.btn-primary {
    display: inline-block;
    padding: 12px 32px;
    background-color: transparent;
    color: white;
    border: 2px solid #14b8a6;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: rgba(20, 184, 166, 0.1);
}

/* --- Container & Grids --- */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
    display: block; /* Change from flex to block */
}

section {
    padding: 64px 0;
    overflow: auto; /* Add this to ensure it "wraps" its floating children */
}

h2.section-title {
    font-size: 2.25rem;
    font-weight: bold;
    color: #111;
    margin-bottom: 48px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
    min-height: 200px; /* Forces space so pagination can't jump all the way up */
}

/* --- Product Cards --- */
.product-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
    border: 1px solid #eee;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.product-image {
    width: 100%;
    aspect-ratio: 1 / 1; 
    overflow: hidden;
    background-color: #f9f9f9;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-size: 1.1em;
    margin: 0 0 10px 0;
    color: #4e3a3a;
    font-weight: 600;
}

.product-price {
    margin-top: auto;
    font-weight: bold;
    color: #A31E22;
}

/* --- Pagination Styles --- */
.pagination-container {
    display: flex;
    justify-content: center;
    margin: 48px 0;
    margin-top: 24px;
    clear: both; /* Add this line */
    width: 100%;  /* Add this line */
    position: relative; /* Add this to reset the absolute positioning */
}

.pagination {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
}

.pagination-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 8px;
    text-decoration: none;
    color: #111;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    font-weight: 500;
    font-size: 14px;
    background-color: white;
}

.pagination-link.active {
    background-color: #f0f2f5;
    border-color: #ddd;
    font-weight: 600;
}

.pagination-link.disabled {
    color: #999;
    cursor: not-allowed;
    pointer-events: none;
}

/* --- Mobile / Responsive --- */
.menu-toggle {
    display: none;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    color: #111;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        z-index: 1001;
    }

    #nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 64px;
        left: 0;
        width: 100%;
        background: white;
        padding: 20px;
        border-bottom: 1px solid #e5e5e5;
        z-index: 1000;
        max-height: calc(100vh - 64px); /* Keeps it from going off screen */
        overflow-y: auto; /* Allows scrolling inside the menu */
    }

    #nav-menu.mobile-open {
        display: flex;
    }

    .dropdown-content, .sub-dropdown-content {
        display: none;
        position: static;
        box-shadow: none;
        border: none;
        padding-left: 20px;
    }

    .dropdown.is-open > .dropdown-content,
    .sub-dropdown.is-open > .sub-dropdown-content {
        display: block;
    }

    .products-grid {
        /* Force exactly 2 columns and remove the 280px minimum restriction */
        grid-template-columns: 1fr 1fr !important; 
        gap: 12px; /* Slightly smaller gap to save space */
    }

    .product-card {
        width: 100%; /* Ensure the card doesn't have a fixed width elsewhere */
        min-width: 0; /* Allows the flex/grid child to shrink below its content size */
    }
}

.shop-main-content {
    display: block;
    clear: both;
    position: relative;
    width: 100%;
}

/* --- Search & Thumbnails --- */
.search-form { display: flex; align-items: center; margin: 0 15px; }
.search-form input { padding: 5px 10px; border: 1px solid #ccc; border-radius: 4px 0 0 4px; }
.search-form button { padding: 5px 10px; background: #A31E22; color: white; border: none; border-radius: 0 4px 4px 0; cursor: pointer; }

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 2px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}
.thumbnail.active { border-color: #14b8a6; }

/* --- Follow & Footer --- */
.follow-section { text-align: center; padding: 64px 0; }
.btn-follow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 32px;
    background-color: #f0f2f5;
    color: #1c1e21;
    border: 1px solid #ddd;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}
.btn-follow img { width: 24px; height: 24px; object-fit: contain; }

footer {
    background-color: white;
    border-top: 1px solid #e5e5e5;
    margin-top: 64px;
}
.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 16px;
    text-align: center;
}

.trust-bar {
    background: #fff;
    padding: 30px 20px;
    border-bottom: 1px solid #eee;
}
.trust-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    text-align: center;
}
.trust-item i {
    font-size: 2rem;
    color: #A31E22; /* Your brand red */
    margin-bottom: 10px;
    display: block;
}
.trust-item h4 {
    margin: 5px 0;
    font-size: 1.1rem;
    color: #443b3f;
}
.trust-item p {
    font-size: 0.9rem;
    color: #777;
    margin: 0;
}

/* Base Transition for all icons */
.trust-item i {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Smooth "pop" effect */
    display: inline-block; /* Required for transform to work */
}

/* 1. USA Flag - Continuous "In and Out" Wave while hovered */
.trust-item:hover .fa-flag-usa {
    animation: flagWave 2s ease-in-out infinite;
    color: #A31E22; /* Matches your brand red */
}

/* 2. Magic Sparkles - Continuous Pulse & Glow while hovered */
.trust-item:hover .fa-wand-magic-sparkles {
    animation: wandPulse 1.5s ease-in-out infinite;
    color: #A31E22; /* Matches your brand red */
}

/* 3. Location Dot - Bouncing Animation */
.trust-item:hover .fa-location-dot {
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* 4. Handshake - Slight Side-to-Side Wag */
.trust-item:hover .fa-handshake {
    transform: scale(1.1);
    animation: shake 0.5s ease-in-out infinite;
}

@keyframes shake {
    0% { transform: rotate(0deg) scale(1.1); }
    25% { transform: rotate(5deg) scale(1.1); }
    75% { transform: rotate(-5deg) scale(1.1); }
    100% { transform: rotate(0deg) scale(1.1); }
}

@keyframes flagWave {
    0% {
        transform: scale(1);
        rotate: 0deg;
    }
    50% {
        transform: scale(1.2); /* The "Out" movement */
        rotate: -5deg;         /* Slight tilt for the wave effect */
    }
    100% {
        transform: scale(1);   /* The "In" movement */
        rotate: 0deg;
    }
}

@keyframes wandPulse {
    0%, 100% {
        transform: scale(1) translateY(0);
        filter: drop-shadow(0 0 2px rgba(163, 30, 34, 0));
    }
    50% {
        transform: scale(1.1) translateY(-8px); /* Lifts and grows */
        filter: drop-shadow(0 0 12px rgba(163, 30, 34, 0.5)); /* Adds a "magical" glow */
    }
}


/* --- MOBILE OPTIMIZATION --- */

/* For Tablets (under 992px) */
@media (max-width: 992px) {
    .trust-grid {
        grid-template-columns: repeat(2, 1fr); /* 2x2 Layout */
        gap: 30px 15px;
    }
}

/* For Phones (under 600px) */
@media (max-width: 600px) {
    .trust-bar {
        padding: 30px 15px;
    }
    
    .trust-grid {
        grid-template-columns: 1fr; /* Stack everything in 1 column */
        gap: 25px;
    }

    .trust-item i {
        font-size: 1.8rem;
        margin-bottom: 8px;
    }
    
    .trust-item h4 {
        font-size: 1rem;
    }
}

.trust-item .fa-flag-usa {
    color: #A31E22; /* Your brand red */
    filter: drop-shadow(2px 2px 2px rgba(0,0,0,0.1));
    transition: transform 0.3s ease;
}

.trust-item:hover .fa-flag-usa {
    transform: scale(1.2) rotate(-5deg); /* Adds a little 'jazzy' movement on hover */
}


.process-wrapper {
    /* Replace 'process-bg.jpg' with your wood texture file */
    background: url('/images/process-bg.png') no-repeat center center;
    background-size: cover;
    padding: 60px 0 80px 0;
    position: relative;
    border-top: 4px solid #f4f4f4;
    border-bottom: 4px solid #f4f4f4;
}

.process-main-title {
    text-align: center;
    font-family: 'Playfair Display', serif;
    color: #4e3a3a;
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
}

.process-flex-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.process-step-card {
    background: #ffffff;
    flex: 1;
    min-width: 300px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
}

.step-img-box {
    position: relative;
    height: 200px;
}

.step-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.step-number {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #A31E22;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.step-text {
    padding: 25px;
    text-align: center;
}

.step-text h3 {
    color: #A31E22;
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.step-text p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
}

.process-cta-area {
    text-align: center;
    margin-top: 50px;
}

.btn-order-custom {
    background-color: #A31E22;
    color: white;
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background 0.3s ease;
    border: 2px solid transparent;
}

.btn-order-custom:hover {
    background-color: #7a1619;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Responsive Tablet/Mobile */
@media (max-width: 992px) {
    .process-step-card {
        min-width: 45%;
    }
}

@media (max-width: 600px) {
    .process-step-card {
        min-width: 100%;
    }
}



/* FORCE PAGINATION TO STAY IN FLOW */
nav.pagination-container, 
.pagination-container {
    position: static !important;
    display: flex !important;
    margin-top: 40px !important;
    margin-bottom: 40px !important;
    clear: both !important;
    visibility: visible !important;
}