/*
 * -----------------------------------------------------
 * 1. Global Resets & Typography
 * -----------------------------------------------------
 */

:root {
    /* Colors */
    --primary-color: #ff6f61; /* Coral/Salmon - Theme color */
    --secondary-color: #aad3ec; /* Light Blue - Accent */
    --text-dark: #2c3e50; /* Dark Navy */
    --text-light: #ecf0f1; /* Light Gray */
    --bg-light: #ffffff;
    --bg-dark: #f5f5f5;
    --shadow-subtle: 0 4px 6px rgba(170, 211, 236, 1);
    --shadow-hover: 0 8px 15px rgba(170, 211, 236, 1);
    --radius-sm: 8px;
    --radius-lg: 16px;
    --transition-speed: 0.2s;
    
    /* 💥 REVISION: Calculated Header Heights for Sticky Offset */
    /* 100px (logo) + 0.5rem (top/bottom padding, approx 17px) + 1px (border) = 117px */
    --header-height-mobile: 117px; 
    /* 100px (logo) + 1rem (top/bottom padding, approx 32px) + 1px (border) = 133px (Desktop/Tablet) */
    --header-height-desktop: 133px; 
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Fredoka', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    padding-bottom: 70px; /* Space for fixed bottom navigation */
    margin-top: 0;
}

h1, h2, h3, h4 {
    font-weight: 600;
    margin-top: 0; 
    margin-bottom: 0.5rem;
}

h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}
a:hover {
    color: var(--text-dark);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/*
 * -----------------------------------------------------
 * 2. Layout & Sections (Mobile-First)
 * -----------------------------------------------------
 */

.tab-section {
    /* 💥 CRITICAL FIX: Offset padding equals header height to clear the sticky header */
    padding-top: var(--header-height-mobile); 
    padding: var(--header-height-mobile) 1rem 1rem 1rem;
    /* Recalculate minimum height using the new header height variable, minus bottom nav (70px) */
    min-height: calc(100vh - var(--header-height-mobile) - 70px); 
    display: none;
}
.tab-section.active {
    display: block;
    /* 💥 CRITICAL FIX: Pull the content container up behind the sticky header */
    margin-top: calc(0px - var(--header-height-mobile)); 
}
/* 💥 Ensure the first element inside the active section has zero top margin/padding */
.tab-section.active > :first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

main {
    padding-bottom: 0; 
    margin-top: 0;
    padding-top: 0;
}

header {
    background-color: #ff6f61;
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid var(--bg-dark);
    position: sticky;
    top: 0;
    z-index: 100;
    margin-top: 0;
    /* 💥 FIXED HEIGHT: Ensure the sticky element has a known height */
    height: var(--header-height-mobile); 
}

.logo {
    width: 100px;  
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #ff6f61;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
}

.logo:hover {
    transform: scale(1.05) rotate(5deg);
}




/*
 * -----------------------------------------------------
 * 3. Home Section Specifics
 * -----------------------------------------------------
 */

.welcome {
    /* Ensures the container wraps the slider */
    margin-bottom: 1rem; 
}

/* 💥 NEW SLIDER CONTAINER STYLES */
.welcome-slider {
    position: relative;
    width: 100%;
    /* Set a fixed height or aspect ratio for the container */
    padding-top: 70%; /* Adjust this value (e.g., 60% to 80%) for the desired height/aspect ratio */
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-subtle);
}

.slider-image {
    /* Position all images absolutely on top of each other */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0; /* Hide all images by default */
    transition: opacity 0.6s ease-in-out; /* Smooth transition for slides */
}

.slider-image.active {
    opacity: 1; /* Show the active image */
}

/* 💥 SLIDER CONTROLS (Arrows) */
.slider-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: var(--bg-light);
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 10;
    border-radius: var(--radius-sm);
    opacity: 0.8;
    transition: background-color 0.2s;
}
.slider-control:hover {
    background: rgba(0, 0, 0, 0.6);
}
.prev { left: 10px; }
.next { right: 10px; }


/* 💥 SLIDER DOTS (Indicators) */
.slider-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 8px;
}
.dot {
    height: 10px;
    width: 10px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}
.dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

#featured-collections, #seasonal-collections {
    margin-bottom: 1.5rem;
    text-align: center;
    margin-top: 0; /* Ensures collection starts right after element above it */
}
#featured-collections h3, #seasonal-collections h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    margin-top: 0;
}

.collection-row {
    display: flex;
    overflow-x: scroll;
    gap: 1rem;
    padding-bottom: 1rem; 
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; 
}
.collection-row::-webkit-scrollbar {
    display: none; 
}

/* --- Featured Widget Styling --- */
.collection-widget {
    min-width: 150px;
    flex-shrink: 0;
    height: 180px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-subtle);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    position: relative;
    overflow: hidden;
}
.collection-widget img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.collection-widget .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); 
    color: var(--bg-light);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity var(--transition-speed);
}

.collection-widget:hover .overlay {
    background: rgba(0, 0, 0, 0.3);
}

.collection-widget h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}
.collection-widget .widget-btn {
    background-color: var(--primary-color);
    color: var(--bg-light);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color var(--transition-speed);
}
.collection-widget .widget-btn:hover {
    background-color: #cc5d54;
}
/* --- End Featured Widget Styling --- */


.collection-card {
    min-width: 150px;
    flex-shrink: 0;
    background-color: var(--bg-dark); 
    padding: 0; 
    height: 180px; 
    border-radius: var(--radius-lg);
    text-align: center;
    font-weight: 600;
    color: var(--bg-light); 
    box-shadow: var(--shadow-subtle);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    position: relative;
    overflow: hidden;
    display: flex; 
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
}
.collection-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

/* Overlay for text readability */
.collection-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); 
    z-index: 1;
    transition: background var(--transition-speed);
}
.collection-card:hover::before {
    background: rgba(0, 0, 0, 0.2); 
}

.collection-card span {
    position: relative;
    z-index: 2;
    font-size: 1.25rem;
    padding: 0.5rem 1rem;
    background-color: rgba(255, 255, 255, 0.1); 
    border-radius: var(--radius-sm);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.category-section {
    margin-bottom: 2rem;
    border-top: 2px solid var(--bg-dark);
    padding-top: 0.5rem; 
}

/* Grid for Home Product Row */
.product-row {
    display: grid;  
    grid-template-columns: repeat(2, 1fr); 
    gap: 1.5rem;
    padding-bottom: 1rem;
    overflow-x: hidden; 
}
.product-row::-webkit-scrollbar {
    display: none;
}
.product-row .product-card {
    min-width: auto;
    flex-shrink: 0;
    scroll-snap-align: none;
}


/*
 * -----------------------------------------------------
 * 4. Shop Section & Filters
 * -----------------------------------------------------
 */
.filter-panel {
    display: flex;
    gap: 1rem;
    padding: 1rem 0.5rem;
    margin: 1.5rem 0; 
    background-color: transparent;  
    flex-wrap: nowrap;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.filter-panel::-webkit-scrollbar {
    display: none;
}

.filter-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 150px;
    flex-shrink: 0;
    max-width: 300px;
}

.filter-group label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #3f51b5;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
    padding: 0 0.5rem;
    letter-spacing: 1px;
    white-space: nowrap;
}

.filter-panel select {
    position: relative;
    width: 100%;
    padding: 0.75rem 1.5rem;
    border: 2px solid #ff6f61;
    border-radius: 50px;
    background-color: #fff;
    font-family: 'Fredoka', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #ff6f61;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    appearance: none;
    -webkit-appearance: none;
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24"><path fill="%23ff6f61" d="M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
}

.filter-panel select:not(:placeholder-shown),
.filter-panel select:focus {
    color: #fff;
    background-color: #ff6f61;
    border-color: #ff6f61;
    box-shadow: 0 4px 8px rgba(255, 111, 97, 0.4);
    transform: scale(1.05);
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24"><path fill="%23ffffff" d="M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6z"/></svg>');
}

.filter-panel select:hover {
    border-color: #3f51b5;
}

.filter-panel select:focus {
    outline: 3px solid rgba(63, 81, 181, 0.3);
}


.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
    padding-top: 1rem;
}

/*
 * -----------------------------------------------------
 * 5. Product Card & Carousel
 * -----------------------------------------------------
 */

.product-card {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-subtle);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: box-shadow var(--transition-speed), transform var(--transition-speed);
    position: relative;
    overflow: hidden;
}
.product-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

.carousel {
    position: relative;
    width: 100%;
    padding-top: 100%; /* Aspect ratio 1:1 */
    overflow: hidden;
    margin-bottom: 0.5rem;
    border-radius: var(--radius-sm);
}

.carousel-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity var(--transition-speed);
    opacity: 0;
}
.carousel-img.active {
    opacity: 1;
}

.prev-btn, .next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    line-height: 1;
    font-size: 1.2rem;
    opacity: 0; 
    transition: opacity var(--transition-speed);
}
.product-card:hover .prev-btn, .product-card:hover .next-btn {
    opacity: 1;
}
.prev-btn { left: 5px; }
.next-btn { right: 5px; }

.badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--bg-light);
    z-index: 5;
}
.badge.new { background-color: var(--secondary-color); }
.badge.sale { background-color: var(--primary-color); }

.product-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}
.product-card p {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.view-btn {
    background-color: var(--primary-color);
    color: var(--bg-light);
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color var(--transition-speed);
    font-weight: 600;
}
.view-btn:hover {
    background-color: #cc5d54; 
}

/* Skeleton loader for initial load */
.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
}
.skeleton-grid::before {
    content: "";
    height: 250px; 
    background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%);
    background-size: 400% 100%;
    animation: loading 1.5s infinite;
    border-radius: var(--radius-lg);
    grid-column: 1 / -1; 
}
#home-skeleton::before {
    height: 600px;
}
@keyframes loading {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

/*
 * -----------------------------------------------------
 * 6. Modals (Cart & Product)
 * -----------------------------------------------------
 */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 1;
    visibility: visible;
    transition: opacity var(--transition-speed), visibility var(--transition-speed);
}
.modal.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.modal-content {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-hover);
    position: relative;
    transform: scale(1);
    transition: transform var(--transition-speed);
}
.modal.hidden .modal-content {
    transform: scale(0.95);
}

/* Product Modal Specifics */
.product-box .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
}

.modal-carousel {
    position: relative;
    width: 100%;
    padding-top: 75%; 
    overflow: hidden;
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
}
.modal-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-box label {
    display: block;
    margin-bottom: 1rem;
    font-weight: 600;
}
.product-box select {
    width: 100%;
    padding: 0.75rem;
    margin-top: 0.25rem;
    border: 1px solid #ccc;
    border-radius: var(--radius-sm);
    background-color: var(--bg-light);
}

.add-cart-btn {
    width: 100%;
    background-color: var(--secondary-color);
    color: var(--bg-light);
    border: none;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: background-color var(--transition-speed);
    margin-top: 1rem;
}
.add-cart-btn:hover {
    background-color: #ff6f61;
}

/* Cart Modal Specifics */
.cart-title {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1.5rem;
}
.cart-list {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}
.cart-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px dashed var(--bg-dark);
}

.item-details h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}
.item-details small {
    display: block;
    color: #777;
}

.item-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.qty-btn {
    background: var(--bg-dark);
    border: none;
    padding: 0.4rem 0.6rem;
    cursor: pointer;
    font-weight: 600;
    transition: background-color var(--transition-speed);
}
.qty-btn:hover {
    background-color: #e0e0e0;
}
.qty-input {
    width: 40px;
    text-align: center;
    border: none;
    padding: 0.4rem 0;
    -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button, .qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.remove-item-btn {
    background: none;
    border: none;
    color: crimson;
    cursor: pointer;
    font-size: 1.1rem;
}

.line-total {
    font-weight: 600;
    min-width: 60px;
    text-align: right;
}

.shipping-options {
    background-color: var(--bg-dark);
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
}
.shipping-options label {
    display: block;
    margin-bottom: 0.5rem;
}
#country-select {
    width: 100%;
    padding: 0.5rem;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.cart-breakdown p {
    display: flex;
    justify-content: space-between;
    margin: 0.25rem 0;
    font-size: 0.95rem;
}
.cart-total {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: right;
    margin-top: 1rem;
    color: var(--primary-color);
    padding-top: 0.5rem;
    border-top: 1px solid #ddd;
}

#user-phone {
    margin-top: 0.25rem !important; 
}

#paypal-button-container {
    margin-top: 1.5rem;
}

.cart-btn {
    width: 100%;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    margin-top: 0.75rem;
}
.checkout, #fallback-checkout-btn {
    background-color: var(--secondary-color);
    color: var(--bg-light);
}
.close {
    background-color: #ccc;
    color: var(--text-dark);
}

/* Success Modal Styling */
#success-modal .modal-content {
    text-align: center;
}
#success-modal-message {
    margin-bottom: 1.5rem;
}
#success-modal-ok {
    background-color: var(--primary-color);
    color: var(--bg-light);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
}


/*
 * -----------------------------------------------------
 * 7. Bottom Navigation & Cart Button
 * -----------------------------------------------------
 */

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-around;
    background-color: var(--bg-light); 
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
    z-index: 500;
}

.bottom-nav button {
    flex-grow: 1;
    background: none;
    border: none;
    padding: 0.75rem 0;
    color: var(--text-dark);
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    transition: color var(--transition-speed);
    position: relative;
}

.bottom-nav button.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* Subtle indicator line for active tab */
.bottom-nav button.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
}

#cartBtn {
    position: fixed;
    bottom: 80px; 
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--bg-light);
    border: none;
    box-shadow: var(--shadow-hover);
    font-size: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 550;
    transition: transform var(--transition-speed), background-color var(--transition-speed);
}
#cartBtn:hover {
    transform: scale(1.05);
    background-color: #cc5d54; 
}

#cartCount {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #aad3ec; 
    color: #ff6f61;
    border-radius: 50%;
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 25px;
    text-align: center;
}

/*
 * -----------------------------------------------------
 * 8. Contact Section & Forms
 * -----------------------------------------------------
 */
.contact-content {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}
.contact-content h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    margin-top: 0; 
}
.contact-content p {
    font-size: 1.1rem;
}
.contact-content a {
    font-weight: 600;
}

.map-container {
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    position: relative;
    margin-bottom: 1.5rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-subtle);
}
.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.order-tracking, .newsletter {
    background-color: var(--bg-dark);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
}
.order-tracking h3, .newsletter h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

#tracking-form, #newsletter-form {
    display: flex;
    gap: 0.5rem;
}

#tracking-code, #newsletter-email {
    flex-grow: 1;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: var(--radius-sm);
    font-family: inherit;
}
#tracking-form button, #newsletter-form button {
    background-color: var(--primary-color);
    color: var(--bg-light);
    border: none;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    transition: background-color var(--transition-speed);
}
#tracking-form button:hover, #newsletter-form button:hover {
    background-color: #cc5d54;
}

.status {
    margin-top: 0.75rem;
    font-weight: 600;
}

.social-links {
    margin-top: 1.5rem;
}
.social-links a {
    font-size: 2rem;
    margin: 0 0.5rem;
    color: var(--text-dark);
    transition: color var(--transition-speed), transform var(--transition-speed);
}
.social-links a:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

/*
 * -----------------------------------------------------
 * 9. Toast Notifications
 * -----------------------------------------------------
 */
.toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--text-dark);
    color: var(--bg-light);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-hover);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}
.toast-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.toast.hidden {
    opacity: 0;
    visibility: hidden;
}
#toast-close {
    background: none;
    border: none;
    color: var(--bg-light);
    font-size: 1.2rem;
    cursor: pointer;
}

/*
 * -----------------------------------------------------
 * 10. Desktop/Tablet Responsiveness (Media Queries)
 * -----------------------------------------------------
 */

@media (min-width: 768px) {
    body {
        padding-bottom: 0;
    }
    .bottom-nav {
        display: none; 
    }
    
    .tab-section {
        /* 💥 REVISION: Apply desktop header height offset */
        padding: var(--header-height-desktop) 2rem 2rem 2rem; 
        min-height: calc(100vh - var(--header-height-desktop)); 
    }
    
    .tab-section.active {
        /* 💥 REVISION: Apply desktop offset pull */
        margin-top: calc(0px - var(--header-height-desktop));
    }

    /* Header becomes navigation */
    header {
        justify-content: space-between;
        padding: 1rem 2rem;
        height: var(--header-height-desktop); /* Fixed height for sticky calculation */
    }
    header::after {
        content: attr(data-content); 
        display: flex;
        gap: 1.5rem;
        font-size: 1.1rem;
    }

    /* Desktop Navigation in Header */
    .bottom-nav-desktop {
        display: flex;
        gap: 1.5rem;
    }
    .bottom-nav-desktop button {
        padding: 0.5rem 1rem;
        font-size: 1.1rem;
    }

    /* Home Sections */
    .collection-row {
        overflow-x: auto;  
        flex-wrap: wrap;  
        justify-content: center;
    }
    .collection-widget {
        min-width: 200px;
        flex-basis: 30%; 
    }
    
    /* Grid-based product rows for desktop */
    .product-row {
        display: grid;
        grid-template-columns: repeat(3, 1fr);  
        gap: 2rem;
        overflow-x: hidden;
    }
    
    .slider-controls {
        display: none; 
    }

    /* Cart Button moves to header/corner */
    #cartBtn {
        position: fixed;
        bottom: auto;
        top: 20px;
        right: 30px;
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
        z-index: 600;
    }
    #cartCount {
        font-size: 0.9rem;
        top: 0;
        right: 0;
    }

    /* Shop Filters & Grid */
    .filter-panel {
        justify-content: center;
        overflow-x: auto;
    }
    .product-grid {
        grid-template-columns: repeat(3, 1fr); 
    }
    @media (min-width: 1024px) {
        .product-row, .product-grid {
            grid-template-columns: repeat(4, 1fr); 
        }
    }

    /* Contact Section */
    .contact-content {
        max-width: 800px;
    }
    .order-tracking, .newsletter {
        display: inline-block;
        width: 48%;
        margin: 1%;
        vertical-align: top;
    }
}

/*
 * -----------------------------------------------------
 * 11. Home Slider Controls (Grid/Visibility Fixes)
 * -----------------------------------------------------
 */
.category-section {
    position: relative;  
    margin-bottom: 2rem;
    border-top: 2px solid var(--bg-dark);
    padding-top: 0.5rem; 
}

.slider-controls {
    text-align: right;
    margin-bottom: 0.5rem;
    padding-right: 0.5rem;
}

.slider-controls button {
    background-color: var(--bg-dark);
    border: 1px solid #ccc;
    color: var(--text-dark);
    padding: 0.3rem 0.6rem;
    border-radius: 50%;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    margin-left: 0.5rem;
    transition: background-color var(--transition-speed);
}
.slider-controls button:hover {
    background-color: #e0e0e0;
}
@media (min-width: 768px) {
    .slider-controls {
        display: none !important;
    }
}


/*
 * -----------------------------------------------------
 * 12. Pagination Controls Styling
 * -----------------------------------------------------
 */
#pagination-controls {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
}

#pagination-controls button {
    background-color: var(--bg-light);
    color: var(--text-dark);
    border: 1px solid #ccc;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all var(--transition-speed);
    min-width: 40px;
    text-align: center;
}

#pagination-controls button:hover:not(:disabled):not(.active) {
    background-color: var(--bg-dark);
    border-color: var(--primary-color);
}

#pagination-controls button.active {
    background-color: var(--primary-color);
    color: var(--bg-light);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-subtle);
}

#pagination-controls button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
    background-color: #f0f0f0;
    color: #999;
}



