/* === GLOBAL STYLES === */
@font-face {
    font-family: 'Stella';
    src: url('font/stella.ttf') format('truetype');
}

@font-face {
    font-family: 'More Sugar';
    /* You can name this whatever you like */
    src: url('font/MoreSugar.otf') format('opentype');
    /* You can add more src lines for different file formats for better browser support */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'More Sugar', cursive;
    max-width: 100%;
    box-sizing: border-box;
    text-decoration: none;
}

:root {
    --primary: #c80606;
    --primary-light: #c42448;
    --secondary: #ffa0a0;
    --background: #ffffff;
    --accent: #fdd1d1;
    --text: #333333;
    --light: #ffffff;
    --shadow: 0 5px 15px rgba(200, 6, 6, 0.1);
    --transition: all 0.3s ease;
}


.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--secondary);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Edge-specific font fix */
@supports (-ms-ime-align:auto) or (-ms-accelerator:true) {

    h1,
    h2,
    h3 {
        font-family: 'Stella', 'MoreSugar', 'Segoe UI', Arial, sans-serif !important;
        text-transform: uppercase;
        /* Force uppercase as backup */
    }
}

/* Ensure font paths are correct */
@font-face {
    font-family: 'Stella';
    src: url('/font/stella.ttf') format('truetype');
    /* Use absolute path */
    font-display: block;
}

body {
    background-color: var(--background);
    color: var(--text);
    line-height: 1.9;
    overflow-x: hidden;
    font-family: 'Stella', 'MoreSugar', Arial, sans-serif;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary);
    font-size: 2.5rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.btn {
    padding: 0.9rem 1.8rem;
    border: none;
    border-radius: 50px;
    background: var(--primary);
    color: var(--light);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(192, 57, 79, 0.3);
}

.btn:hover {
    background: #A02A3F;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(192, 57, 79, 0.4);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--light);
}

/* Announcement Styles - Mobile Responsive */
.announcement {
  background: var(--primary);
  color: white;
  padding: 12px 20px;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  z-index: 1000;
  line-height: 1.3;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .announcement {
    padding: 8px 15px;
    font-size: 0.8rem;
    line-height: 1.2;
    top: 4.5rem;
  }
}

@media (max-width: 480px) {
  .announcement {
    padding: 6px 12px;
    font-size: 0.75rem;
    line-height: 1.1;
    top: 4.5rem;
  }
}

/* For very small screens */
@media (max-width: 360px) {
  .announcement {
    padding: 5px 10px;
    font-size: 0.7rem;
    top: 4.5rem;
  }
}

/* === HEADER === */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2rem;
    background: var(--light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left,
.header-right {
    flex: 1;
    display: flex;
    align-items: center;
}

.header-left {
    justify-content: flex-start;
}

.header-right {
    justify-content: flex-end;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primary);
}

.logo-icon i {
    color: var(--primary);
    font-size: 1.5rem;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: 'More Sugar', cursive;
    font-size: 2rem;
    color: var(--primary);
    line-height: 1;
}

.tagline {
    font-size: 0.8rem;
    color: var(--text);
    letter-spacing: 1px;
}

.header-tabs {
    display: flex;
    gap: 0.5rem;
}

.header-tabs .tab-btn {
    padding: 0.8rem 1.5rem;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    border-radius: 50px;
}

.header-tabs .tab-btn.active {
    background: var(--secondary);
    color: var(--primary);
}

.header-tabs .tab-btn:hover {
    background: var(--secondary);
    color: var(--primary);
}

.cart-icon {
    position: relative;
    margin-left: 1.5rem;
    cursor: pointer;
    font-size: 1.3rem;
    color: var(--primary);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary);
    color: var(--light);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.75rem;
    font-weight: bold;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
}

/* === TAB CONTENT AREA === */


.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* === BOXES SECTION === */


.style-selection {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.style-btn {
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--primary);
    border-radius: 50px;
    background: transparent;
    color: var(--primary);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.style-btn.selected {
    background: var(--primary);
    color: var(--light);
}

.box-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.box-option {
    background: var(--light);
    border-radius: 16px;
    padding: 1.8rem;
    text-align: center;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.box-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.box-option.selected {
    border-color: var(--primary);
    background-color: var(--secondary);
}

.box-option h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.box-option p {
    color: var(--text);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.box-prices {
    font-weight: bold;
    color: var(--primary);
    font-size: 1.4rem;
}

/* === UPDATED FLAVOR POPUP STYLES === */
.flavor-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.flavor-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.flavor-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    background: var(--light);
    border-radius: 20px;
    z-index: 1001;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.flavor-popup.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    visibility: visible;
}

.flavor-popup-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--primary);
    color: var(--light);
}

.flavor-popup-header h3 {
    color: var(--light);
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}


.close-popup {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--light);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.close-popup:hover {
    background: rgba(255, 255, 255, 0.2);
}

.flavor-popup-content {
    padding: 2rem;
    overflow-y: auto;
    max-height: calc(90vh - 80px);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}



.popup-style-selection {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.popup-style-btn {
    padding: 0.7rem 1.2rem;
    border: 2px solid var(--primary);
    border-radius: 50px;
    background: transparent;
    color: var(--primary);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    font-size: 0.9rem;
}

.popup-style-btn.selected {
    background: var(--primary);
    color: var(--light);
    box-shadow: 0 4px 12px rgba(192, 57, 79, 0.3);
}

.popup-style-btn:hover:not(.selected) {
    background: rgba(192, 57, 79, 0.1);
}

.flavor-selection-container {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 16px;
}

.popup-box-info {
    text-align: center;
    padding: 1.5rem;
    background: var(--secondary);
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(192, 57, 79, 0.1);
}

.popup-box-info h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.popup-box-info p {
    color: var(--text);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.popup-box-price {
    font-weight: bold;
    color: var(--primary);
    font-size: 1.6rem;
    margin-top: 0.5rem;
}

.flavor-instruction {
    margin-bottom: 0.5rem;
    text-align: center;
    font-weight: 600;
    color: var(--primary);
    font-size: 1.1rem;
}

.selection-counter {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    color: var(--text);
}

.selected-count {
    font-weight: 700;
    color: var(--primary);
}

.flavor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.flavor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.flavor-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: var(--light);
    transition: var(--transition);
}

.flavor-option:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.flavor-option input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.flavor-label {
    flex: 1;
    font-weight: 500;
    color: var(--text);
    display: flex;
    flex-direction: column;
}

.flavor-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.flavor-type {
    font-size: 0.85rem;
    color: #888;
    text-transform: capitalize;
}


.flavor-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.flavor-quantity button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--primary);
    background: transparent;
    color: var(--primary);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.flavor-quantity button:hover:not(:disabled) {
    background: var(--primary);
    color: var(--light);
}

.flavor-quantity button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.flavor-quantity button:hover {
    background: #a83240;
}

.flavor-quantity span {
    min-width: 30px;
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
}



.flavor-option input:checked+.flavor-label {
    border-color: var(--primary);
    background-color: var(--secondary);
    color: var(--primary);
    transform: scale(1.03);
}

.flavor-label:hover {
    border-color: var(--primary);
}

.add-to-cart-popup {
    width: 100%;
    margin-top: 1.5rem;
    justify-content: center;
    padding: 1rem;
    font-size: 1.1rem;
}

/* === FOOTER === */
footer {
    background: #2c2c2c;
    color: var(--light);
    /* padding: 4rem 0 2rem; */
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    /* margin-bottom: 2rem; */
}

.footer-column h3 {
    font-size: 1.3rem;
    /* margin-bottom: 1.5rem; */
    color: var(--primary);
}

.footer-column p {
    color: var(--primary);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column ul li a {
    color: var(--background);
    text-decoration: none;
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: var(--secondary);
}

.social-icons {
    font-size: 1.5rem;
    display: flex;
    gap: 1.2rem;
    /* margin-top: 1.5rem; */
}

.social-icons a {
    color: var(--light);
    transition: var(--transition);
}

.social-icons a:hover {
    color: var(--secondary);
    transform: translateY(-5px);
}

.copyright {
    text-align: center;
    margin-top: 2.5rem;
    /* padding-top: 1.5rem; */
    color: var(--primary);
    ;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.95rem;
}


.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    height: 100%;
    background: var(--light);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    transition: right 0.4s ease;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h2 {
    color: var(--primary);
    font-size: 1.5rem;
}

.close-cart {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--primary);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.cart-item {
    display: flex;
    padding: 1rem 0;
    border-bottom: 1px solid var(--secondary);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 1rem;
}

.cart-item-image img {
    width: 125%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
    position: relative;
}

.cart-item-name {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.cart-item-price {
    color: var(--primary);
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
}

.cart-item-quantity button {
    background: var(--secondary);
    border: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.cart-item-quantity input {
    width: 40px;
    text-align: center;
    border: none;
    margin: 0 0.5rem;
}

.remove-item {
    color: #f44336;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: 1rem;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--secondary);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary);
}

.checkout-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary);
    color: var(--light);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
}

.checkout-btn:hover {
    background: #A02A3F;
}

.empty-cart {
    text-align: center;
    padding: 2rem;
    color: var(--primary);
}

/* === CART NOTIFICATION === */
.cart-notification {
    position: fixed;
    /* bottom: 20px; */
    top: 24rem;
    right: 20px;
    background: var(--primary);
    color: var(--light);
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1002;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateX(100px);
    opacity: 0;
    transition: var(--transition);
}

.cart-notification.show {
    transform: translateX(0);
    opacity: 1;
}

/* === RESPONSIVE STYLES === */
@media (max-width: 992px) {
    .header-tabs {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--light);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .header-tabs.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }
}

@media (max-width: 768px) {
    .cart-sidebar {
        /* width: 320px; */
    }

    .style-selection {
        flex-direction: column;
        align-items: center;
    }

    .flavor-popup {
        width: 100%;
        max-height: 80vh;
    }

    .flavor-popup-content {
        padding: 1.5rem;
        max-height: calc(95vh - 80px);
    }

    .flavor-grid {
        grid-template-columns: 1fr;
    }

    .popup-style-selection {
        flex-direction: column;
    }

    .popup-actions {
        flex-direction: column;
    }
}

.popup-style-btn {
    padding: 0.9rem 1.5rem;
    border: 2px solid var(--primary);
    border-radius: 50px;
    background: transparent;
    color: var(--primary);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}






.selected-flavors-summary {
    background: var(--light);
    border: 2px dashed var(--secondary);
    border-radius: 12px;
    padding: 1rem;
    margin-top: 1rem;
}

.selected-flavors-summary h5 {
    margin: 0 0 0.75rem 0;
    color: var(--primary);
    font-size: 1rem;
    text-align: center;
}

.selected-flavor-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
}

.selected-flavor-item:last-child {
    border-bottom: none;
}

.popup-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.popup-actions .btn {
    flex: 1;
    justify-content: center;
    padding: 1rem;
    font-size: 1.1rem;
}






/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    margin-bottom: -159px;

    position: relative;
    overflow: hidden;
    background: #fdd1d1;

}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    /* padding: 10rem; */
    /* max-width: 800px; */
    margin: 0 auto;
}

/* Container to position them */
.svg-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    /* space between items */
    /* margin-top: 20px; */
}

/* Base cookie images */
.cookie-img {
    width: 100%;
    cursor: default;
    transition: transform 0.3s ease;
    animation-duration: 2s;
    animation-iteration-count: infinite;
}


.logo-container {
    flex: 0 0 auto;
    position: absolute;
    right: 80%;
    height: inherit;
    transform: translateX(-50%);
}

.logo-img {
    height: 100px;
    width: auto;
    /* increased from 180px */
    cursor: pointer;
    transition: transform 0.3s ease;
}


.header-tabs button.active,
.header-tabs button:hover {
    color: var(--secondary);
    ;
    /* highlight color */
}

.header-tabs button {
    background: none;
    border: none;
    font-size: 16px;
    margin-right: 20px;
    cursor: pointer;
    padding: 8px 12px;
    transition: color 0.3s;
}

/* Crumble animation: charging & punching left */
.crumble-img {
    animation-name: crumbleFight;
}

@keyframes crumbleFight {
    0% {
        transform: translateX(0) rotate(0deg);
    }

    20% {
        transform: translateX(-10px) rotate(-5deg);
    }

    40% {
        transform: translateX(20px) rotate(5deg);
    }

    /* punch */
    60% {
        transform: translateX(-10px) rotate(-3deg);
    }

    100% {
        transform: translateX(0) rotate(0deg);
    }
}

/* Chewy animation: charging & punching right */
.chewy-img {
    animation-name: chewyFight;
}

@keyframes chewyFight {
    0% {
        transform: translateX(0) rotate(0deg);
    }

    20% {
        transform: translateX(10px) rotate(5deg);
    }

    40% {
        transform: translateX(-20px) rotate(-5deg);
    }

    /* punch */
    60% {
        transform: translateX(10px) rotate(3deg);
    }

    100% {
        transform: translateX(0) rotate(0deg);
    }
}

/* Labels */
.team-label {
    text-align: center;
    margin-top: -66px;
    font-weight: bold;
    font-size: 18px;
    color: #333;
}


.hero-title {
    font-family: 'stella', cursive;
    font-size: 8rem;
    color: var(--primary);
    line-height: 1;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    color: var(--primary);
    font-family: 'More Sugar', cursive;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background: #C0394F;
    color: white;
}

.btn-primary:hover {
    background: #ff9d4c;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

.btn-secondary {
    background: #8e5c3b;
    color: white;
}

.btn-secondary:hover {
    background: #b07a52;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

/* Cookie Battle Scene */
.cookie-battle {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.cookie-character {
    position: absolute;
    transition: transform 0.3s ease;
}

.cookie-character:hover {
    transform: scale(1.1);
}

.crumble-cookie {
    left: 15%;
    bottom: 20%;
    animation: float 4s ease-in-out infinite;
}

.chewy-cookie {
    right: 15%;
    bottom: 20%;
    animation: float 4s ease-in-out infinite 1s;
}

.cookie-speech {
    position: absolute;
    background: white;
    padding: 0.8rem 1.2rem;
    border-radius: 20px;
    font-family: 'More Sugar', cursive;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    opacity: 0;
    animation: fadeInOut 5s infinite;
}

.crumble-speech {
    top: -80px;
    left: 50px;
    animation-delay: 2s;
}

.chewy-speech {
    top: -80px;
    right: 50px;
    animation-delay: 4s;
}

/* Features Section */
.features {
    padding: 5rem 0;
    background: linear-gradient(135deg, #FFD7DF 50%, #FFEBEE 50%);
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 3rem;
    color: #7b4b2b;
    font-family: 'More Sugar', cursive;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 16px rgba(139, 92, 59, 0.1);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: #ffeedd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: #C0394F;
}

/* Popular Boxes */
.popular-boxes {
    padding: 5rem 0;
    background: #FFEBEE;
}

.boxes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.box-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(139, 92, 59, 0.1);
    transition: transform 0.3s ease;
}

.box-card:hover {
    transform: translateY(-10px);
}

.box-image {
    height: 200px;
    background: #FFD7DF;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.box-image img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 10px;
}

.box-details {
    padding: 1.5rem;
}

.box-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #C0394F;
    margin: 0.5rem 0;
}

/* Testimonials */
.testimonials {
    padding: 5rem 0;
    background: #fff6e8;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 16px rgba(139, 92, 59, 0.1);
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-top: 1.5rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 1rem;
    border: 3px solid #ffd8a8;
}

/* Newsletter */
.newsletter {
    padding: 5rem 0;
    background: linear-gradient(135deg, #FFEBEE 50%, #FFD7DF 50%);
    color: white;
    text-align: center;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 2rem auto 0;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 50px 0 0 50px;
    font-size: 1rem;
}

.newsletter-form button {
    border-radius: 0 50px 50px 0;
    padding: 1rem 1.5rem;
    background: #5a3921;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.body-no-scroll {
    overflow: hidden;
    height: 100vh;
    /* Prevent height jumping */
}

/* Animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes fadeInOut {

    0%,
    100% {
        opacity: 0;
    }

    25%,
    75% {
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    .cookie-battle {
        display: none;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input,
    .newsletter-form button {
        border-radius: 50px;
        width: 100%;
        margin: 0.5rem 0;
    }
}





.tabs {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    background-color: #7a4c25;
    border-radius: 30px;
    padding: 6px;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.tab-btn {
    padding: 12px 25px;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.tab-btn.active {
    background-color: #e9c46a;
    color: #5a3921;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(233, 196, 106, 0.4);
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    /* margin: 50px 0 15px; */
    color: var(--primary);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.section-subtitle {
    text-align: center;
    font-size: 1.3rem;
    margin-bottom: 50px;
    color: #a67c52;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cookies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.cookie-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.cookie-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(139, 90, 43, 0.25);
}

.cookie-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.cookie-image img {
    width: 100%;
    height: 100%;
    top: -70px;

    left: 0;
    object-fit: cover;
    transition: transform 0.5s ease;
    position: relative;

}

.cookie-card:hover .cookie-image img {
    transform: scale(1.08);
}




.cookie-details {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.cookie-details h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--primary);
    min-height: 56px;
}

.cookie-details p {
    color: var(--primary);
    margin-bottom: 20px;
    line-height: 1.4;
    flex-grow: 1;
}

.cookie-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.cookie-style {
    display: flex;
    flex-direction: column;
}

.style-label {
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--primary);
    font-size: 0.95rem;
}

.style-buttons {
    display: flex;
    gap: 10px;
}

.style-option {
    padding: 6px 14px;
    background: var(--secondary);
    border: none;
    border-radius: 15px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.style-option.active {
    background: #e9c46a;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.cookie-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
}

.add-to-cart-btn {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.add-to-cart-btn:hover {
    background: #A02A3F;
}

.click-indicator {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cookie-card:hover .click-indicator {
    opacity: 1;
}

.cart-overlay {
    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: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

/* Popup Styles */
.popup-overlay {
    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: 0;
    z-index: 1000;
  overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cookie-popup {
    background: #fff;
    border-radius: 20px;
    width: 56%;
    max-width: 1090pxs;
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.popup-overlay.active .cookie-popup {
    transform: scale(1);
}

/* Update your existing popup styles */
.popup-image {
    flex: 1;
    min-height: 400px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 20px 0 0 20px;
}

/* Or if using img tags */
.popup-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

/* Ensure the popup container has enough space */
.cookie-popup {
    max-height: 70vh;
    /* Adjust based on your needs */
}

.popup-overlay.active .cookie-popup {
    transform: scale(1);
}

.popup-content {
    flex: 1;
    padding: 30px;
    position: relative;
}

.close-popup {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.close-popup:hover {
    background: #e9c46a;
}

.popup-content h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 15px;
    padding-right: 40px;
}

.popup-content p {
    color: var(--primary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.popup-style-selector {
    margin: 20px 0;
    padding: 15px;
    background: #fff;
    border-radius: 12px;
}

.popup-style-buttons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.popup-style-option {
    padding: 0.9rem 1.5rem;
    border: 2px solid var(--primary);
    border-radius: 50px;
    background: transparent;
    color: var(--primary);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.popup-style-option.active {
    background: var(--primary);
    color: var(--light);
    box-shadow: 0 4px 12px rgba(192, 57, 79, 0.3);
}

.popup-style-option:hover:not(.active) {
    background: rgba(192, 57, 79, 0.1);
}

/* Mystery Section */
.mystery {
    padding: 23px 6px;
    background: var(--accent);
    /* border-radius: 20px; */
    /* box-shadow: 0 6px 20px rgba(0,0,0,0.1); */
}

.mystery .section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 40px;
    font-weight: 700;
}

.mystery-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}


/* Floating Question Mark */
.question-mark {
    position: absolute;
    font-size: 5rem;
    font-weight: bold;
    color: rgba(255, 99, 71, 0.8);
    animation: float 2.5s infinite ease-in-out;
    z-index: 1;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(-10px);
    }

    50% {
        transform: translateY(10px);
    }
}

/* Details Section */
.mystery-details {
    color: var(--text);
    width: 100rem;
}

.mystery-details h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.mystery-details p {
    font-size: 1rem;
    margin-bottom: 15px;
    line-height: 1.6;
}

.mystery-details ul {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.mystery-details ul li {
    margin-bottom: 10px;
    font-size: 1rem;
    /* display: flex; */
    align-items: center;
}

/* Price */
.mystery-price {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary);
    margin: 20px 0;
}

/* Note */
.mystery-note {
    font-style: italic;
    font-size: 0.95rem;
    color: #7f8c8d;
    margin-bottom: 20px;
}

/* Button */
.mystery-btn {
    flex: 1;
    padding: 12px 20px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.mystery-btn:hover {
    background: #A02A3F;
}

/* Responsive */
@media (max-width: 768px) {
    .mystery-content {
        flex-direction: column;
        text-align: center;
    }

    .mystery-details {
        max-width: 80%;
        max-height: 80%;
    }
}



.popup-details {
    margin: 25px 0;
}

.detail-item {
    display: flex;
    margin-bottom: 15px;
}

.detail-icon {
    width: 24px;
    margin-right: 15px;
    color: var(--primary);
}

.detail-text {
    flex: 1;
    color: #000;
}

.popup-price {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary);
    margin: 20px 0;
}

.popup-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    background: var(--background);
    border-radius: 10px;
    padding: 5px;
}

.quantity-btn {
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #000;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.quantity-value {
    width: 40px;
    text-align: center;
    font-weight: bold;
    color: #000;

}

.popup-add-to-cart {
    flex: 1;
    padding: 12px 20px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.popup-add-to-cart:hover {
    background: #A02A3F;
}

footer {
    background: var(--background);
    color: var(--primary);
    text-align: center;
    /* padding: 40px 0; */
    /* margin-top: 80px; */
}

.footer-content {
    display: flex;
    flex-direction: column;
    /* align-items: center; */
}

.social-icons {
    display: flex;
    gap: 20px;
    /* margin: 20px 0; */
}

.social-icons a {
    color: var(--primary);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #e9c46a;
}

@media (max-width: 768px) {
    .cookies-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 25px;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .section-subtitle {
        font-size: 1.1rem;
    }

    .logo {
        font-size: 2.2rem;
    }

    /* .cookie-popup {
                flex-direction: column;
                max-width: 80%;
                max-height: 10vh;
            }
             */
    .popup-image {
        min-height: 250px;
        border-radius: 20px 20px 0 0;
    }
}

/* Random Cookie Decorations */
.cookie-decorations {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.cookie {
    position: absolute;
    animation: float 6s ease-in-out infinite;
}

.cookie-1 {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
    transform: rotate(15deg);
}

.cookie-2 {
    top: 25%;
    right: 15%;
    animation-delay: 1s;
    transform: rotate(-10deg);
}

.cookie-3 {
    top: 60%;
    left: 5%;
    animation-delay: 2s;
    transform: rotate(5deg);
}

.cookie-4 {
    top: 70%;
    right: 10%;
    animation-delay: 3s;
    transform: rotate(-15deg);
}

.cookie-5 {
    top: 45%;
    left: 20%;
    animation-delay: 4s;
    transform: rotate(10deg);
}

.cookie-6 {
    top: 35%;
    right: 5%;
    animation-delay: 5s;
    transform: rotate(-5deg);
}

.cookie-base {
    width: 50px;
    height: 50px;
    background: #8B4513;
    border-radius: 50%;
    position: relative;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.chocolate-chip {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #5C3317;
    border-radius: 50%;
}

.cookie-1 .chocolate-chip:nth-child(1) {
    top: 15px;
    left: 15px;
}

.cookie-1 .chocolate-chip:nth-child(2) {
    top: 25px;
    left: 30px;
}

.cookie-1 .chocolate-chip:nth-child(3) {
    top: 10px;
    left: 35px;
}

.cookie-1 .chocolate-chip:nth-child(4) {
    top: 30px;
    left: 15px;
}

.cookie-1 .chocolate-chip:nth-child(5) {
    top: 20px;
    left: 25px;
}

.cookie-2 .chocolate-chip:nth-child(1) {
    top: 15px;
    left: 20px;
}

.cookie-2 .chocolate-chip:nth-child(2) {
    top: 30px;
    left: 30px;
}

.cookie-2 .chocolate-chip:nth-child(3) {
    top: 25px;
    left: 15px;
}

.cookie-4 .chocolate-chip:nth-child(1) {
    top: 10px;
    left: 10px;
}

.cookie-4 .chocolate-chip:nth-child(2) {
    top: 10px;
    left: 35px;
}

.cookie-4 .chocolate-chip:nth-child(3) {
    top: 35px;
    left: 10px;
}

.cookie-4 .chocolate-chip:nth-child(4) {
    top: 35px;
    left: 35px;
}

.cookie-6 .chocolate-chip:nth-child(1) {
    top: 10px;
    left: 15px;
}

.cookie-6 .chocolate-chip:nth-child(2) {
    top: 10px;
    left: 30px;
}

.cookie-6 .chocolate-chip:nth-child(3) {
    top: 25px;
    left: 10px;
}

.cookie-6 .chocolate-chip:nth-child(4) {
    top: 25px;
    left: 35px;
}

.cookie-6 .chocolate-chip:nth-child(5) {
    top: 40px;
    left: 15px;
}

.cookie-6 .chocolate-chip:nth-child(6) {
    top: 40px;
    left: 30px;
}

.sprinkles {
    position: absolute;
    width: 4px;
    height: 12px;
    border-radius: 2px;
}

.cookie-3 .sprinkles:nth-child(1) {
    top: 15px;
    left: 20px;
    background: #FF5252;
    transform: rotate(30deg);
}

.cookie-3 .sprinkles:nth-child(2) {
    top: 25px;
    left: 30px;
    background: #2196F3;
    transform: rotate(-15deg);
}

.cookie-3 .sprinkles:nth-child(3) {
    top: 35px;
    left: 15px;
    background: #FFEB3B;
    transform: rotate(45deg);
}

.cookie-3 .sprinkles:nth-child(4) {
    top: 10px;
    left: 35px;
    background: #4CAF50;
    transform: rotate(-30deg);
}

.cookie-5 .sprinkles:nth-child(1) {
    top: 20px;
    left: 15px;
    background: #9C27B0;
    transform: rotate(10deg);
}

.cookie-5 .sprinkles:nth-child(2) {
    top: 30px;
    left: 30px;
    background: #FF9800;
    transform: rotate(-25deg);
}

.cookie-5 .sprinkles:nth-child(3) {
    top: 10px;
    left: 25px;
    background: #00BCD4;
    transform: rotate(15deg);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(var(--rotation, 0deg));
    }

    50% {
        transform: translateY(-20px) rotate(var(--rotation, 0deg));
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cookie {
        transform: scale(0.7);
    }

    .cookie-1 {
        top: 10%;
        left: 5%;
    }

    .cookie-2 {
        top: 15%;
        right: 5%;
    }

    .cookie-3 {
        top: 70%;
        left: 5%;
    }

    .cookie-4 {
        top: 75%;
        right: 5%;
    }

    .cookie-5 {
        top: 45%;
        left: 10%;
    }

    .cookie-6 {
        top: 35%;
        right: 2%;
    }
}

/* === MODERN HEADER STYLES === */
.modern-header {
    background-color: transparent;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.5rem 0;
    opacity: 0;
    animation: fadeIn 0.5s ease 0.3s forwards;
}

/* Essential header styles */
.header-container {
    /* max-width: 1200px; */
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-container {
    flex: 0 0 auto;
}

/* .logo-img {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
} */

.logo-img:hover {
    transform: scale(1.05);
}

.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.8rem 1.2rem;
    color: var(--text);
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    border-radius: 50px;
}

.nav-link:hover::before,
.nav-link.active::before {
    opacity: 0.1;
}

.nav-link.active {
    color: var(--primary);
    font-weight: 600;
}

.nav-link i {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-right: 1rem;
}

.cart-icon {
    position: relative;
    padding: 0.7rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 45px;
    height: 45px;
}

.cart-icon:hover {
    background: var(--accent);
    transform: translateY(-2px);
}

.cart-icon i {
    font-size: 1.2rem;
    color: var(--primary);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary);
    color: var(--light);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.7rem;
    font-weight: bold;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.mobile-menu-btn:hover {
    background: rgba(192, 57, 79, 0.1);
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--light);
    z-index: 1001;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
    transition: left 0.4s ease;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
}

.mobile-nav.active {
    left: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--secondary);
}

.mobile-nav-logo {
    height: 40px;
}

.close-mobile-nav {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-item {
    margin-bottom: 0.5rem;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    padding: 1rem;
    color: var(--text);
    text-decoration: none;
    border-radius: 10px;
    transition: background 0.3s ease;
    font-weight: 500;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: var(--secondary);
    color: var(--primary);
}

.mobile-nav-link i {
    margin-right: 0.8rem;
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .main-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .header-container {
        padding: 0 1rem;
    }
}



/* Enhanced Popular Boxes Section */
.popular-boxes {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.popular-boxes::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(192, 57, 79, 0.3), transparent);
}

.boxes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.box-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.box-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    z-index: 2;
}

.box-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.box-card:hover::after {
    left: 100%;
}

.box-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 60px rgba(192, 57, 79, 0.15);
    border-color: rgba(192, 57, 79, 0.1);
}

.box-image {
    height: 240px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #FFD7DF, #FFEBEE);
}

.box-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(192, 57, 79, 0.1), transparent);
    z-index: 1;
}

.box-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s ease;
    filter: brightness(0.95);
}

.box-card:hover .box-image img {
    transform: scale(1.08);
    filter: brightness(1);
}

.box-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(192, 57, 79, 0.3);
}

.box-details {
    padding: 2.5rem;
    position: relative;
    z-index: 2;
}

.box-details h3 {
    color: var(--primary);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.box-details p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.box-features {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 215, 223, 0.1);
    border-radius: 12px;
    border-left: 3px solid var(--primary);
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
}

.feature-text {
    flex: 1;
}

.feature-text strong {
    color: var(--primary);
    font-weight: 600;
}

.box-price-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.box-price {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.box-price::before {
    content: 'EGP ';
    font-size: 1rem;
    font-weight: 600;
}

.box-actions {
    display: flex;
    gap: 1rem;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(192, 57, 79, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(192, 57, 79, 0.4);
}

/* Professional Section Header */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 3.2rem;
    font-weight: 300;
    color: var(--primary);
    margin-bottom: 1rem;
    padding: 1rem;
    letter-spacing: -0.5px;
}

.section-title strong {
    font-weight: 700;
    color: var(--primary);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--primary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .boxes-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .popular-boxes {
        padding: 4rem 0;
    }

    .boxes-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        width: 20px;
        margin: 0 auto;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .box-details {
        padding: 2rem;
    }

    .box-actions {
        flex-direction: column;
    }

    .box-price-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .boxes-grid {
        grid-template-columns: 1fr;
    }

    .box-card {
        margin: 0 1rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

/* Floating Animation */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.box-card:nth-child(1) {
    animation: float 6s ease-in-out infinite;
}

.box-card:nth-child(2) {
    animation: float 6s ease-in-out infinite 2s;
}

.box-card:nth-child(3) {
    animation: float 6s ease-in-out infinite 4s;
}

.box-option .box-img {
    width: 200px;
    /* adjust size as needed */
    height: auto;
    display: block;
    margin: 0 auto 10px;
    /* center and add spacing below */
}


/* Mobile menu styles */
.main-nav.active {
    display: block;
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .nav-list {
        flex-direction: column;
        padding: 1rem 0;
    }

    .nav-item {
        margin: 0;
    }

    .nav-link {
        padding: 1rem 2rem;
        justify-content: flex-start;
    }

    .mobile-menu-btn {
        display: flex;
    }
}

@media (min-width: 769px) {
    .mobile-menu-btn {
        display: none;
    }

    .main-nav {
        display: block !important;
    }
}



/* ==========================================================================
   MOBILE RESPONSIVE STYLES (max-width: 768px)
   ========================================================================== */

@media (max-width: 768px) {

    /* Base mobile adjustments */
    body {
        font-size: 14px;
    }

    .container {
        /* padding: 80px 15px; */
    }

    /* Header mobile styles - Logo centered with menu/cart on sides */
    .modern-header {
        /* padding: 10px 0; */
    }

    .header-container {
        padding: 0 50px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .mobile-menu-btn {
        display: block;
        background: none;
        border: none;
        font-size: 1.5rem;
        color: #333;
        cursor: pointer;
        padding: 8px;
        order: 1;
        /* Left side */
    }

    .logo-container {
        order: 2;
        /* Center */
        flex: 0 1 auto;
        /* margin: 150 15px; */
    }

    .logo-img {
        max-width: 120px;
        height: 50px;
    }

    .header-actions {
        order: 3;
        /* Right side */
    }

    .main-nav {
        display: none;
        /* position: absolute; */
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        order: 4;
        width: 100%;
    }

    .main-nav.active {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        padding: 10px 0;
    }

    .nav-item {
        margin: 0;
    }

    .nav-link {
        padding: 15px 20px;
        justify-content: flex-start;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-link i {
        margin-right: 10px;
        width: 20px;
        text-align: center;
    }

    /* Hero section mobile */
    .hero {
        /* padding: 40px 0; */
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
        padding: 0 10px;
    }

    .svg-container {
        /* flex-direction: column; */
        gap: 30px;
    }

    .team-container {
        margin: 0 10px;
    }

    .cookie-img {
        max-width: 120px;
    }

    /* Features section mobile */
    .features {
        padding: 40px 0;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-card {
        padding: 20px;
    }

    .feature-icon {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    /* Boxes section mobile */
    .boxes {
        padding: 30px 0;
    }

    .box-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .box-option {
        padding: 15px;
    }

    .box-img {
        max-width: 80px;
        margin-bottom: 10px;
    }

    /* Cookies grid mobile */
    .cookies-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    /* .cookie-card {
        padding: 15px;
    } */

    /* .cookie-image img {
        max-width: 100px;
    } */

    .click-indicator {
        font-size: 0.8rem;
        padding: 5px;
    }

    /* Mystery section mobile */
    .mystery-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }


    .question-mark {
        font-size: 3rem;
        width: 80px;
        height: 80px;
        line-height: 80px;
    }

    /* Popup mobile styles */
    .cookie-popup {
        flex-direction: column;
        max-height: 70%;
        width: 80%;
        margin: 20px auto;
    }

    /* Dropdown Cart Styles */
    .cart-dropdown {
        position: absolute;
        top: 100%;
        right: 0;
        width: 350px;
        background: white;
        border-radius: 8px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        z-index: 1000;
        display: none;
        margin-top: 10px;
        border: 1px solid #e0e0e0;
    }

    .cart-dropdown.active {
        display: block;
        animation: fadeInDown 0.3s ease-out;
    }

    @keyframes fadeInDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .cart-dropdown-content {
        max-height: 400px;
        overflow-y: auto;
    }

    .cart-dropdown-header {
        padding: 15px 20px;
        border-bottom: 1px solid #f0f0f0;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .cart-dropdown-header h3 {
        margin: 0;
        font-size: 1.2rem;
        color: #333;
    }

    .cart-dropdown-items {
        padding: 0;
        margin: 0;
        list-style: none;
    }

    .cart-dropdown-item {
        padding: 15px 20px;
        border-bottom: 1px solid #f5f5f5;
        display: flex;
        align-items: center;
    }

    .cart-dropdown-item:last-child {
        border-bottom: none;
    }

    .cart-dropdown-item-image {
        width: 50px;
        height: 50px;
        border-radius: 5px;
        overflow: hidden;
        margin-right: 15px;
        background: #f9f9f9;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .cart-dropdown-item-image img {
        max-width: 100%;
        max-height: 100%;
    }

    .cart-dropdown-item-details {
        flex: 1;
    }

    .cart-dropdown-item-name {
        font-weight: 600;
        margin-bottom: 5px;
        color: #333;
    }

    .cart-dropdown-item-price {
        color: #e67e22;
        font-weight: 600;
    }

    .cart-dropdown-item-quantity {
        display: flex;
        align-items: center;
        margin-top: 5px;
    }

    .cart-dropdown-quantity-btn {
        background: #f5f5f5;
        border: none;
        width: 25px;
        height: 25px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 14px;
    }

    .cart-dropdown-quantity-value {
        margin: 0 10px;
        font-weight: 600;
    }

    .cart-dropdown-remove {
        background: none;
        border: none;
        color: #e74c3c;
        cursor: pointer;
        font-size: 16px;
        margin-left: 10px;
    }

    .cart-dropdown-footer {
        padding: 15px 20px;
        border-top: 1px solid #f0f0f0;
    }

    .cart-dropdown-total {
        display: flex;
        justify-content: space-between;
        margin-bottom: 15px;
        font-weight: 600;
        font-size: 1.1rem;
    }

    .cart-dropdown-checkout {
        width: 100%;
        padding: 12px;
        background: #e67e22;
        color: white;
        border: none;
        border-radius: 5px;
        font-weight: 600;
        cursor: pointer;
        transition: background 0.3s;
    }

    .cart-dropdown-checkout:hover {
        background: #d35400;
    }

    .cart-dropdown-empty {
        padding: 30px 20px;
        text-align: center;
        color: #777;
    }

    .cart-dropdown-empty i {
        font-size: 40px;
        margin-bottom: 15px;
        color: #ddd;
    }

    /* Header adjustments for dropdown positioning */
    .header-actions {
        position: relative;
    }

    /* Close dropdown when clicking outside */
    .cart-dropdown-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 999;
        display: none;
    }

    .cart-dropdown-overlay.active {
        display: block;
    }

    /* Mobile responsiveness */
    @media (max-width: 768px) {
        .cart-dropdown {
            width: 300px;
            right: -10px;
        }
    }

    @media (max-width: 480px) {
        .cart-dropdown {
            width: 280px;
            right: -15px;
        }
    }



    .popup-image {
        width: 100%;
        height: 200px;
        border-radius: 10px 10px 0 0;
    }

    .popup-content {
        padding: 20px;
    }

    .popup-style-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .popup-style-option {
        width: 100%;
        padding: 12px;
    }

    .popup-actions {
        flex-direction: column;
        gap: 15px;
    }

    .quantity-selector {
        justify-content: center;
    }

    .popup-add-to-cart {
        width: 100%;
    }

    /* Flavor popup mobile */
    .flavor-popup {
        width: 95%;
        max-width: 400px;
        margin: 20px auto;
    }

    .flavor-popup-content {
        padding: 20px;
    }

    .popup-style-selection {
        flex-direction: column;
        gap: 10px;
    }

    .popup-style-btn {
        width: 100%;
        padding: 12px;
    }

    .flavor-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .flavor-option {
        padding: 15px;
    }

    /* Cart sidebar mobile */
    .cart-sidebar {
        /* width: 100%; */
        height: 100%;

    }

    .cart-sidebar.active {
        right: 0;
    }

    .cart-item {
        flex-direction: column;
        padding: 15px;
        gap: 10px;
    }

    .cart-item-image {
        width: 60px;
        height: 60px;
    }

    .cart-item-details {
        text-align: center;
    }

    .cart-item-actions {
        justify-content: center;
    }

    /* Footer mobile */
    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .footer-column {
        width: 100%;
    }

    .social-icons {
        justify-content: center;
    }

    /* Button mobile adjustments */
    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .add-to-cart-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    /* Text size adjustments */
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    h4 {
        font-size: 1.1rem;
    }

    /* Utility classes for mobile */
    .mobile-hidden {
        display: none !important;
    }

    .mobile-only {
        display: block !important;
    }

    /* Improved scrolling for mobile */
    .tab-content-area {
        overflow-x: hidden;
    }
}

/* Additional small mobile adjustments */
@media (max-width: 480px) {
    .box-options {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .cookie-img {
        max-width: 100px;
    }

    .question-mark {
        font-size: 2.5rem;
        width: 60px;
        height: 60px;
        line-height: 60px;
    }

    /* Smaller header elements for very small screens */
    .logo-img {
        max-width: 100px;
    }

    .mobile-menu-btn {
        font-size: 1.3rem;
        padding: 6px;
    }

    .cart-icon {
        font-size: 1.3rem;
    }
}

/* Mobile landscape orientation adjustments */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 30px 0;
    }

    .svg-container {
        flex-direction: row;
        justify-content: center;
    }

    .cookie-img {
        max-width: 100px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Header adjustments for landscape */
    .header-container {
        padding: 0 10px;
    }

    .logo-img {
        max-width: 100px;
    }
}

/* High-resolution mobile devices */
@media (max-width: 768px) and (-webkit-min-device-pixel-ratio: 2) {

    .cookie-img,
    .box-img,
    .logo-img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* === IMPROVED SCROLLING STYLES === */

/* Smooth scrolling for the entire document */
html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Improved body scrolling */
body {
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--background);
}

/* Custom scrollbar for Webkit browsers (Chrome, Safari, Edge) */
body::-webkit-scrollbar {
    width: 8px;
}

body::-webkit-scrollbar-track {
    background: var(--background);
}

body::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

body::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

/* Improved scrolling for all scrollable containers */
.tab-content-area,
.flavor-popup-content,
.cart-items,
.cookie-popup {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) rgba(255, 255, 255, 0.1);
}

/* Custom scrollbar for popups and modals */
.flavor-popup-content::-webkit-scrollbar,
.cart-items::-webkit-scrollbar,
.cookie-popup::-webkit-scrollbar {
    width: 6px;
}

.flavor-popup-content::-webkit-scrollbar-track,
.cart-items::-webkit-scrollbar-track,
.cookie-popup::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.flavor-popup-content::-webkit-scrollbar-thumb,
.cart-items::-webkit-scrollbar-thumb,
.cookie-popup::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

.flavor-popup-content::-webkit-scrollbar-thumb:hover,
.cart-items::-webkit-scrollbar-thumb:hover,
.cookie-popup::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

/* Mobile-specific scrolling improvements */
@media (max-width: 768px) {

    /* Prevent body scroll when modals are open */
    body.body-no-scroll {
        overflow: hidden;
        position: fixed;
        width: 100%;
        height: 100%;
    }

    /* Improved touch scrolling for mobile */
    .tab-content-area,
    .flavor-popup-content,
    .cart-items {
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    /* Better scrolling performance */
    .boxes-grid,
    .cookies-grid,
    .flavor-grid {
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
    }

    /* Reduced scroll momentum on iOS */
    .flavor-popup-content,
    .cart-items {
        -webkit-overflow-scrolling: auto;
    }
}

/* Improved scroll performance with hardware acceleration */
.scroll-container {
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Prevent horizontal scroll on mobile */
.container {
    max-width: 100%;
    overflow-x: hidden;
}

/* Smooth scrolling for anchor links */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Accessibility: respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Improved modal scrolling */
.flavor-popup,
.cookie-popup {
    overscroll-behavior: contain;
}

/* Better scrollbar visibility on light backgrounds */
.flavor-popup-content,
.cart-items {
    scrollbar-width: thin;
    scrollbar-color: var(--primary) #f0f0f0;
}

.flavor-popup-content::-webkit-scrollbar-track,
.cart-items::-webkit-scrollbar-track {
    background: #f0f0f0;
}

/* Mobile menu scrolling improvements */
@media (max-width: 768px) {
    .main-nav.active {
        max-height: 80vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .main-nav.active::-webkit-scrollbar {
        width: 4px;
    }

    .main-nav.active::-webkit-scrollbar-thumb {
        background: var(--primary);
        border-radius: 2px;
    }
}

/* Footer area scrolling fix */
footer {
    position: relative;
    z-index: 1;
}

/* Ensure proper stacking context for smooth scrolling */
.tab-content {
    position: relative;
    z-index: 1;
}


/* ===== MOBILE FONT SIZE UPDATES (max-width: 768px) ===== */
@media (max-width: 768px) {

    /* Base font size for mobile */
    body {
        font-size: 14px;
    }

    /* Header text sizes */
    .logo-img {
        height: 40px;
    }

    .nav-link {
        font-size: 1rem;
        padding: 12px 15px;
    }

    .nav-link i {
        font-size: 1.1rem;
    }

    .cart-count {
        font-size: 0.7rem;
    }

    /* Hero section text */
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.1;
        margin-bottom: 15px;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 25px;
        line-height: 1.4;
    }

    .team-label {
        font-size: 1rem;
        margin-top: -100px;

    }

    /* Section titles */
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 25px;
    }

    .section-title::after {
        width: 60px;
        height: 3px;
        bottom: -12px;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    /* Feature cards */
    .feature-card h3 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }

    .feature-card p {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .feature-icon {
        font-size: 1.8rem;
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }

    /* Box options */
    .box-option h4 {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }

    .box-option p {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }

    .price-display {
        font-size: 1.2rem;
    }

    /* Cookie cards */
    .cookie-details h3 {
        font-size: 1.1rem;
        min-height: auto;
        margin-bottom: 8px;
    }

    .cookie-details p {
        font-size: 0.85rem;
        margin-bottom: 15px;
        line-height: 1.3;
    }

    .cookie-price {
        font-size: 1.2rem;
    }

    .add-to-cart-btn {
        font-size: 0.9rem;
        padding: 10px 15px;
    }

    .click-indicator {
        font-size: 0.7rem;
        padding: 4px 8px;
    }

    .cookie-tag {
        font-size: 0.75rem;
        padding: 3px 8px;
    }

    /* Mystery section */
    .mystery-details h3 {
        font-size: 1.4rem;
        margin-bottom: 12px;
    }

    .mystery-details p {
        font-size: 0.9rem;
        margin-bottom: 12px;
        line-height: 1.4;
    }

    .mystery-details ul li {
        font-size: 0.85rem;
        margin-bottom: 8px;
    }

    .mystery-price {
        font-size: 1.5rem;
        margin: 15px 0;
    }

    .mystery-note {
        font-size: 0.8rem;
        margin-bottom: 15px;
    }

    .mystery-btn {
        font-size: 1rem;
        padding: 10px 15px;
    }

    /* Popup text sizes */
    .flavor-popup-header h3 {
        font-size: 1.3rem;
    }

    .popup-box-info h4 {
        font-size: 1.2rem;
    }

    .popup-box-info p {
        font-size: 0.9rem;
    }

    .popup-box-price {
        font-size: 1.3rem;
    }

    .flavor-instruction {
        font-size: 1rem;
    }

    .selection-counter {
        font-size: 0.9rem;
    }

    .flavor-label {
        font-size: 0.9rem;
    }

    .flavor-name {
        font-size: 0.95rem;
    }

    .flavor-type {
        font-size: 0.8rem;
    }

    .popup-style-btn {
        font-size: 0.85rem;
        padding: 10px 15px;
    }

    .add-to-cart-popup {
        font-size: 1rem;
        padding: 12px;
    }

    /* Cookie detail popup */
    .popup-content h2 {
        font-size: 1.0rem;
        margin-bottom: 12px;
    }

    .popup-content p {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }

    .popup-style-option {
        font-size: 0.85rem;
        padding: 10px 12px;
    }

    .detail-text {
        font-size: 0.9rem;
    }

    .popup-price {
        font-size: 1.4rem;
        margin: 15px 0;
    }

    .quantity-value {
        font-size: 1rem;
    }

    .popup-add-to-cart {
        font-size: 1rem;
        padding: 10px 15px;
    }

    /* Cart sidebar */
    .cart-header h2 {
        font-size: 1.3rem;
    }

    .cart-item-name {
        font-size: 0.95rem;
    }

    .cart-item-price {
        font-size: 0.9rem;
    }

    .cart-total {
        font-size: 1.1rem;
    }

    .checkout-btn {
        font-size: 1rem;
        padding: 12px;
    }

    /* Footer */
    .footer-column h3 {
        font-size: 1.2rem;
        /* margin-bottom: 12px; */
    }

    .footer-column p {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .social-icons {
        font-size: 1.3rem;
        gap: 1rem;
    }

    .copyright {
        font-size: 0.85rem;
        margin-top: 2rem;
    }

    /* Buttons */
    .btn {
        font-size: 0.9rem;
        padding: 10px 20px;
    }
}

/* ===== SMALL MOBILE ADJUSTMENTS (max-width: 480px) ===== */
@media (max-width: 480px) {
    body {
        font-size: 13px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .feature-card h3 {
        font-size: 1.1rem;
    }

    .feature-card p {
        font-size: 0.85rem;
    }

    .box-option h4 {
        font-size: 1rem;
    }

    .box-option p {
        font-size: 0.8rem;
    }

    .cookie-details h3 {
        font-size: 1rem;
    }

    .cookie-details p {
        font-size: 0.8rem;
    }

    .mystery-details h3 {
        font-size: 1.2rem;
    }

    .mystery-details p {
        font-size: 0.85rem;
    }

    .flavor-popup-header h3 {
        font-size: 1.1rem;
    }
}

/* ===== LANDSCAPE ORIENTATION ADJUSTMENTS ===== */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.6rem;
    }
}

/* ===== ACCESSIBILITY: RESPECT USER FONT SIZE PREFERENCES ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Ensure good contrast and readability */
@media (max-width: 768px) {
    .nav-link {
        font-weight: 500;
    }

    .feature-card h3,
    .box-option h4,
    .cookie-details h3 {
        font-weight: 600;
    }

    .price-display,
    .cookie-price,
    .mystery-price,
    .popup-box-price,
    .popup-price {
        font-weight: 700;
    }
}




/* Add to your existing CSS */
.price-display.range {
    font-weight: 600;
    color: var(--primary);
}

.box-prices {
    min-height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* Add to your existing CSS */
.box-option {
    display: flex;
    flex-direction: column;
    height: 100%;
    /* Ensure all boxes have same height */
}

.box-option h4 {
    margin: 0 0 8px 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    min-height: 2.4rem;
    /* Fixed height for title */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.box-option p {
    margin: 0 0 15px 0;
    color: #666;
    line-height: 1.4;
    flex-grow: 1;
    /* Allow description to take available space */
    min-height: 2.8rem;
    /* Minimum height for description */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.box-prices {
    margin-top: auto;
    /* Push prices to bottom */
    padding: 10px 0 0 0;
    min-height: 40px;
    /* Fixed height for price area */
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid #f0f0f0;
}

.price-display {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
}

/* Ensure all box options have consistent sizing */
.box-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-items: stretch;
    /* Make all boxes same height */
}

.box-option {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
    height: 100%;
    /* Take full available height */
    box-sizing: border-box;
}

.box-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: var(--primary);
}


.loading-spinner .brand-name {
    font-family: 'Stella', cursive;
    font-size: 4.5rem;
    color: var(--primary);
    overflow: hidden;
    border-right: 3px solid var(--primary);
    white-space: nowrap;
    animation: typing 3s steps(15, end) infinite, blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    0% {
        width: 0
    }

    50% {
        width: 100%
    }

    80% {
        width: 100%
    }

    100% {
        width: 0
    }
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent
    }

    50% {
        border-color: var(--primary)
    }
}


/* Speech Bubble Animations */
.svg-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    position: relative;
    /* margin: 2rem 0; */
}

.team-container {
    position: relative;
    text-align: center;
    animation: float 3s ease-in-out infinite;
}

.team-container:nth-child(1) {
    animation-delay: 0s;
}

.team-container:nth-child(2) {
    animation-delay: 1.5s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Speech Bubbles */
/* .speech-bubble {
    position: absolute;
    background: white;
    border: 3px solid var(--primary);
    border-radius: 20px;
    padding: 1rem 1.5rem;
    max-width: 280px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(20px);
    animation: bubbleAppear 8s infinite;
    z-index: 10;
    font-family: 'More Sugar', cursive;
}

.crumble-bubble {
    top: -140px;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 2s;
}

.chewy-bubble {
    top: -140px;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 6s;
} */

.bubble-text {
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.4;
    font-weight: 500;
}

.bubble-text strong {
    color: var(--primary);
    font-weight: 700;
}


@keyframes bubbleAppear {

    0%,
    100% {
        opacity: 0;
        transform: translateY(20px) translateX(-50%);
    }

    10%,
    40% {
        opacity: 1;
        transform: translateY(0) translateX(-50%);
    }

    50% {
        opacity: 1;
        transform: translateY(0) translateX(-50%);
    }

    60% {
        opacity: 0;
        transform: translateY(-20px) translateX(-50%);
    }
}

/* Cookie Character Animations */
.cookie-img {
    width: 100%;
    cursor: default;
    transition: transform 0.3s ease;
    animation-duration: 2s;
    animation-iteration-count: infinite;
}

.crumble-img {
    animation-name: crumbleTalk;
}

.chewy-img {
    animation-name: chewyTalk;
}

@keyframes crumbleTalk {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-5px) rotate(-2deg);
    }

    75% {
        transform: translateY(2px) rotate(2deg);
    }
}

@keyframes chewyTalk {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-5px) rotate(2deg);
    }

    75% {
        transform: translateY(2px) rotate(-2deg);
    }
}

/* Team Labels */
.team-label {
    text-align: center;
    margin-top: -65px;
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--primary);
    font-family: 'More Sugar', cursive;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .svg-container {
        flex-direction: column;
        gap: 2rem;
    }

    .speech-bubble {
        max-width: 220px;
        font-size: 0.8rem;
    }

    .crumble-bubble {
        top: -120px;
    }

    .chewy-bubble {
        top: -120px;
    }

    .cookie-img {
        max-width: 200px;
    }
}

/* VS Badge Styles */
.vs-container {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    position: relative;
}

.vs-badge {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(200, 6, 6, 0.3);
    border: 4px solid white;
    position: relative;
    animation: pulse 2s ease-in-out infinite;
}

.vs-text {
    font-family: 'Stella', cursive;
    font-size: 1.8rem;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 8px 25px rgba(200, 6, 6, 0.3);
    }

    50% {
        transform: scale(1.1);
        box-shadow: 0 12px 35px rgba(200, 6, 6, 0.5);
    }
}

/* Update SVG container for proper spacing */
.svg-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    /* Reduced gap since VS is in the middle */
    /* margin-top: 2rem; */
    position: relative;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .svg-container {
        flex-direction: column;
        gap: 1.5rem;
    }

    .vs-container {
        margin: 1rem 0;
    }

    .vs-badge {
        width: 60px;
        height: 60px;
    }

    .vs-text {
        font-size: 1.4rem;
    }
}

/* Footer Styles */
footer {
    background: var(--primary);

    color: var(--light);
    padding-top: 0rem;
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    /* margin-bottom: 2rem; */
}

.footer-column h3 {
    font-size: 1.3rem;
    /* margin-bottom: 1.5rem; */
    color: var(--background);
}

.footer-column p {
    color: var(--background);
    line-height: 1.6;
    /* margin-bottom: 1.5rem; */
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.8rem;
    display: list-item;
    align-items: center;
    color: var(--background);
}

.footer-column ul li i {
    margin-right: 0.8rem;
    color: var(--primary);
    width: 16px;
    text-align: center;
}

.footer-column ul li a {
    color: var(--background);
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.footer-column ul li a:hover {
    color: var(--secondary);
    transform: translateX(5px);
}

.social-icons {
    font-size: 1.5rem;
    display: flex;
    gap: 1.2rem;
    /* margin-top: 1.5rem; */
}

.social-icons a {
    color: var(--light);
    transition: var(--transition);
    padding: 0.5rem;
}

.social-icons a:hover {
    color: var(--secondary);
    transform: translateY(-5px);
}

/* Powered By Section */
.powered-by {
    text-align: center;
    /* margin: 2rem 0 1.5rem; */
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--background);
    font-size: 0.95rem;
}

.developer-link {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.developer-link:hover {
    color: var(--secondary);
    transform: translateY(-2px);
}

.developer-link i {
    font-size: 1.1rem;
}

.copyright {
    text-align: center;
    margin-top: 1.5rem;
    /* padding-top: 1.5rem; */
    color: var(--background);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
    }

    .footer-column ul li {
        justify-content: center;
    }

    .social-icons {
        justify-content: center;
    }

    .powered-by {
        margin: 1.5rem 0;
        padding: 1rem 0;
    }

    .developer-link {
        margin-left: 0.3rem;
    }
}

@media (max-width: 480px) {
    footer {
        padding: 3rem 0 1.5rem;
    }

    .footer-content {
        gap: 2rem;
    }

    .powered-by {
        font-size: 0.9rem;
    }
}


/* Hero Logo Styles */
.hero-logo {
    text-align: center;
    background-color: transparent;
    animation: fadeInDown 1s ease-out;
    background-color: #fdd1d1;
}

.hero-logo-img {
    max-width: 910px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    transition: all 0.3s ease;
}

.hero-logo-img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.3));
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Update hero title margin to account for logo */
.hero-title {
    font-family: 'Stella', cursive;
    font-size: 8rem;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 1.5rem;
    /* Reduced margin since logo is above */
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    color: var(--primary);
    font-family: 'More Sugar', cursive;
    animation: fadeInUp 1s ease-out 0.5s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-logo {
        margin-bottom: 1rem;
    }

    .hero-logo-img {
        max-width: 150px;
    }

    .hero-title {
        font-size: 3rem;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-logo-img {
        max-width: 120px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
}

/* VS Battle Styles */
.vs-battle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 5;
    position: relative;
    margin: 0 2rem;
}

.vs-circle {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(200, 6, 6, 0.4);
    border: 4px solid white;
    position: relative;
    animation: vsPulse 2s ease-in-out infinite;
}

.vs-circle::before {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    animation: vsRotate 3s linear infinite;
}

.vs-text {
    font-family: 'Stella', cursive;
    font-size: 2rem;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.vs-subtitle {
    margin-top: 1rem;
    font-family: 'More Sugar', cursive;
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    opacity: 0.9;
    animation: vsFade 3s ease-in-out infinite;
}

@keyframes vsPulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 8px 25px rgba(200, 6, 6, 0.4);
    }

    50% {
        transform: scale(1.1);
        box-shadow: 0 12px 35px rgba(200, 6, 6, 0.6);
    }
}

@keyframes vsRotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes vsFade {

    0%,
    100% {
        opacity: 0.7;
        transform: translateY(0);
    }

    50% {
        opacity: 1;
        transform: translateY(-5px);
    }
}

/* Update SVG container for proper spacing with VS */
.svg-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    /* margin-top: 2rem; */
    position: relative;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .svg-container {
        flex-direction: column;
        gap: 1.5rem;
    }

    .vs-battle {
        margin: 1rem 0;
        order: 2;
        /* Ensure VS appears between cookies in column layout */
    }

    .vs-circle {
        width: 80px;
        height: 80px;
    }

    .vs-text {
        font-size: 1.6rem;
    }

    .vs-subtitle {
        font-size: 1rem;
        margin-top: 0.8rem;
    }
}

@media (max-width: 480px) {
    .vs-circle {
        width: 70px;
        height: 70px;
    }

    .vs-text {
        font-size: 1.4rem;
    }

    .vs-subtitle {
        font-size: 0.9rem;
    }
}


/* Fighting Animation Styles */
.svg-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    /* margin-top: 2rem; */
    position: relative;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.team-container {
    position: relative;
    text-align: center;
    transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    flex: 1;
    max-width: 350px;
}

.team-container.crumble {
    transform: translateX(0);
}

.team-container.chewy {
    transform: translateX(0);
}

/* Fighting animations */
.team-container.fighting-crumble {
    animation: crumbleCharge 1s ease-in-out forwards;
}

.team-container.fighting-chewy {
    animation: chewyCharge 1s ease-in-out forwards;
}

.team-container.return-crumble {
    animation: crumbleReturn 0.8s ease-out forwards;
}

.team-container.return-chewy {
    animation: chewyReturn 0.8s ease-out forwards;
}

@keyframes crumbleCharge {
    0% {
        transform: translateX(0) scale(1);
    }

    50% {
        transform: translateX(120px) scale(1.1) rotate(-5deg);
    }

    100% {
        transform: translateX(80px) scale(1.05) rotate(-3deg);
    }
}

@keyframes chewyCharge {
    0% {
        transform: translateX(0) scale(1);
    }

    50% {
        transform: translateX(-120px) scale(1.1) rotate(5deg);
    }

    100% {
        transform: translateX(-80px) scale(1.05) rotate(3deg);
    }
}

@keyframes crumbleReturn {
    0% {
        transform: translateX(80px) scale(1.05) rotate(-3deg);
    }

    100% {
        transform: translateX(0) scale(1) rotate(0deg);
    }
}

@keyframes chewyReturn {
    0% {
        transform: translateX(-80px) scale(1.05) rotate(3deg);
    }

    100% {
        transform: translateX(0) scale(1) rotate(0deg);
    }
}

/* Cookie impact animation */
@keyframes cookieImpact {
    0% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.2);
    }

    50% {
        transform: scale(0.9);
    }

    75% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.cookie-impact {
    animation: cookieImpact 0.4s ease-in-out;
}

/* Dust Effects */
.dust-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10;
}

.dust-particle {
    position: absolute;
    background: linear-gradient(45deg, #8B4513, #D2B48C, #F5F5DC);
    border-radius: 50%;
    opacity: 0;
    animation: dustExplode 1s ease-out forwards;
}

@keyframes dustExplode {
    0% {
        transform: translate(0, 0) scale(0);
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }

    100% {
        transform: translate(var(--dust-x), var(--dust-y)) scale(1);
        opacity: 0;
    }
}

/* Impact Flash */
.impact-flash {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    animation: flash 0.3s ease-out forwards;
    pointer-events: none;
    z-index: 5;
}

@keyframes flash {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

/* Shockwave Effect */
.shockwave {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 215, 0, 0.8);
    border-radius: 50%;
    animation: shockwave 0.8s ease-out forwards;
    pointer-events: none;
    z-index: 4;
}

@keyframes shockwave {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(8);
        opacity: 0;
    }
}

/* VS Battle Styles - Updated */
.vs-battle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 5;
    position: relative;
    margin: 0 2rem;
    /* cursor: pointer; */
    transition: transform 0.3s ease;
}

.vs-battle:hover {
    transform: scale(1.05);
}

.vs-circle {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(200, 6, 6, 0.4);
    border: 4px solid white;
    position: relative;
    animation: vsPulse 2s ease-in-out infinite;
    /* cursor: pointer; */
    transition: all 0.3s ease;
}

.vs-circle.battle-active {
    animation: vsBattleActive 1s ease-in-out;
}

@keyframes vsBattleActive {

    0%,
    100% {
        transform: scale(1);
        background: linear-gradient(135deg, var(--primary), var(--primary-light));
    }

    25% {
        transform: scale(1.2);
        background: linear-gradient(135deg, #ff6b6b, #c0394f);
    }

    50% {
        transform: scale(0.9);
        background: linear-gradient(135deg, #ffd700, #ffa500);
    }

    75% {
        transform: scale(1.1);
        background: linear-gradient(135deg, #c0394f, #ff6b6b);
    }
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .svg-container {
        flex-direction: column;
        gap: 1.5rem;
    }

    .vs-battle {
        margin: 1rem 0;
        order: 2;
    }

    @keyframes crumbleCharge {
        0% {
            transform: translateY(0) scale(1);
        }

        50% {
            transform: translateY(80px) scale(1.1) rotate(-5deg);
        }

        100% {
            transform: translateY(60px) scale(1.05) rotate(-3deg);
        }
    }

    @keyframes chewyCharge {
        0% {
            transform: translateY(0) scale(1);
        }

        50% {
            transform: translateY(-80px) scale(1.1) rotate(5deg);
        }

        100% {
            transform: translateY(-60px) scale(1.05) rotate(3deg);
        }
    }

    @keyframes crumbleReturn {
        0% {
            transform: translateY(60px) scale(1.05) rotate(-3deg);
        }

        100% {
            transform: translateY(0) scale(1) rotate(0deg);
        }
    }

    @keyframes chewyReturn {
        0% {
            transform: translateY(-60px) scale(1.05) rotate(3deg);
        }

        100% {
            transform: translateY(0) scale(1) rotate(0deg);
        }
    }
}



/* Reposition speech bubbles to sides */
.speech-bubble {
    position: absolute;
    background: white;
    border: 3px solid var(--primary);
    border-radius: 20px;
    padding: 1rem 1.5rem;
    max-width: 280px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(20px);
    animation: bubbleAppear 8s infinite;
    z-index: 10;
    font-family: 'More Sugar', cursive;
}

.crumble-bubble {
    top: 50%;
    left: -220px;
    /* Position to the left of the cookie */
    transform: translateY(-50%);
    animation-delay: 2s;
}

/* Chewy bubble on RIGHT side */
.chewy-bubble {
    top: 50%;
    right: -220px;
    /* Position to the right of the cookie */
    transform: translateY(-50%);
    animation-delay: 6s;
}

/* Update bubble arrows to point toward cookies from right side */
/* Crumble arrow pointing RIGHT */
.crumble-bubble .bubble-arrow {
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    border-right: 3px solid var(--primary);
    border-bottom: 3px solid var(--primary);
    right: -11px;
    /* Arrow on right side pointing left */
    /* top: 50%; */
    transform: translateY(-50%) rotate(-45deg);
}

/* Chewy arrow pointing LEFT */
.chewy-bubble .bubble-arrow {
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    /* border-left: 3px solid var(--primary);
    border-top: 3px solid var(--primary); */
    left: -11px;
    /* Arrow on left side pointing right */
    /* top: 50%; */
    transform: translateY(-50%) rotate(-45deg);
}

/* Make sure team containers have relative positioning */
.team-container {
    position: relative;
    text-align: center;
    animation: float 3s ease-in-out infinite;
}

/* Update animation for side positioning */
@keyframes bubbleAppear {

    0%,
    100% {
        opacity: 0;
        transform: translateY(-50%) translateX(20px);
    }

    10%,
    40% {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }

    50% {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }

    60% {
        opacity: 0;
        transform: translateY(-50%) translateX(-20px);
    }
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .speech-bubble {
        max-width: 200px;
        font-size: 0.8rem;
        padding: 0.8rem 1rem;
    }

    .crumble-bubble {
        left: -250px;
    }

    .chewy-bubble {
        right: -250px;
    }
}

@media (max-width: 480px) {
    .speech-bubble {
        max-width: 150px;
        font-size: 0.7rem;
        padding: 0.6rem 0.8rem;
    }

    .crumble-bubble {
        left: -180px;
    }

    .chewy-bubble {
        right: -180px;
    }

    /* On very small screens, stack bubbles above */
    @media (max-width: 360px) {
        .speech-bubble {
            position: relative;
            left: auto;
            right: auto;
            top: auto;
            transform: none;
            margin: 1rem auto;
            max-width: 250px;
        }

        .crumble-bubble {
            order: -1;
        }

        .chewy-bubble {
            order: 1;
        }

        .svg-container {
            flex-direction: column;
        }

        .team-container {
            margin-bottom: 2rem;
        }
    }
}

@media (max-width: 768px) {
    .crumble-bubble {
        left: -250px;
    }

    .chewy-bubble {
        right: -250px;
    }

    #home-tab {
        background-image: url('images/10.jpg');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        background-attachment: fixed;
    }
}

@media (max-width: 480px) {
    .crumble-bubble {
        left: -180px;
    }

    .chewy-bubble {
        right: -180px;
    }
}


/* Add this to your existing CSS */

/* Home Tab Background */
#home-tab {
    background-image: url('images/10.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Ensure hero section has transparent background */

/* Update hero logo to work with background */
.hero-logo {
    background: transparent;
    padding: 2rem 0;
}

/* Ensure content sections have proper backgrounds */
.features {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
}

/* Make sure text is readable over the background */
.hero-subtitle {
    color: var(--primary);
    text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.8);
    /* background: rgba(255, 255, 255, 0.7); */
    padding: 1rem;
    border-radius: 15px;
    display: inline-block;
}



/* Make speech bubbles more visible */
.speech-bubble {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.brand-story {
    max-width: 800px;
    margin: 0 auto 2rem;
    padding: 1.5rem;
    /* background-color: transparent; */
    border-radius: 12px;
    /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); */
}

.brand-story h1 {
    font-size: 2rem;
    color: var(--primary);
    ;
    margin-bottom: 1rem;
    text-align: center;
}

.brand-name {
    color: var(--primary);
    font-weight: bold;
    color: var(--primary);
    ;
    font-family: "Stella", serif;
}

.story-text {
    margin-bottom: 1rem;
    text-align: center;
    color: var(--primary);
    font-size: 1.1rem;
    line-height: 1.7;
}

.brand-tagline {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary);
    text-align: center;
    margin-top: 1rem;
    font-style: italic;
}


.brand-signature {
    font-size: 1.2rem;
    text-align: center;
    margin-top: 2rem;
    font-style: italic;
    color: var(--primary);
    ;
    line-height: 1.8;
    font-family: 'More Sugar', cursive;
}


/* Cookie Showcase Section */
.cookie-showcase {
    padding: 5rem 0;
    background: #fdd1d1;
}

.cookie-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding-right: 20px;
    padding-left: 20px;
    margin-bottom: 3rem;
}

.showcase-cookie-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.showcase-cookie-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: var(--primary);
}

.showcase-cookie-image {
    height: 120px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.showcase-cookie-image img {
    max-height: 100%;
    transition: transform 0.3s ease;
}

.showcase-cookie-card:hover .showcase-cookie-image img {
    transform: scale(1.1);
}

.showcase-cookie-details h3 {
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-family: 'More Sugar', cursive;
}

.showcase-cookie-details p {
    color: var(--text);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.showcase-cookie-price {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.showcase-add-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    font-family: 'More Sugar', cursive;
}

.showcase-add-btn:hover {
    background: #A02A3F;
    transform: translateY(-2px);
}

.showcase-more-btn {
    display: block;
    margin: 0 auto;
    padding: 1rem 2.5rem;
    background: transparent;
    border: 3px solid var(--primary);
    color: var(--primary);
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'More Sugar', cursive;
}

.showcase-more-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(192, 57, 79, 0.3);
}

.showcase-more-btn i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.showcase-more-btn:hover i {
    transform: translateX(5px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cookie-showcase-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
        padding-right: 10px;
        padding-left: 10px;
    }

    .showcase-cookie-card {
        padding: 1.5rem;
    }

    .showcase-cookie-image {
        height: 100px;
    }
}

/* Make showcase cards more interactive */
.showcase-cookie-card {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.showcase-cookie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.showcase-add-btn {
    pointer-events: auto;
    /* Ensure button is clickable */
}

/* Add a subtle click indicator */
.showcase-cookie-card::after {
    content: 'Click for details';
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    color: var(--primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.showcase-cookie-card:hover::after {
    opacity: 1;
}

/* Box Showcase Section */
.box-showcase {
    padding: 5rem 0;
    background: #fdd1d1;
}

.box-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    padding-right: 20px;
    padding-left: 20px;
}

.showcase-box-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 3px solid transparent;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.showcase-box-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: var(--primary);
}

.showcase-box-image {
    height: 140px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.showcase-box-image img {
    max-height: 100%;
    max-width: 100%;
    transition: transform 0.3s ease;
}

.showcase-box-card:hover .showcase-box-image img {
    transform: scale(1.1);
}

.showcase-box-details h3 {
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-family: 'More Sugar', cursive;
    min-height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.showcase-box-details p {
    color: var(--text);
    margin-bottom: 1rem;
    line-height: 1.5;
    min-height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.showcase-box-price {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.showcase-box-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    font-family: 'More Sugar', cursive;
}

.showcase-box-btn:hover {
    background: #A02A3F;
    transform: translateY(-2px);
}

/* Click indicator for box cards */
.showcase-box-card::after {
    content: 'Click to customize';
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    color: var(--primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.showcase-box-card:hover::after {
    opacity: 1;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .box-showcase-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
        padding-right: 20px;
        padding-left: 20px;
    }

    .showcase-box-card {
        padding: 1.5rem;
    }

    .showcase-box-image {
        height: 120px;
    }

    .showcase-box-details h3 {
        min-height: auto;
    }

    .showcase-box-details p {
        min-height: auto;
    }
}

/* Enhanced Loading Screen Styles */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--secondary);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    font-family: 'More Sugar', cursive;
    font-size: 1.2rem;
    color: var(--primary);
    margin-top: 1rem;
}

.loading-progress {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 200px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--secondary);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    font-family: 'More Sugar', cursive;
    font-size: 0.9rem;
    color: var(--primary);
}

/* Brand name animation */
.loading-content .brand-name {
    font-family: 'Stella', cursive;
    font-size: 3.5rem;
    color: var(--primary);
    overflow: hidden;
    border-right: 3px solid var(--primary);
    white-space: nowrap;
    animation: typing 3s steps(15, end) infinite, blink-caret 0.75s step-end infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes typing {
    0% {
        width: 0
    }

    50% {
        width: 100%
    }

    80% {
        width: 100%
    }

    100% {
        width: 0
    }
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent
    }

    50% {
        border-color: var(--primary)
    }
}

/* Loading states for content */
.loading-cookies,
.loading-boxes {
    text-align: center;
    padding: 2rem;
    color: var(--primary);
    font-family: 'More Sugar', cursive;
    font-size: 1.2rem;
}

.error-message {
    text-align: center;
    padding: 2rem;
    color: #e74c3c;
    font-family: 'More Sugar', cursive;
    font-size: 1.1rem;
}



.image-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.6;
    }

    50% {
        opacity: 0.3;
    }

    100% {
        opacity: 0.6;
    }
}


/* Logo Section Styles */
.logo-section {
    /* padding: 4rem 0; */
    /* background: linear-gradient(135deg, #fdd1d1 0%, #ffebee 50%, #fdd1d1 100%); */
    position: relative;
    overflow: hidden;
}

.logo-animation-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.logo-with-animation {
    position: relative;
    display: inline-block;
    margin: 0 auto;
}

.animated-logo {
    max-width: 400px;
    height: auto;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.2));
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.animated-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.3));
}

/* Crumbs Animation */
.logo-crumbs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.crumb {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0;
    animation: crumbFall 4s ease-in-out infinite;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.crumb-1 {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.crumb-2 {
    top: 25%;
    left: 20%;
    animation-delay: 0.8s;
}

.crumb-3 {
    top: 20%;
    left: 80%;
    animation-delay: 1.6s;
}

.crumb-4 {
    top: 30%;
    left: 70%;
    animation-delay: 2.4s;
}

.crumb-5 {
    top: 35%;
    left: 45%;
    animation-delay: 3.2s;
}

.crumb-6 {
    top: 40%;
    left: 55%;
    animation-delay: 4s;
}

@keyframes crumbFall {
    0% {
        opacity: 0;
        transform: translateY(-30px) rotate(0deg) scale(0.8);
    }

    20% {
        opacity: 1;
        transform: translateY(0) rotate(45deg) scale(1);
    }

    40% {
        opacity: 1;
        transform: translateY(20px) rotate(90deg) scale(1.1);
    }

    60% {
        opacity: 0.8;
        transform: translateY(40px) rotate(135deg) scale(1);
    }

    80% {
        opacity: 0.4;
        transform: translateY(60px) rotate(180deg) scale(0.9);
    }

    100% {
        opacity: 0;
        transform: translateY(80px) rotate(225deg) scale(0.8);
    }
}

/* Steam Animation */
.logo-steam {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.steam {
    position: absolute;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.4));
    border-radius: 50%;
    opacity: 0;
    animation: steamRise 5s ease-out infinite;
    filter: blur(2px);
}

.steam-1 {
    width: 25px;
    height: 25px;
    top: 45%;
    left: 25%;
    animation-delay: 0s;
}

.steam-2 {
    width: 20px;
    height: 20px;
    top: 40%;
    left: 50%;
    animation-delay: 1.2s;
}

.steam-3 {
    width: 18px;
    height: 18px;
    top: 50%;
    left: 65%;
    animation-delay: 2.4s;
}

.steam-4 {
    width: 22px;
    height: 22px;
    top: 35%;
    left: 75%;
    animation-delay: 3.6s;
}

@keyframes steamRise {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0.3);
    }

    15% {
        opacity: 0.8;
        transform: translateY(-15px) scale(0.8);
    }

    30% {
        opacity: 0.6;
        transform: translateY(-30px) scale(1.2);
    }

    45% {
        opacity: 0.4;
        transform: translateY(-45px) scale(1.5);
    }

    60% {
        opacity: 0.2;
        transform: translateY(-60px) scale(1.8);
    }

    75% {
        opacity: 0.1;
        transform: translateY(-75px) scale(2);
    }

    100% {
        opacity: 0;
        transform: translateY(-90px) scale(2.2);
    }
}

/* Logo Tagline */
.logo-tagline {
    text-align: center;
    margin-top: 1rem;
}

.logo-tagline h2 {
    font-family: 'More Sugar', cursive;
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.logo-tagline p {
    font-family: 'More Sugar', cursive;
    font-size: 1.8rem;
    color: var(--primary);
    opacity: 0.9;
}

/* Background Decoration */
.logo-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 80%, rgba(255, 215, 223, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 235, 238, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 241, 242, 0.2) 0%, transparent 50%);
    z-index: 1;
}

/* Floating Cookie Decorations */
.logo-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="%23c80606" opacity="0.1"/></svg>'),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="35" fill="%23c80606" opacity="0.05"/></svg>');
    background-size: 80px 80px, 60px 60px;
    background-position: 10% 20%, 90% 80%;
    background-repeat: no-repeat;
    animation: floatBackground 20s ease-in-out infinite;
    z-index: 1;
}

@keyframes floatBackground {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    33% {
        transform: translateY(-10px) rotate(1deg);
    }

    66% {
        transform: translateY(10px) rotate(-1deg);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .logo-section {
        /* padding: 3rem 0; */
    }

    .animated-logo {
        max-width: 280px;
    }

    .logo-tagline h2 {
        font-size: 2rem;
    }

    .logo-tagline p {
        font-size: 1rem;
    }

    .crumb {
        width: 8px;
        height: 8px;
    }

    .steam-1 {
        width: 18px;
        height: 18px;
    }

    .steam-2 {
        width: 15px;
        height: 15px;
    }

    .steam-3 {
        width: 12px;
        height: 12px;
    }

    .steam-4 {
        width: 16px;
        height: 16px;
    }

    @keyframes crumbFall {
        0% {
            opacity: 0;
            transform: translateY(-20px) rotate(0deg) scale(0.8);
        }

        20% {
            opacity: 1;
            transform: translateY(0) rotate(45deg) scale(1);
        }

        40% {
            opacity: 1;
            transform: translateY(15px) rotate(90deg) scale(1.1);
        }

        60% {
            opacity: 0.8;
            transform: translateY(30px) rotate(135deg) scale(1);
        }

        80% {
            opacity: 0.4;
            transform: translateY(45px) rotate(180deg) scale(0.9);
        }

        100% {
            opacity: 0;
            transform: translateY(60px) rotate(225deg) scale(0.8);
        }
    }

    @keyframes steamRise {
        0% {
            opacity: 0;
            transform: translateY(0) scale(0.3);
        }

        15% {
            opacity: 0.8;
            transform: translateY(-10px) scale(0.8);
        }

        30% {
            opacity: 0.6;
            transform: translateY(-20px) scale(1.2);
        }

        45% {
            opacity: 0.4;
            transform: translateY(-30px) scale(1.5);
        }

        60% {
            opacity: 0.2;
            transform: translateY(-40px) scale(1.8);
        }

        75% {
            opacity: 0.1;
            transform: translateY(-50px) scale(2);
        }

        100% {
            opacity: 0;
            transform: translateY(-60px) scale(2.2);
        }
    }
}

@media (max-width: 480px) {
    .logo-section {
        /* padding: 2rem 0; */
    }

    .animated-logo {
        max-width: 220px;
    }

    .logo-tagline h2 {
        font-size: 1.6rem;
    }

    .logo-tagline p {
        font-size: 0.9rem;
    }
}



/* Story Tabs Navigation */
.story-tabs-nav {
    display: none !important;
}

/* Ensure story tab panes are properly styled */
.story-tab-pane {
    display: none;
}

.story-tab-pane.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.story-tab-btn {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.2rem 2rem;
    background: white;
    border: 2px solid var(--secondary);
    border-radius: 50px;
    color: var(--text);
    font-family: 'More Sugar', cursive;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.story-tab-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    border-color: var(--primary);
}

.story-tab-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(192, 57, 79, 0.3);
}

.story-tab-btn i {
    font-size: 1.2rem;
}

/* Story Tabs Content */
.story-tab-pane {
    display: none;
    animation: fadeIn 0.5s ease;
}

.story-tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Our Story Pane Styles */
.story-hero {
    text-align: center;
    /* margin-bottom: 4rem; */
    padding: 3rem 0;
    /* background: linear-gradient(135deg, #fffafafa 50%, #fff5f5f5 100%); */
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.story-hero h1 {
    font-family: 'More Sugar', cursive;
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text);
    opacity: 0.8;
}

.floating-cookies {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.cookie-floating {
    position: absolute;
    font-size: 2rem;
    animation: floatAround 6s ease-in-out infinite;
}

.cookie-floating:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.cookie-floating:nth-child(2) {
    top: 60%;
    left: 80%;
    animation-delay: 2s;
}

.cookie-floating:nth-child(3) {
    top: 80%;
    left: 30%;
    animation-delay: 4s;
}

@keyframes floatAround {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(20px, -15px) rotate(5deg);
    }

    50% {
        transform: translate(-15px, 10px) rotate(-5deg);
    }

    75% {
        transform: translate(10px, 20px) rotate(3deg);
    }
}

/* Story Timeline Mini */
.story-timeline-mini {
    max-width: 800px;
    margin: 0 auto 4rem;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.timeline-item:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.timeline-year {
    background: var(--primary);
    color: white;
    padding: 0.8rem 1.2rem;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1.1rem;
    min-width: 80px;
    text-align: center;
    flex-shrink: 0;
}

.timeline-content h3 {
    font-family: 'More Sugar', cursive;
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 0.8rem;
}

.timeline-content p {
    color: var(--text);
    line-height: 1.6;
    margin: 0;
}

/* Founders Spotlight */
.founders-spotlight {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.founder-card {
    text-align: center;
    padding: 2.5rem 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.founder-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.founder-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: white;
}

.founder-avatar.tunisia {
    background: linear-gradient(135deg, #e44d26, #f16529);
}

.founder-avatar.egypt {
    background: linear-gradient(135deg, #0077b6, #0096c7);
}

.founder-card h4 {
    font-family: 'More Sugar', cursive;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.founder-role {
    color: var(--text);
    font-weight: 600;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.founder-desc {
    color: var(--text);
    line-height: 1.6;
    margin: 0;
}

/* Vision Pane Styles */
.vision-hero {
    text-align: center;
    padding: 3rem 0;
}

.vision-hero h2 {
    font-family: 'More Sugar', cursive;
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.vision-subtitle {
    font-size: 1.2rem;
    color: var(--primary);
    opacity: 0.8;
}

.vision-grid {
    display: grid;
    /* grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); */
    gap: 2rem;
    margin-bottom: 4rem;
}

.vision-card {
    text-align: center;
    padding: 2.5rem 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.vision-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.vision-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.vision-card h3 {
    font-family: 'More Sugar', cursive;
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.vision-card p {
    color: var(--text);
    line-height: 1.6;
    margin: 0;
}

.vision-quote {
    text-align: center;
    padding: 3rem;
    background: var(--secondary);
    border-radius: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.vision-quote blockquote {
    font-size: 1.3rem;
    font-style: italic;
    color: var(--primary);
    line-height: 1.6;
    margin: 0;
    quotes: "“" "”" "‘" "’";
}

.vision-quote blockquote::before {
    content: open-quote;
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.3;
    margin-right: 0.5rem;
}

.vision-quote blockquote::after {
    content: close-quote;
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.3;
    margin-left: 0.5rem;
}

/* Mission Pane Styles */
.mission-hero {
    text-align: center;
    margin-bottom: 4rem;
    padding: 3rem 0;
}

.mission-hero h2 {
    font-family: 'More Sugar', cursive;
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.mission-subtitle {
    font-size: 1.2rem;
    color: var(--text);
    opacity: 0.8;
}

.mission-statement {
    text-align: center;
    margin-bottom: 4rem;
    padding: 3rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.mission-statement h3 {
    font-family: 'More Sugar', cursive;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.mission-text {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--text);
    margin: 0;
}

.promises-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.promise-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.promise-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.promise-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.8rem;
}

.promise-card h4 {
    font-family: 'More Sugar', cursive;
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.promise-card p {
    color: var(--text);
    line-height: 1.6;
    margin: 0;
}

.mission-values {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.mission-values h3 {
    font-family: 'More Sugar', cursive;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 2rem;
    text-align: center;
}

.values-list {
    display: grid;
    gap: 1.5rem;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--secondary);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.value-item:hover {
    transform: translateX(10px);
    background: var(--primary);
}

.value-item:hover .value-number,
.value-item:hover .value-content h5,
.value-item:hover .value-content p {
    color: white;
}

.value-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary);
    min-width: 60px;
    transition: all 0.3s ease;
}

.value-content h5 {
    font-family: 'More Sugar', cursive;
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.value-content p {
    color: var(--text);
    margin: 0;
    transition: all 0.3s ease;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .story-tabs-nav {
        flex-direction: column;
        align-items: center;
    }

    .story-tab-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .story-hero h1 {
        font-size: 2.2rem;
    }

    .timeline-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .founders-spotlight {
        grid-template-columns: 1fr;
    }

    .vision-grid,
    .promises-grid {
        grid-template-columns: 1fr;
    }

    .mission-statement,
    .mission-values {
        padding: 2rem 1.5rem;
    }

    .value-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .story-hero {
        padding: 2rem 1rem;
    }

    .story-hero h1 {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .timeline-item {
        padding: 1.5rem;
    }

    .founder-card {
        padding: 2rem 1.5rem;
    }

    .vision-hero h2,
    .mission-hero h2 {
        font-size: 2rem;
    }

    .mission-text {
        font-size: 1.1rem;
    }
}

/* Dropdown Styles */
.nav-item.dropdown {
    position: relative;
    cursor: pointer;

}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.nav-item.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    background: white;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-width: 200px;
}

.dropdown-menu li {
    margin: 0;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-link {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    color: #333;
    transition: background 0.2s;
}

.dropdown-link:hover {
    background: #f8f9fa;
}

.dropdown-link {
    display: block;
    padding: 0.8rem 1.5rem;
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.dropdown-link:hover {
    background: var(--secondary);
    color: var(--primary);
    border-left-color: var(--primary);
}

/* Mobile dropdown styles */
@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        box-shadow: none;
        background: transparent;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        padding-left: 2rem;
    }

    .nav-item.dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown-arrow {
        margin-left: auto;
    }
}

.story-tab-pane {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.story-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* margin-bottom: 60px; */
    padding: 40px 0;
    /* border-bottom: 1px solid #f0f0f0; */
}

.story-hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--primary);
    max-width: 600px;
}

.floating-cookies {
    position: relative;
    width: 200px;
    height: 200px;
}

.cookie-floating {
    position: absolute;
    font-size: 3rem;
    animation: float 3s ease-in-out infinite;
}

.cookie-floating:nth-child(1) {
    top: 20px;
    left: 30px;
    animation-delay: 0s;
}

.cookie-floating:nth-child(2) {
    top: 80px;
    left: 100px;
    animation-delay: 1s;
}

.cookie-floating:nth-child(3) {
    top: 40px;
    left: 150px;
    animation-delay: 2s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.story-content {
    margin-bottom: 60px;
}

.story-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.story-intro p {
    margin-bottom: 20px;
}

.cookie-philosophy {
    margin-bottom: 60px;
}

.cookie-philosophy h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary);
}

.cookie-styles {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.cookie-style-card {
    /* background: #fff; */
    border-radius: 10px;
    padding: 25px;
    width: 280px;
    text-align: center;
    /* box-shadow: 0 5px 15px rgba(0,0,0,0.1); */
    transition: transform 0.3s ease;
}

.cookie-style-card:hover {
    transform: translateY(-5px);
}


.cookie-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.cookie-style-card h3 {
    margin-bottom: 15px;
    color: var(--primary);
}

.team-concept {
    background: var(--accent);
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.team-concept h3 {
    margin-bottom: 15px;
    color: var(--primary);
}

.team-note {
    font-style: italic;
    margin-top: 15px;
}

.mystery-box-section {
    background: #F5F5F5;
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 50px;
}

.mystery-box-section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary);
}

.mystery-box-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.mystery-text {
    flex: 1;
}

.mystery-text ul {
    margin: 15px 0;
    padding-left: 20px;
}

.mystery-text li {
    margin-bottom: 10px;
}

.mystery-cta {
    font-weight: bold;
    font-size: 1.1rem;
    margin-top: 20px;
    color: var(--primary);
}

.mystery-visual {
    flex: 0 0 150px;
    text-align: center;
}

.mystery-box-icon {
    font-size: 6rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.founders-spotlight {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.founder-card {
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    width: 250px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.founder-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 2rem;
    color: white;
}

.founder-avatar.tunisia {
    background: #E1306C;
}

.founder-avatar.egypt {
    background: #C8102E;
}

.founder-card h4 {
    margin-bottom: 5px;
    color: var(--primary);
}

.founder-role {
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--primary);
}

.founder-desc {
    font-size: 0.9rem;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .story-hero {
        flex-direction: column;
        text-align: center;
    }

    .story-hero-content h1 {
        font-size: 2rem;
    }

    .cookie-styles {
        flex-direction: column;
        align-items: center;
    }

    .mystery-box-content {
        flex-direction: column;
    }

    .mystery-visual {
        order: -1;
    }
}


/* Mobile Menu Styles */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: none;
        border: none;
        font-size: 1.5rem;
        color: var(--primary);
        cursor: pointer;
        z-index: 1001;
        position: relative;
    }

    .main-nav {
        position: fixed;
        top: 15px;
        left: 0;
        /* width: 80%;
        max-width: 300px; */
        height: 100vh;
        background: white;
        z-index: 1000;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        /* padding: 80px 20px 20px; */
        overflow-y: auto;
    }

    .main-nav.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
    }

    .nav-item {
        width: 100%;
        margin: 0;
    }

    .nav-link {
        padding: 15px 20px;
        border-radius: 8px;
        margin: 5px 0;
        justify-content: flex-start;
        width: 100%;
        border: none;
    }

    .nav-link:hover {
        background: var(--secondary);
    }

    /* Dropdown styles for mobile */
    .nav-item.dropdown .dropdown-menu {
        position: static;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.1);
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        margin: 10px 0;
        padding-left: 20px;
    }

    .nav-item.dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown-toggle {
        cursor: pointer;
    }

    /* Overlay for mobile menu */
    .main-nav::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .main-nav.active::before {
        opacity: 1;
        visibility: visible;
        left: 100%;
    }
}

/* Ensure header layout is correct on mobile */
@media (max-width: 768px) {
    .header-container {
        padding: 0 15px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: relative;
    }

    .mobile-menu-btn {
        order: 1;
    }

    .logo-container {
        order: 2;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .header-actions {
        order: 3;
    }
}

/* Dropdown arrow styles */
.dropdown-arrow {
    transition: transform 0.3s ease;
    margin-left: 5px;
    font-size: 0.8em;
}

/* Dropdown menu styles */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 10px 0;
    min-width: 200px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

/* Mobile styles */
@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        box-shadow: none;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .dropdown-menu.active {
        display: block;
    }
}

/* === MODERN COOKIE CARDS === */
.cookies-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.cookie-card {
    background: white;
    border-radius: 1.5rem;
    /* rounded-3xl */
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.cookie-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(192, 57, 79, 0.15);
    border-color: rgba(192, 57, 79, 0.1);
}

/* Cookie Image - Takes 70% of space */
.cookie-image {
    height: 0;
    padding-bottom: 70%;
    /* This makes it 70% of card height */
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #FFD7DF, #FFEBEE);
}

/* .cookie-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: all 0.5s ease;
    padding: 1.5rem;
} */

.cookie-card:hover .cookie-image img {
    transform: scale(1.05);
}

/* Overlay on hover */
.cookie-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: linear-gradient(135deg, rgba(192, 57, 79, 0.9), rgba(255, 105, 180, 0.7)); */
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-card:hover .cookie-image::after {
    opacity: 1;
}

/* Add to Cart Button in Overlay */
.cookie-overlay-btn {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    backdrop-filter: blur(10px);
}

.cookie-card:hover .cookie-overlay-btn {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.cookie-overlay-btn:hover {
    background: var(--primary);
    color: white;
    transform: translate(-50%, -50%) scale(1.05);
}

/* Cookie Details - Takes 30% of space */
.cookie-details {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: white;
}

.cookie-details h3 {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
}

.cookie-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    text-align: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Tags */
/* .cookie-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 5;
    box-shadow: 0 4px 12px rgba(192, 57, 79, 0.3);
} */

/* Click Indicator */
.click-indicator {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Remove the old add-to-cart button */
.cookie-details .add-to-cart-btn {
    display: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cookies-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
        padding: 10px;
    }

    .cookie-details {
        padding: 1rem;
    }

    .cookie-details h3 {
        font-size: 1.1rem;
    }

    .cookie-price {
        font-size: 1.3rem;
    }

    .cookie-overlay-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}


/* === MOBILE BOTTOM NAVIGATION STYLES === */
@media (max-width: 768px) {

    /* Hide the hamburger menu button */
    .mobile-menu-btn {
        display: none !important;
    }

    /* Position the main navigation at the bottom */
    .modern-header {
        position: fixed;
        bottom: auto;
        /* top: auto; */
        width: 100%;
        background: var(--light);
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        /* padding: 0.5rem 0; */
        z-index: 1000;
    }

    .header-container {
        padding: 0 10px;
        justify-content: center;
    }

    /* Show the main nav and style it as bottom navigation */
    .main-nav {
        display: flex !important;
        /* position: static; */
        width: 100%;
        height: auto;
        box-shadow: none;
        background: transparent;
    }

    .nav-list {
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        width: 100%;
        padding: 0;
        margin: 0;
    }

    .nav-item {
        flex: 1;
        margin: 0;
        text-align: center;
    }

    /* Style for regular nav items */
    .nav-link {
        flex-direction: column;
        padding: 0.5rem;
        border-radius: 8px;
        margin: 0 2px;
        font-size: 0.7rem;
        border: none;
        justify-content: center;
        height: auto;
        display: flex;
        align-items: center;
    }

    .nav-link i {
        margin-right: 0;
        margin-bottom: 0.2rem;
        font-size: 1rem;
    }

    .nav-link span {
        font-size: 0.65rem;
    }

    /* Style for cart as a nav item */
    .header-actions {
        position: static;
        flex: 1;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .cart-icon {
        flex-direction: column;
        padding: 0.5rem;
        border-radius: 8px;
        margin: 0 2px;
        font-size: 0.7rem;
        width: auto;
        height: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        background: none;
        position: relative;
    }

    .cart-icon:hover {
        background: var(--secondary);
        transform: none;
    }

    .cart-icon i {
        font-size: 1rem;
        margin-right: 0;
        margin-bottom: 0.2rem;
        color: var(--primary);
    }

    .cart-count {
        position: absolute;
        top: 2px;
        right: 8px;
        background: var(--primary);
        color: var(--light);
        border-radius: 50%;
        width: 18px;
        height: 18px;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 0.7rem;
        font-weight: bold;
    }

    /* Add cart text label */
    .cart-icon::after {
        content: 'Cart';
        font-size: 0.65rem;
        color: var(--text);
        margin-top: 0.1rem;
    }

    /* Hide dropdown arrow in mobile bottom nav */
    .dropdown-arrow {
        display: none;
    }

    /* Style dropdown for mobile bottom nav */
    .dropdown-menu {
        position: fixed;
        bottom: 70px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: 300px;
        background: var(--light);
        border-radius: 12px;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
        padding: 1rem 0;
    }

    .dropdown-menu.active {
        display: block;
    }

    .dropdown-link {
        padding: 0.8rem 1.5rem;
        text-align: center;
        border-left: none;
        border-bottom: 1px solid var(--secondary);
    }

    .dropdown-link:last-child {
        border-bottom: none;
    }

    /* Ensure logo is visible in header */
    .logo-container {
        position: fixed;
        top: 10px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1001;
    }

    .logo-img {
        height: 35px;
    }

    /* Add padding to content to account for bottom nav */
    .tab-content-area {
        /* padding-bottom: 70px; */
    }

    /* Remove the top header actions since cart is now in bottom nav */
    .header-container .header-actions:not(.nav-item) {
        display: none;
    }
}

/* Additional small mobile adjustments */
@media (max-width: 480px) {
    .nav-link {
        padding: 0.4rem;
        font-size: 0.65rem;
    }

    .nav-link i {
        font-size: 0.9rem;
    }

    .nav-link span {
        font-size: 0.6rem;
    }

    .cart-icon {
        padding: 0.4rem;
        font-size: 0.65rem;
    }

    .cart-icon i {
        font-size: 0.9rem;
    }

    .cart-count {
        width: 16px;
        height: 16px;
        font-size: 0.6rem;
        top: 1px;
        right: 6px;
    }

    .dropdown-menu {
        bottom: 65px;
    }

    .tab-content-area {
        /* padding-bottom: 65px; */
    }
}

/* Landscape orientation adjustments */
@media (max-width: 768px) {
    .modern-header {
        /* padding: 0.3rem 0; */
    }

    .nav-link {
        padding: 0.3rem;
    }

    .cart-icon {
        padding: 0.3rem;
    }

    .tab-content-area {
        /* padding-bottom: 60px; */
        margin-top: 70px;

    }
}

.dropdown-menu {
    list-style: none;
    /* This removes the bullet points */
    padding: 0;
    /* Remove default padding */
    margin: 0;
    /* Remove default margin */
}

.dropdown-menu li {
    margin: 0;
    /* Ensure no margin on list items */
}

/* Mobile Header Size Fix */
@media (max-width: 768px) {
    .modern-header {
        /* padding: 0.3rem 0; */
        height: 74px;
    }

    .header-container {
        padding: 0 10px;
        height: 100%;
    }

    .logo-img {
        height: 35px;
        max-width: 120px;
    }

    .mobile-menu-btn {
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
    }

    .cart-icon {
        width: 36px;
        height: 71px;
    }

    .cart-icon i {
        font-size: 1.1rem;
    }

    .nav-link {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }

    .nav-link i {
        font-size: 1rem;
        margin-bottom: 0.1rem;
    }

    /* Mobile Dropdown Fix */
    .dropdown-menu {
        position: static;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.1);
        display: none;
        margin: 10px 0;
        padding-left: 20px;
        opacity: 1;
        visibility: visible;
        transform: none;
        width: 100%;
    }

    .dropdown-menu.active {
        display: block;
        animation: fadeIn 0.3s ease;
    }

    .dropdown-link {
        padding: 12px 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        display: block;
        color: var(--text);
        text-decoration: none;
        transition: all 0.3s ease;
    }

    .dropdown-link:hover {
        background: var(--secondary);
        color: var(--primary);
    }

    .dropdown-link:last-child {
        border-bottom: none;
    }

    .dropdown-arrow {
        transition: transform 0.3s ease;
        margin-left: auto;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Three-Dash Navigation */
@media (max-width: 768px) {

    /* Hide the regular navigation */
    .main-nav {
        display: none !important;
    }

    /* Style the three-dash hamburger button */
    .mobile-menu-btn {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 44px;
        height: 44px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 8px;
        gap: 4px;
    }

    .mobile-menu-btn span {
        display: block;
        width: 24px;
        height: 3px;
        background-color: var(--primary);
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    /* Hamburger animation when active */
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    /* Mobile navigation menu */
    .mobile-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--light);
        z-index: 1001;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
        transition: left 0.4s ease;
        /* padding: 80px 20px 20px; */
        overflow-y: auto;
    }

    .mobile-nav.active {
        left: 0;
    }

    /* Mobile navigation overlay */
    .mobile-nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
    }

    .mobile-nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Mobile navigation list */
    .mobile-nav-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .mobile-nav-item {
        margin-bottom: 0.5rem;
    }

    .mobile-nav-link {
        display: flex;
        align-items: center;
        padding: 1rem;
        color: var(--text);
        text-decoration: none;
        border-radius: 10px;
        transition: background 0.3s ease;
        font-weight: 500;
    }

    .mobile-nav-link:hover,
    .mobile-nav-link.active {
        background: var(--secondary);
        color: var(--primary);
    }

    .mobile-nav-link i {
        margin-right: 0.8rem;
        font-size: 1.2rem;
        width: 24px;
        text-align: center;
    }

    /* Mobile dropdown styles */
    .mobile-dropdown-menu {
        list-style: none;
        padding: 0;
        margin: 10px 0 0 20px;
        display: none;
    }

    .mobile-dropdown-menu.active {
        display: block;
    }

    .mobile-dropdown-link {
        display: block;
        padding: 0.8rem 1rem;
        color: var(--text);
        text-decoration: none;
        border-radius: 8px;
        transition: background 0.3s ease;
        font-size: 0.9rem;
    }

    .mobile-dropdown-link:hover {
        background: var(--secondary);
        color: var(--primary);
    }

    /* Header layout for mobile */
    .header-container {
        padding: 0 15px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .logo-container {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .header-actions {
        display: flex;
        align-items: center;
    }

    /* Ensure cart is visible */
    .cart-icon {
        display: flex !important;
    }
}

@media (max-width: 768px) {

    /* Ensure cart icon stays visible in mobile header */
    .header-actions {
        display: flex !important;
        align-items: center;
        order: 3;
        /* Right side */
    }

    .cart-icon {
        display: flex !important;
        position: relative;
        width: 44px;
        height: 44px;
        align-items: center;
        justify-content: center;
        color: var(--primary);
        font-size: 1.2rem;
    }

    .cart-count {
        position: absolute;
        top: 5px;
        right: 5px;
        background: var(--primary);
        color: white;
        border-radius: 50%;
        width: 18px;
        height: 18px;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 0.7rem;
        font-weight: bold;
    }

    /* Header layout for mobile */
    .header-container {
        padding: 0 15px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: relative;
    }

    .mobile-menu-btn {
        order: 1;
        /* Left side */
    }

    .logo-container {
        order: 2;
        /* Center */
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .header-actions {
        order: 3;
        /* Right side */
    }
}


/* Mobile Cookie Page Styles */
@media (max-width: 768px) {

    /* Hide popup overlay in mobile */
    .popup-overlay {
        display: none !important;
    }

    /* Cookie Detail Page Styles */
    .cookie-detail-page {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: var(--background);
        z-index: 1000;
        overflow-y: auto;
        padding: 1rem;
        display: block;
        z-index: 1000;
  overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        /* Always block */
        transform: translateY(100%);
        transition: transform 0.3s ease;
        visibility: hidden;
        opacity: 0;
    }

    .cookie-detail-page.active {
        transform: translateY(0);
        visibility: visible;
        opacity: 1;
    }

    .cookie-detail-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 0;
        border-bottom: 1px solid var(--secondary);
        /* margin-bottom: 1.5rem; */
    }

    .cookie-detail-content {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .cookie-detail-image {
        width: 100%;
        height: 300px;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        border-radius: 15px;
        /* background-color: var(--secondary); */
    }

    .cookie-detail-info h2 {
        color: var(--primary);
        margin-bottom: 1rem;
        font-size: 1.5rem;
    }

    .cookie-detail-info p {
        color: var(--text);
        margin-bottom: 1.5rem;
        line-height: 1.6;
    }

    .cookie-detail-style {
        margin: 1.5rem 0;
    }

    .cookie-detail-style-buttons {
        display: flex;
        gap: 1rem;
        margin-top: 0.5rem;
    }

    .cookie-detail-style-btn {
        flex: 1;
        padding: 1rem;
        border: 2px solid var(--primary);
        border-radius: 10px;
        background: transparent;
        color: var(--primary);
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .cookie-detail-style-btn.active {
        background: var(--primary);
        color: white;
    }

    .cookie-detail-details {
        background: var(--secondary);
        padding: 1.5rem;
        border-radius: 15px;
        /* margin: 1.5rem 0; */
    }

    .detail-item {
        display: flex;
        margin-bottom: 1rem;
        align-items: flex-start;
    }

    .detail-item:last-child {
        margin-bottom: 0;
    }

    .detail-icon {
        width: 24px;
        margin-right: 1rem;
        color: var(--primary);
        flex-shrink: 0;
    }

    .detail-text {
        flex: 1;
        color: var(--text);
    }

    .cookie-detail-actions {
    position: relative;
    bottom: -18px; /* added px unit */
    background: var(--background);
    padding: 1rem 0;
    border-top: 1px solid var(--secondary);
    display: flex;                /* added */
    flex-wrap: wrap;              /* added */
    align-items: center;          /* added */
    justify-content: space-between; /* added */
    gap: 1rem;                    /* added */
}

/* keep your existing style but remove the bottom margin */
.cookie-detail-price {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary);
    text-align: left; /* changed from center to align with quantity */
    margin-bottom: 0; /* prevent pushing button down */
}

/* quantity selector styling */
.cookie-detail-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.desktop-quantity-btn {
    border: 1px solid var(--secondary);
    background: var(--background);
    color: var(--primary);
    font-size: 1.1rem;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
}

.desktop-quantity-value {
    min-width: 25px;
    text-align: center;
    font-weight: 500;
    color: var(--primary);
}

.cookie-detail-add-btn {
    width: 100%; /* keep full width for 2nd line */
    padding: 1.2rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}


    @keyframes slideInUp {
        from {
            transform: translateY(100%);
        }

        to {
            transform: translateY(0);
        }
    }
}

/* Mobile Back Button Styles */
@media (max-width: 768px) {
    .back-button {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem 1rem;
        background: transparent;
        border: none;
        border-radius: 8px;
        color: var(--primary);
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        font-size: 0.9rem;
    }

    .back-button:hover {
        background: var(--primary);
        color: white;
        transform: translateX(-3px);
    }

    .back-button i {
        font-size: 1rem;
    }

    /* Cookie Detail Header Layout */
    .cookie-detail-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 0;
        border-bottom: 1px solid var(--secondary);
        /* margin-bottom: 1.5rem; */
        position: sticky;
        top: -16px;
        background: var(--background);
        z-index: 10;
    }

    .cookie-detail-header h3 {
        color: var(--primary);
        font-size: 1.2rem;
        margin: 0;
        text-align: center;
        flex: 1;
    }

    /* Ensure proper spacing */
    .cookie-detail-header .back-button {
        flex-shrink: 0;
        margin-right: auto;
    }
}

/* Mobile-specific styles */
@media (max-width: 768px) {
    .cookie-detail-page {
        /* Ensure it's properly styled for mobile */
        padding: 0.5rem;
    }

    .cookie-detail-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem;
        background: var(--background);
        position: sticky;
        top: -9px;
        z-index: 10;
        border-bottom: 1px solid var(--secondary);
    }



    .cookie-detail-header h3 {
        color: var(--primary);
        margin: 0;
        font-size: 1.2rem;
        flex: 1;
        text-align: center;
    }

    .cookie-detail-content {
        padding: 1rem;
    }
}

/* Desktop - hide completely */
@media (min-width: 769px) {
    .cookie-detail-page {
        display: none !important;
    }
}

/* Add these styles to your existing CSS */
.cookie-price-sale {
    display: flex;
    flex-direction: column;
    /* align-items: flex-start; */
    text-align: center;
    gap: 2px;
    position: relative;
}

.original-price {
    text-decoration: line-through;
    color: var(--gray);
    font-size: 1.1rem;
    opacity: 0.7;
    text-align: center;

}

.final-price {
    color: var(--primary);
    font-weight: bold;
    font-size: 1.5rem;
}

.sale-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--danger);
    color: white;
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
}

.sale-ribbon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 5;
    box-shadow: 0 4px 12px rgba(192, 57, 79, 0.3);
}

/* For popup sale prices */
#popupPrice .cookie-price-sale,
#detail-price .cookie-price-sale {
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

#popupPrice .sale-badge,
#detail-price .sale-badge {
    position: static;
    margin-left: 8px;
}


/* Add these styles for cart sale indicators */
.cart-sale-badge {
    position: absolute;
    top: 5px;
    left: 5px;
    background: var(--danger);
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.6rem;
    font-weight: bold;
    z-index: 2;
}

.cart-item.price-updated {
    background: rgba(255, 215, 223, 0.3);
    border-left: 3px solid var(--primary);
    animation: priceUpdatePulse 2s ease-in-out;
}

.price-change-indicator {
    margin-left: 8px;
    font-size: 0.8rem;
    animation: bounce 1s infinite;
}

.original-cart-price {
    text-decoration: line-through;
    color: var(--gray);
    font-size: 0.8rem;
    margin-left: 8px;
    opacity: 0.7;
}

.cart-item-price.price-updated {
    color: var(--danger);
    font-weight: bold;
}

.cart-savings {
    text-align: center;
    color: var(--success);
    font-weight: bold;
    margin-top: 8px;
    padding: 8px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 4px;
    font-size: 0.9rem;
}

@keyframes priceUpdatePulse {
    0% {
        background-color: rgba(255, 215, 223, 0.5);
    }

    50% {
        background-color: rgba(255, 215, 223, 0.8);
    }

    100% {
        background-color: rgba(255, 215, 223, 0.3);
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

@media (max-width: 768px) {
    .svg-container {
        flex-direction: row;
        /* Change from column to row */
        gap: 1rem;
        /* Reduce gap for mobile */
        justify-content: center;
        align-items: center;
        flex-wrap: nowrap;
        /* Prevent wrapping */
    }

    .team-container {
        flex: 1;
        max-width: 45%;
        /* Allow two containers to fit side by side */
        margin: 0;
    }

    .cookie-img {
        max-width: 120px;
        /* Adjust size for mobile */
    }

    .vs-battle {
        margin: 0 1rem;
        /* Reduce margin for mobile */
        order: 0;
        /* Keep VS in the middle */
    }

    .vs-circle {
        width: 60px;
        height: 60px;
    }

    .vs-text {
        font-size: 1.2rem;
    }

    .vs-subtitle {
        font-size: 0.8rem;
        margin-top: 0.5rem;
    }

    /* Adjust speech bubbles for mobile side-by-side layout */
    .speech-bubble {
        max-width: 140px;
        font-size: 0.7rem;
        padding: 0.6rem 0.8rem;
    }

    .crumble-bubble {
        top: -80px;
        left: -120px;
    }

    .chewy-bubble {
        top: -80px;
        right: -120px;
    }

    /* Adjust team labels */
    .team-label {
        font-size: 1rem;
        margin-top: -100px;
    }
}

#boxes-tab {
    background-color: var(--accent);
}

#cookies-tab {
    background-color: var(--accent);
}

.story-tabs-content {
    background-color: var(--accent);
}


.brand-signature {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    text-align: center;
    font-style: italic;
    color: var(--primary);
}

.brand-signature p {
    margin: 0;
    font-size: 0.9em;
}

.founder-avatar.tunisia i {
    color: gold;
    /* Gold crown for Tunisia */
}

.founder-avatar.egypt i {
    color: #ffd700;
    /* Different gold shade for Egypt */
}


/* === MOBILE HERO SECTION FIXES === */
@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 2rem 0;
        margin-bottom: 0;
    }

    .hero-content {
        padding: 1rem;
        text-align: center;
    }

    /* Brand Story Section */
    .brand-story {
        margin-bottom: 2rem;
        padding: 1rem;
    }

    .brand-story h1 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .story-text {
        font-size: 1rem;
        margin-bottom: 1rem;
        line-height: 1.5;
    }

    .brand-signature {
        font-size: 1rem;
        margin-top: 1.5rem;
    }

    /* SVG Container - Stack vertically */
    .svg-container {
        flex-direction: column;
        gap: 1.5rem;
        /* margin-top: 1rem; */
    }

    /* Team Containers */
    .team-container {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }

    /* Cookie Images */
    .cookie-img {
        max-width: 150px;
        height: auto;
    }

    /* VS Battle Section */
    .vs-battle {
        margin: 1rem 0;
        order: 0;
        /* Keep VS in middle */
    }

    .vs-circle {
        width: 70px;
        height: 70px;
    }

    .vs-text {
        font-size: 1.4rem;
    }

    .vs-subtitle {
        font-size: 0.9rem;
        margin-top: 0.5rem;
    }

    /* Speech Bubbles - Reposition for mobile */
    .speech-bubble {
        position: relative;
        max-width: 250px;
        margin: 1rem auto;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
    }

    .crumble-bubble {
        order: -1;
    }

    .chewy-bubble {
        order: 1;
    }

    /* Team Labels */
    .team-label {
        margin-top: 0.5rem;
        font-size: 1.1rem;
    }
}

/* === TABLET SPECIFIC FIXES (768px - 1024px) === */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-content {
        padding: 2rem;
    }

    .svg-container {
        gap: 2rem;
    }

    .cookie-img {
        max-width: 200px;
    }

    .team-container {
        max-width: 300px;
    }

    .speech-bubble {
        max-width: 220px;
        font-size: 0.85rem;
    }

    .crumble-bubble {
        left: -180px;
    }

    .chewy-bubble {
        right: -180px;
    }
}

/* === SMALL MOBILE FIXES (max-width: 480px) === */
@media (max-width: 480px) {
    .hero {
        padding: 1rem 0;
    }

    .brand-story h1 {
        font-size: 1.5rem;
    }

    .story-text {
        font-size: 0.9rem;
    }

    .cookie-img {
        max-width: 120px;
    }


    .vs-circle {
        width: 60px;
        height: 60px;
    }

    .vs-text {
        font-size: 1.2rem;
    }

    .speech-bubble {
        max-width: 200px;
        font-size: 0.75rem;
        padding: 0.8rem;
    }

    .team-label {
        font-size: 1rem;
    }
}

/* === LANDSCAPE ORIENTATION FIXES === */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 1rem 0;
    }

    .svg-container {
        flex-direction: row;
        gap: 1rem;
    }

    .cookie-img {
        max-width: 120px;
    }

    .team-container {
        max-width: 45%;
    }

    .speech-bubble {
        max-width: 180px;
        font-size: 0.7rem;
    }
}

/* === IPAD SPECIFIC FIXES === */
@media (min-width: 769px) and (max-width: 1024px) and (orientation: portrait) {
    .hero-content {
        padding: 3rem 2rem;
    }

    .brand-story h1 {
        font-size: 2.2rem;
    }

    .story-text {
        font-size: 1.1rem;
    }

    .cookie-img {
        max-width: 180px;
    }

    .svg-container {
        gap: 3rem;
    }
}

/* === ENSURE PROPER TOUCH TARGETS === */
@media (max-width: 768px) {
    .vs-battle {
        min-height: 44px;
        /* Minimum touch target size */
        min-width: 44px;
    }

    .cookie-img {
        cursor: default;
        /* Remove pointer cursor on touch devices */
    }
}

/* === IMPROVE PERFORMANCE ON MOBILE === */
@media (max-width: 768px) {
    .svg-container {
        transform: translateZ(0);
        /* Hardware acceleration */
        -webkit-transform: translateZ(0);
    }

    .cookie-img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* === FIX ANIMATIONS FOR MOBILE === */
@media (max-width: 768px) {
    @keyframes float {

        0%,
        100% {
            transform: translateY(0) scale(0.9);
        }

        50% {
            transform: translateY(-10px) scale(0.9);
        }
    }

    .team-container {
        animation: float 3s ease-in-out infinite;
    }

    .team-container:nth-child(1) {
        animation-delay: 0s;
    }

    .team-container:nth-child(2) {
        animation-delay: 1.5s;
    }
}

/* === ENSURE CONTENT DOESN'T OVERFLOW === */
@media (max-width: 768px) {
    .hero-content {
        overflow: hidden;
    }

    .svg-container {
        overflow: visible;
    }
}

/* === FIX SPEECH BUBBLE ARROWS FOR MOBILE === */
@media (max-width: 768px) {
    .speech-bubble .bubble-arrow {
        display: none;
        /* Hide arrows in mobile stacked layout */
    }

    .crumble-bubble .bubble-arrow,
    .chewy-bubble .bubble-arrow {
        display: none;
    }
}

/* === IMPROVE READABILITY === */
@media (max-width: 768px) {
    .bubble-text {
        font-size: 0.8rem;
        line-height: 1.3;
    }

    .bubble-text strong {
        font-size: 0.85rem;
    }
}


/* === SIMPLE FOOTER ENHANCEMENT === */
footer {
    background: #F98291;
    color: var(--light);
    /* padding: 3rem 0 1rem; */
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    /* margin-bottom: 2rem; */
}

.footer-column {
    padding-top: 0.5rem;
}

.footer-column h3 {
    font-size: 1.3rem;
    /* margin-bottom: 1.5rem; */
    color: var(--light);
    position: relative;
    padding-bottom: 0.7rem;
}


.footer-column p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    /* margin-bottom: 1.5rem; */
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.8rem;
    display: list-item;
    align-items: center;
}

.footer-column ul li i {
    margin-right: 0.8rem;
    color: var(--background);
    width: 16px;
    text-align: center;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--secondary);
}

/* Social Icons */
.social-icons {
    font-size: 1.5rem;
    display: flex;
    gap: 1rem;
    /* margin-top: 1.5rem; */
}

.social-icons a {
    color: var(--light);
    transition: all 0.3s ease;
    padding: 0.5rem;
}

.social-icons a:hover {
    color: var(--secondary);
    transform: translateY(-2px);
}

/* Powered By Section */
.powered-by {
    text-align: center;
    /* margin: 2rem 0 1.5rem; */
    padding: 0.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.developer-link {
    color: var(--light);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.developer-link:hover {
    color: var(--secondary);
}

.copyright {
    text-align: center;
    margin-top: 0;
    /* padding-top: 1.5rem; */
    color: rgba(255, 255, 255, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .footer-column h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-column ul li {
        justify-content: center;
    }

    .social-icons {
        justify-content: center;
    }
}


/* Enhanced Cookie Slider Styles */
.cookie-showcase {
    padding: 4rem 0;
    /* background: linear-gradient(135deg, #fdf6e3 0%, #faf0e6 100%); */
    position: relative;
    overflow: hidden;
}

.cookie-showcase::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(139, 90, 43, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.showcase-header {
    text-align: center;
    margin-bottom: 3rem;
}

/* .section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
} */

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), #d4a574);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--primary);
    font-weight: 500;
}

/* Slider Container */
.cookie-slider-container {
    position: relative;
    /* margin: 3rem 0; */
}

.slider-nav-bg {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 80%;
    background: linear-gradient(135deg, #fff 0%, #f9f5f0 100%);
    border-radius: 20px;
    box-shadow:
        0 10px 30px rgba(139, 90, 43, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transform: translateY(-50%);
    z-index: 1;
}

.cookie-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    padding-left: 10px;
    padding-right: 10px;
    gap: 20px;
    z-index: 2;
}

.cookie-slider-track {
    flex: 1;
    overflow: hidden;
    border-radius: 16px;
}

.cookie-slider {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    gap: 0;
}

/* Cookie Slide */
.cookie-slide {
    display: flex;
    min-width: 100%;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    height: 450px;
    margin: 0;
    position: relative;
    transition: all 0.3s ease;
}

.cookie-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), #d4a574);
}

/* .cookie-slide:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 15px 35px rgba(139, 90, 43, 0.2),
        0 5px 15px rgba(139, 90, 43, 0.1);
} */

.cookie-slide-image {
    flex: 0 0 45%;
    position: relative;
    overflow: hidden;
    background: var(--accent);
}

.cookie-slide-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.5s ease;
    top: 0px;
    bottom: 40px;
    position: absolute;
    background-color: var(--accent);
}



.cookie-slide-content {
    flex: 1;
    /* padding: 2.5rem; */
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fdd1d1;
    position: relative;
}

.cookie-slide-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.cookie-slide-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.cookie-slide-description {
    color: var(--primary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 1rem;
}

.cookie-slide-features {
    display: flex;
    gap: 15px;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.cookie-feature {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f8f4ee;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 500;
}

.cookie-feature i {
    color: #d4a574;
    font-size: 0.8rem;
}

.cookie-slide-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2e8b57;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cookie-slide-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.slider-add-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(139, 90, 43, 0.3);
    position: relative;
    overflow: hidden;
}

.slider-add-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    transition: left 0.5s ease;
}

.slider-add-btn:hover::before {
    left: 100%;
}

.slider-add-btn:hover {
    background: #A02A3F;
    transform: translateY(-2px);
    /* box-shadow: 0 6px 20px rgba(139, 90, 43, 0.4); */
}

.slider-detail-btn {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.slider-detail-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* Navigation Buttons */
.slider-nav-btn {
    background: white;
    color: var(--primary);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(139, 90, 43, 0.2);
    z-index: 3;
}

.slider-nav-btn:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(139, 90, 43, 0.3);
}

.slider-nav-btn:disabled {
    background: #f0e6d6;
    color: #c4b5a3;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 8px rgba(139, 90, 43, 0.1);
}

/* Slider Controls */
.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    /* margin-top: 2.5rem; */
    padding: 10px 0px;
}

.slider-dots {
    display: flex;
    gap: 12px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e0d5c5;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.slider-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(139, 90, 43, 0.1);
    transition: transform 0.3s ease;
}

.slider-dot:hover::before {
    transform: translate(-50%, -50%) scale(1);
}

.slider-dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

.slider-counter {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 600;
    background: rgba(139, 90, 43, 0.1);
    padding: 6px 12px;
    border-radius: 15px;
}

/* Showcase Footer */
.showcase-footer {
    text-align: center;
    /* margin-top: 3rem; */
}

.showcase-more-btn {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 14px 32px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
}

.showcase-more-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 90, 43, 0.3);
}

/* Price Styling */
.cookie-price-sale {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.original-price {
    text-decoration: line-through;
    color: #97544d;
    font-size: 1.2rem;
    font-weight: 500;
}


.sale-badge {
    background: #e74c3c;
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Loading State */
.slider-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    font-size: 1.2rem;
    color: var(--primary);
    flex-direction: column;
    gap: 15px;
}

.slider-loading::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 3px solid #f0e6d6;
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .cookie-slider-wrapper {
        gap: 15px;
    }

    .slider-nav-btn {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 768px) {
    .cookie-slide {
        flex-direction: column;
        min-width: 100%;
    }

    .cookie-slide-image {
        flex: 0 0 250px;
    }

    .cookie-slide-content {
        padding: 2rem;
    }

    .cookie-slide-title {
        font-size: 1.5rem;
    }

    .slider-controls {
        flex-direction: column;
        gap: 15px;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .cookie-showcase {
        padding: 3rem 0;
    }

    .cookie-slide-content {
        padding: 1.5rem;
    }

    .cookie-slide-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .slider-nav-btn {
        width: 40px;
        height: 40px;
    }
}

/* === DESKTOP COOKIE DETAIL PAGE === */
.desktop-cookie-detail {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background);
    z-index: 1000;
    overflow-y: auto;
    display: none;
    z-index: 1000;
  overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.desktop-cookie-detail.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.desktop-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.desktop-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 2px solid var(--secondary);
    margin-bottom: 2rem;
}

.desktop-detail-title {
    font-family: 'More Sugar', cursive;
    font-size: 2.5rem;
    color: var(--primary);
    margin: 0;
}

.desktop-close-btn {
    background: var(--primary);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.desktop-close-btn:hover {
    background: #A02A3F;
    transform: scale(1.1);
}

.desktop-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    flex: 1;
    align-items: start;
}

.desktop-detail-image-container {
    position: sticky;
    top: 2rem;
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.desktop-detail-image {
    width: 100%;
    height: 400px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 15px;
    /* margin-bottom: 1.5rem; */
    background-color: transparent;
}

.desktop-image-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.desktop-detail-info {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.desktop-detail-description {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text);
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--secondary);
}

.desktop-style-selector {
    margin-bottom: 2rem;
}

.desktop-style-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
    display: block;
}

.desktop-style-buttons {
    display: flex;
    gap: 1rem;
}

.desktop-style-btn {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid var(--primary);
    border-radius: 12px;
    background: transparent;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.desktop-style-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(192, 57, 79, 0.3);
}

.desktop-style-btn:hover:not(.active) {
    background: rgba(192, 57, 79, 0.1);
}

.desktop-detail-specs {
    background: var(--accent);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.spec-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.spec-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.spec-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 1rem;
    flex-shrink: 0;
}

.spec-content h4 {
    color: var(--primary);
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.spec-content p {
    color: var(--text);
    margin: 0;
    line-height: 1.5;
}

.desktop-detail-actions {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    bottom: 2rem;
}

.desktop-price-section {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--secondary);
}

.desktop-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.desktop-price-sale {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.desktop-original-price {
    text-decoration: line-through;
    color: var(--text);
    opacity: 0.7;
    font-size: 1.5rem;
}

.desktop-final-price {
    color: var(--primary);
    font-weight: 800;
    font-size: 2.5rem;
}

.desktop-sale-badge {
    background: #e74c3c;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
}

.desktop-action-buttons {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1rem;
}

.desktop-quantity-selector {
    display: flex;
    align-items: center;
    background: var(--accent);
    border-radius: 12px;
    padding: 0.5rem;
}

.desktop-quantity-btn {
    width: 45px;
    height: 45px;
    border: none;
    background: var(--primary);
    color: white;
    border-radius: 10px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.desktop-quantity-btn:hover {
    background: #A02A3F;
    transform: scale(1.05);
}

.desktop-quantity-value {
    width: 60px;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
}

.desktop-add-to-cart {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    box-shadow: 0 4px 15px rgba(192, 57, 79, 0.3);
}

.desktop-add-to-cart:hover {
    background: #A02A3F;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(192, 57, 79, 0.4);
}

/* Animation for desktop detail */
@keyframes desktopDetailSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.desktop-cookie-detail.active .desktop-detail-container {
    animation: desktopDetailSlideIn 0.6s ease-out;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .desktop-detail-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .desktop-detail-image-container {
        position: static;
    }

    .desktop-detail-actions {
        position: static;
    }
}

@media (max-width: 768px) {
    .desktop-cookie-detail {
        display: none !important;
    }
}

/* Ensure mobile detail page doesn't show on desktop */
@media (min-width: 769px) {
    .cookie-detail-page {
        display: none !important;
    }
}

/* Magnifying glass cursor for images */
/* .cookie-image img,
.cookie-slide-image img,
.popup-image img,
.desktop-detail-image,
.showcase-cookie-image img,
.showcase-box-image img {
    cursor: zoom-in;
} */

/* Optional: Add a subtle hover effect to indicate zoom capability */
.cookie-image:hover img,
.cookie-slide-image:hover img,
.popup-image:hover img,
.desktop-detail-image:hover,
.showcase-cookie-image:hover img,
.showcase-box-image:hover img {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* For the cookie cards that already have transform on hover, adjust the selector */
.cookie-card:hover .cookie-image img {
    transform: scale(1.05);
    /* Keep the existing transform but ensure cursor works */
    /* cursor: zoom-in; */
}

/* If you want to add actual zoom functionality, you can add this: */
.cookie-image {
    position: relative;
    overflow: hidden;
}

/* .cookie-image.zoom-enabled {
    cursor: zoom-in;
} */

.cookie-image.zoom-enabled:hover img {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Zoom functionality styles */

.cookie-slide-image img {
    transition: transform 0.3s ease;
}

.cookie-slide-image:hover img {
    transform: scale(1.1);
    /* Slightly stronger zoom on the image */
}


.cookie-image img.zoomed,
.cookie-slide-image img.zoomed {
    transform: scale(2);
    cursor: zoom-out;
    z-index: 1000;
    position: relative;
}

/* Container to prevent layout break during zoom */
.cookie-image,
.cookie-slide-image {
    position: relative;
    overflow: hidden;
}

/* === ALTERNATING COOKIE LAYOUT STYLES === */
.cookies-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.cookie-alternating-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    /* box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1); */
    transition: all 0.3s ease;
    cursor: pointer;
}

/* .cookie-alternating-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
} */

.cookie-alternating-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 400px;
}

.cookie-alternating-image {
    position: relative;
    overflow: hidden;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.cookie-alternating-image img {
    /* max-width: 100%;
    max-height: 300px; */
    object-fit: contain;
    transition: transform 0.5s ease;
}

.cookie-alternating-image:hover img {
    transform: scale(1.05);
}

.cookie-alternating-content {
    /* padding: 3rem; */
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fdd1d1;
}

.cookie-alternating-content h3 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
    font-family: 'More Sugar', cursive;
}

.cookie-description {
    color: var(--text);
    font-size: 1.1rem;
    line-height: 1.6;
    /* margin-bottom: 2rem; */
}

.cookie-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.cookie-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    color: var(--text);
}

.cookie-feature i {
    color: var(--primary);
    width: 20px;
    text-align: center;
}

.cookie-alternating-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.cookie-overlay-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie-overlay-btn:hover {
    background: #A02A3F;
    transform: translateY(-2px);
}

/* Sale ribbon for alternating layout */
.cookie-alternating-image .sale-ribbon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 5;
    box-shadow: 0 4px 12px rgba(192, 57, 79, 0.3);
}

/* Tags for alternating layout */
.cookie-alternating-image .cookie-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary);
    color: var(--light);
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.8rem;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cookies-grid {
        padding: 1rem;
        gap: 2rem;
    }

    .cookie-alternating-container {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .cookie-alternating-content {
        padding-right: 2rem;
        padding-left: 2rem;
        order: 2;
    }

    .cookie-alternating-image {
        order: 1;
        padding: 1.5rem;
        min-height: 250px;
    }

    .cookie-alternating-content h3 {
        font-size: 1.5rem;
    }

    .cookie-alternating-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    /* Force all mobile layouts to be image on top, content below */
    .cookie-alternating-card.image-left .cookie-alternating-container,
    .cookie-alternating-card.image-right .cookie-alternating-container {
        grid-template-columns: 1fr;
    }

    .cookie-alternating-card.image-left .cookie-alternating-image,
    .cookie-alternating-card.image-right .cookie-alternating-image {
        order: 1;
    }

    .cookie-alternating-card.image-left .cookie-alternating-content,
    .cookie-alternating-card.image-right .cookie-alternating-content {
        order: 2;
    }
}

/* Tablet Responsive */
@media (min-width: 769px) and (max-width: 1024px) {
    .cookie-alternating-container {
        min-height: 350px;
    }

    .cookie-alternating-content {
        padding: 2rem;
    }

    .cookie-alternating-content h3 {
        font-size: 1.7rem;
    }
}

/* Animation for cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cookie-alternating-card {
    animation: fadeInUp 0.6s ease-out;
}

.cookie-alternating-card:nth-child(odd) {
    animation-delay: 0.1s;
}

.cookie-alternating-card:nth-child(even) {
    animation-delay: 0.2s;
}

/* Choose Style Button */
.choose-style-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(192, 57, 79, 0.3);
    position: relative;
    overflow: hidden;
}

.choose-style-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.choose-style-btn:hover::before {
    left: 100%;
}

.choose-style-btn:hover {
    background: linear-gradient(135deg, #A02A3F, var(--primary));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(192, 57, 79, 0.4);
}

.choose-style-btn:active {
    transform: translateY(0);
}

/* Mobile responsive for button */
@media (max-width: 768px) {
    .choose-style-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }
}

/* Alternative Build Your Own Box Section with Overlay */
.build-box-section {
    padding-bottom: 2rem;
    position: relative;
    background-color: var(--accent);
    overflow: hidden;
}

.build-box-hero {
    position: relative;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.build-box-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.build-box-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(4px) brightness(0.8);
    transition: filter 0.3s ease;
}

.build-box-hero:hover .build-box-background img {
    filter: blur(2px) brightness(0.9);
}

.build-box-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    z-index: 2;
}

.build-box-overlay h2 {
    font-family: 'More Sugar', cursive;
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.build-box-overlay p {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    max-width: 600px;
}

.build-box-overlay .build-box-btn {
    background: rgba(255, 255, 255, 0.9);
    position: relative;
    bottom: 1rem;
    color: var(--primary);
    border: 2px solid white;
}

.build-box-overlay .build-box-btn:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-2px);
}

/* Mobile Responsive for Overlay Version */
@media (max-width: 768px) {
    .build-box-hero {
        height: 300px;
    }

    .build-box-overlay h2 {
        font-size: 2.5rem;
    }

    .build-box-overlay p {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .build-box-hero {
        height: 250px;
    }

    .build-box-overlay h2 {
        font-size: 2rem;
    }

    .build-box-overlay p {
        font-size: 1rem;
    }
}


.box-selection-dropdown label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    font-size: 1.1rem;
    white-space: nowrap;
    /* Prevent label from wrapping */
}

.box-select {
    width: 100%;
    max-width: 400px;
    padding: 0.8rem 1.2rem;
    border: 2px solid var(--primary);
    border-radius: 25px;
    background: white;
    color: var(--text);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23c80606' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
}

.box-select:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(200, 6, 6, 0.1);
}

.box-select:hover {
    border-color: var(--primary-light);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .box-selection-dropdown {
        margin: 1rem auto 1.5rem;
        /* Center with auto margins */
        padding: 0.8rem 1.5rem;
        width: auto;
        display: inline-block;
    }

    .box-selection-dropdown label {
        font-size: 1rem;
        margin-bottom: 0.6rem;
    }

    .box-select {
        padding: 0.7rem 1rem;
        font-size: 0.95rem;
        max-width: 300px;
        /* Slightly smaller on mobile */

    }
}

/* For very small screens */
@media (max-width: 480px) {
    .box-selection-dropdown {
        padding: 0.8rem 1rem;
        max-width: 95%;
    }

    .box-select {
        max-width: 280px;
    }
}

/* Hide the original box options completely */
.box-options {
    display: none !important;
}

/* Cookie Selection Interface Styles */
.cookie-selection-interface {
    /* background: white; */
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
}

.selection-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--secondary);
}

.selection-header h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.selection-info {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--secondary);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    display: inline-block;
}

.cookies-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.cookie-selection-card {
    background: var(--accent);
    border-radius: 15px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    /* gap: 1rem; */
    cursor: default;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}



.cookie-selection-card.selected {
    border-color: var(--primary);
    background: var(--secondary);
}

.cookie-selection-image {
    width: 80%;
    /* height: 80px; */
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.cookie-selection-image img {
    width: 100%;
    /* height: 110%; */
    object-fit: contain;
}

.cookie-selection-details {
    flex: 1;
}

.cookie-selection-details h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.cookie-selection-details p {
    /* color: var(--text); */
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.cookie-selection-price {
    font-weight: 600;
    color: var(--primary);
}

.cookie-selection-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border: 1px solid var(--primary);
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quantity-btn:hover {
    background: var(--primary);
    color: white;
}

.quantity-value {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
}

.selection-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 2px solid var(--secondary);
}

.selection-summary {
    flex: 1;
    color: var(--text);
}

.add-to-cart-box:disabled {
    opacity: 0.5;
    cursor: default;
}

/* Center cookie name and description in boxes tab */
.cookie-selection-card {
    text-align: center;
    flex-direction: column;
    padding: 1.5rem;
}

.cookie-selection-details {
    width: 100%;
    text-align: center;
}

.cookie-selection-details h4 {
    text-align: center;
    margin-bottom: 0.8rem;
}

.cookie-selection-details p {
    text-align: center;
    margin-bottom: 1rem;
}

.cookie-selection-price {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.cookie-selection-quantity {
    justify-content: center;
    margin-top: 1rem;
}

/* Optional: Adjust the image container for better centering */
.cookie-selection-image {
    margin: 0 auto 1rem auto;
}


.cookie-selection-image:hover img {
    transform: scale(1.1);
    /* Slightly stronger zoom on the image */
}

.cookie-selection-image img {
    transition: transform 0.3s ease;
}

.cookie-style-type {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* Update Box Selection Dropdown Styles */
.box-selection-dropdown {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem 2rem;
    background: var(--secondary);
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: fit-content;
    /* Wrap content width */
    /* margin-left: auto; */
    margin-right: auto;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.box-selection-dropdown label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    font-size: 1.1rem;
    white-space: nowrap;
    text-align: center;
    width: 100%;
}

.box-select {
    width: 100%;
    max-width: 400px;
    padding: 0.8rem 1.2rem;
    border: 2px solid var(--primary);
    border-radius: 25px;
    background: white;
    color: var(--text);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23c80606' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
}

.box-select:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(200, 6, 6, 0.1);
}

.box-select:hover {
    border-color: var(--primary-light);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .box-selection-dropdown {
        margin: 1rem auto 1.5rem;
        padding: 0.8rem 1.5rem;
        width: fit-content;
        max-width: 90vw;
        /* Prevent it from touching screen edges */
    }

    .box-selection-dropdown label {
        font-size: 1rem;
        margin-bottom: 0.6rem;
    }

    .box-select {
        padding: 0.7rem 1rem;
        font-size: 0.95rem;
        max-width: 300px;
    }
}

/* For very small screens */
@media (max-width: 480px) {
    .box-selection-dropdown {
        padding: 0.8rem 1rem;
        max-width: 95vw;
    }

    .box-select {
        max-width: 280px;
    }
}

.selected-cookie-image {
    position: relative;
    width: 100px;
    /* Increased from 80px */
    height: 100px;
    /* Increased from 80px */
    margin-bottom: 0.5rem;
}

.selected-cookie-quantity {
    position: absolute;
    top: -10px;
    /* Adjusted for larger image */
    right: -10px;
    /* Adjusted for larger image */
    background: var(--primary);
    color: white;
    width: 32px;
    /* Increased from 28px */
    height: 32px;
    /* Increased from 28px */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    /* Increased from 0.9rem */
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.selected-cookie-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 3%;
    /* padding: 1.2rem; Increased from 1rem */
    background: var(--accent);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.selected-cookies-grid {
    display: ruby;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    /* Increased from 140px */
    gap: 1rem;
    margin-top: 1rem;
}

.selected-cookie-name {
    font-weight: 600;
    color: var(--primary);
    font-size: 1rem;
    /* Increased from 0.9rem */
    margin-bottom: 0.2rem;
    line-height: 1.2;
}

.selected-cookie-style {
    font-size: 0.9rem;
    /* Increased from 0.8rem */
    color: var(--text);
    opacity: 0.8;
}

@media (max-width: 768px) {
    .selected-cookies-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        /* Increased from 120px */
        gap: 0.8rem;
    }

    .selected-cookie-image {
        width: 85px;
        /* Increased from 70px */
        height: 85px;
        /* Increased from 70px */
    }
}

/* Showcase Tabs Styles */
.showcase-tabs-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    /* border-bottom: 2px solid var(--secondary); */
    padding-bottom: 1rem;
}

.showcase-tab-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: transparent;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'More Sugar', cursive;
    font-size: 1.1rem;
}

.showcase-tab-btn:hover {
    background: rgba(200, 6, 6, 0.1);
    transform: translateY(-2px);
}

.showcase-tab-btn.active {
    background: var(--primary);
    color: var(--light);
    box-shadow: 0 4px 12px rgba(200, 6, 6, 0.3);
}

.showcase-tab-btn i {
    font-size: 1.2rem;
}

.showcase-tabs-content {
    position: relative;
    /* min-height: 500px; */
}

.showcase-tab-pane {
    display: none;
    animation: fadeIn 0.5s ease;
}

.showcase-tab-pane.active {
    display: block;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Boxes Tab Styles */
#boxes-tab-pane .build-box-hero {
    position: relative;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

#boxes-tab-pane .build-box-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#boxes-tab-pane .build-box-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(4px) brightness(0.8);
    transition: filter 0.3s ease;
}

#boxes-tab-pane .build-box-hero:hover .build-box-background img {
    filter: blur(2px) brightness(0.9);
}

#boxes-tab-pane .build-box-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    z-index: 2;
}

#boxes-tab-pane .build-box-overlay h2 {
    font-family: 'More Sugar', cursive;
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

#boxes-tab-pane .build-box-overlay p {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    max-width: 600px;
}

#boxes-tab-pane .build-box-btn {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary);
    border: 2px solid white;
    font-size: 1.2rem;
    padding: 1rem 2rem;
}

#boxes-tab-pane .build-box-btn:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-2px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .showcase-tabs-nav {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .showcase-tab-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    #boxes-tab-pane .build-box-hero {
        height: 300px;
    }

    #boxes-tab-pane .build-box-overlay h2 {
        font-size: 2.2rem;
    }

    #boxes-tab-pane .build-box-overlay p {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    #boxes-tab-pane .build-box-hero {
        height: 250px;
    }

    #boxes-tab-pane .build-box-overlay h2 {
        font-size: 1.8rem;
    }

    #boxes-tab-pane .build-box-overlay p {
        font-size: 1rem;
    }
}


/* === SVG CONTAINER RESPONSIVE STYLES === */

.svg-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    /* margin-top: 2rem; */
    position: relative;
}

/* Default desktop styles (already in your CSS) */
.team-container {
    position: relative;
    text-align: center;
    animation: float 3s ease-in-out infinite;
    flex: 1;
    max-width: 350px;
}

.speech-bubble {
    position: absolute;
    background: white;
    border: 3px solid var(--primary);
    border-radius: 20px;
    padding: 1rem 1.5rem;
    max-width: 280px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(20px);
    animation: bubbleAppear 8s infinite;
    z-index: 10;
    font-family: 'More Sugar', cursive;
}

/* Crumble bubble on LEFT side */
.crumble-bubble {
    top: 50%;
    left: -220px;
    transform: translateY(-50%);
    animation-delay: 2s;
}

/* Chewy bubble on RIGHT side */
.chewy-bubble {
    top: 50%;
    right: -220px;
    transform: translateY(-50%);
    animation-delay: 6s;
}

/* === TABLET STYLES (768px - 1024px) === */
@media (max-width: 1024px) and (min-width: 769px) {
    .svg-container {
        gap: 1.5rem;
        /* top: 100px; */
    }

    .team-container {
        max-width: 300px;
    }

    .cookie-img {
        max-width: 280px;
    }

    .speech-bubble {
        max-width: 240px;
        font-size: 0.9rem;
        padding: 0.9rem 1.2rem;
    }

    .crumble-bubble {
        left: -180px;
    }

    .chewy-bubble {
        right: -180px;
    }

    .vs-circle {
        width: 80px;
        height: 80px;
    }

    .vs-text {
        font-size: 1.6rem;
    }
}

/* === SMALL TABLET STYLES (768px and below) === */
@media (max-width: 768px) {
    .svg-container {
        flex-direction: row;
        /* Keep side-by-side */
        gap: 1rem;
        /* margin-top: 1.5rem; */
    }

    .team-container {
        max-width: 45%;
        /* Allow two containers to fit side by side */
        margin: 0;
    }

    .cookie-img {
        max-width: 200px;
        height: auto;
    }

    .vs-battle {
        margin: 0 0.5rem;
    }

    .vs-circle {
        width: 60px;
        height: 60px;
    }

    .vs-text {
        font-size: 1.3rem;
    }

    .vs-subtitle {
        font-size: 0.8rem;
        margin-top: 0.3rem;
    }

    /* Move speech bubbles ABOVE cookies on mobile */
    .speech-bubble {
        position: relative;
        max-width: 220px;
        font-size: 0.8rem;
        padding: 0.8rem 1rem;
        margin: 0 auto 1rem;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
    }

    .crumble-bubble {
        order: -1;
        /* Bubble first, then cookie */
        margin-bottom: 1rem;
    }

    .chewy-bubble {
        order: -1;
        /* Bubble first, then cookie */
        margin-bottom: 1rem;
    }

    /* Adjust team container for bubble-above layout */
    .team-container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .team-label {
        margin-top: 0.5rem;
        font-size: 1rem;
    }
}

/* === SMALL MOBILE STYLES (480px and below) === */
@media (max-width: 480px) {
    .svg-container {
        gap: 0.8rem;
    }

    .team-container {
        max-width: 45%;
    }

    .cookie-img {
        max-width: 140px;
    }

    .speech-bubble {
        max-width: 180px;
        font-size: 0.75rem;
        padding: 0.7rem 0.9rem;
        margin-bottom: 0.8rem;
    }

    .vs-circle {
        width: 50px;
        height: 50px;
    }

    .vs-text {
        font-size: 1.1rem;
    }

    .vs-subtitle {
        font-size: 0.7rem;
    }

    .team-label {
        font-size: 0.9rem;
        margin-top: 0.3rem;
    }
}

/* === VERY SMALL SCREENS (360px and below) === */
@media (max-width: 360px) {
    .svg-container {
        gap: 0.5rem;
    }

    .cookie-img {
        max-width: 120px;
    }

    .speech-bubble {
        max-width: 150px;
        font-size: 0.7rem;
        padding: 0.6rem 0.8rem;
    }

    .vs-circle {
        width: 45px;
        height: 45px;
    }

    .vs-text {
        font-size: 1rem;
    }
}

/* === LANDSCAPE ORIENTATION FOR MOBILE === */
@media (max-width: 768px) and (orientation: landscape) {
    .svg-container {
        gap: 1rem;
    }

    .cookie-img {
        max-width: 160px;
    }

    .speech-bubble {
        max-width: 200px;
        margin-bottom: 0.5rem;
    }

    .team-container {
        max-width: 40%;
    }
}

/* === IPAD PRO AND LARGE TABLETS (1024px - 1366px) === */
@media (min-width: 1024px) and (max-width: 1366px) {
    .svg-container {
        gap: 2.5rem;
    }

    .team-container {
        max-width: 320px;
    }

    .cookie-img {
        max-width: 300px;
    }

    .speech-bubble {
        max-width: 260px;
    }

    .crumble-bubble {
        left: -200px;
    }

    .chewy-bubble {
        right: -200px;
    }
}

/* === BUBBLE ARROW ADJUSTMENTS FOR MOBILE === */
@media (max-width: 768px) {

    /* Hide side arrows when bubbles are above */
    .speech-bubble .bubble-arrow {
        display: none;
    }

    /* Optional: Add top/bottom arrows for above layout */
    .crumble-bubble .bubble-arrow {
        display: block;
        position: relative;
        top: 23px;
        left: 50%;
        transform: translateX(-50%) rotate(45deg);
        width: 20px;
        height: 20px;
        background: white;
        border-right: 3px solid var(--primary);
        border-bottom: 3px solid var(--primary);
    }

    .chewy-bubble .bubble-arrow {
        display: block;
        position: relative;
        top: 23px;
        left: 50%;
        transform: translateX(-50%) rotate(45deg);
        width: 20px;
        height: 20px;
        background: white;
        border-right: 3px solid var(--primary);
        border-bottom: 3px solid var(--primary);
    }
}

/* === ENSURE PROPER ANIMATIONS ON MOBILE === */
@media (max-width: 768px) {
    @keyframes bubbleAppear {

        0%,
        100% {
            opacity: 0;
            transform: translateY(10px);
        }

        10%,
        40% {
            opacity: 1;
            transform: translateY(0);
        }

        50% {
            opacity: 1;
            transform: translateY(0);
        }

        60% {
            opacity: 0;
            transform: translateY(-10px);
        }
    }
}

/* === TOUCH FRIENDLY SIZES === */
@media (max-width: 768px) {
    .vs-battle {
        min-height: 44px;
        /* Minimum touch target */
        min-width: 44px;
    }

    .cookie-img {
        cursor: default;
    }
}

/* === PERFORMANCE OPTIMIZATIONS === */
@media (max-width: 768px) {
    .svg-container {
        transform: translateZ(0);
        /* Hardware acceleration */
        -webkit-transform: translateZ(0);
    }
}

/* === COOKIE SHOWCASE SLIDER RESPONSIVE STYLES === */

/* Default desktop styles */
.cookie-showcase {
    padding: 4rem 0;
}

.cookie-slider-container {
    position: relative;
    margin: 3rem 0;
}

.cookie-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 2rem;
    gap: 20px;
}

.cookie-slider-track {
    flex: 1;
    overflow: hidden;
    border-radius: 16px;
}

.cookie-slide {
    display: flex;
    min-width: 100%;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    height: 450px;
}

/* === TABLET STYLES (768px - 1024px) === */
@media (max-width: 1024px) and (min-width: 769px) {
    .cookie-showcase {
        padding: 3rem 0;
        top: 3rem;
    }

    .cookie-slide {
        height: 400px;
    }

    .cookie-slider-wrapper {
        padding: 0 1.5rem;
        gap: 15px;
    }

    .slider-nav-btn {
        width: 45px;
        height: 45px;
    }

    .cookie-slide-title {
        font-size: 1.5rem;
    }

    .cookie-slide-description {
        font-size: 0.95rem;
    }
}

/* === MOBILE STYLES (768px and below) === */
@media (max-width: 768px) {
    .cookie-showcase {
        padding: 2.5rem 0;
    }

    .cookie-slider-wrapper {
        padding: 0 1rem;
        gap: 10px;
    }

    .cookie-slide {
        flex-direction: column;
        height: auto;
        min-height: 500px;
    }

    .cookie-slide-image {
        flex: 0 0 200px;
        min-height: 200px;
    }

    .cookie-slide-content {
        padding: 1.5rem;
    }

    .cookie-slide-title {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }

    .cookie-slide-description {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .slider-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    .cookie-slide-features {
        gap: 8px;
        margin-bottom: 1rem;
    }

    .cookie-feature {
        padding: 5px 10px;
        font-size: 0.8rem;
    }

    .cookie-slide-price {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }

    .slider-add-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* === SMALL MOBILE STYLES (480px and below) === */
@media (max-width: 480px) {
    .cookie-showcase {
        padding: 2rem 0;
    }

    .cookie-slider-wrapper {
        padding: 0 0.5rem;
        gap: 8px;
    }

    .cookie-slide {
        min-height: 450px;
    }

    .cookie-slide-image {
        flex: 0 0 180px;
        min-height: 180px;
    }

    .cookie-slide-content {
        padding: 1.2rem;
    }

    .cookie-slide-title {
        font-size: 1.2rem;
    }

    .cookie-slide-description {
        font-size: 0.85rem;
    }

    .slider-nav-btn {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }

    .cookie-slide-actions {
        flex-direction: column;
        gap: 10px;
    }

    .slider-add-btn {
        width: 100%;
        justify-content: center;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }
}

/* === LANDSCAPE ORIENTATION FOR MOBILE === */
@media (max-width: 768px) and (orientation: landscape) {
    .cookie-slide {
        flex-direction: row;
        min-height: 300px;
    }

    .cookie-slide-image {
        flex: 0 0 40%;
        min-height: 100%;
    }

    .cookie-slide-content {
        padding: 1rem;
    }
}

/* === SLIDER CONTROLS RESPONSIVE === */
@media (max-width: 768px) {
    .slider-controls {
        margin-top: 1.5rem;
    }

    .slider-dots {
        gap: 8px;
    }

    .slider-dot {
        width: 10px;
        height: 10px;
    }

    .showcase-more-btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
}

/* === ENSURE SLIDER FUNCTIONALITY ON TOUCH DEVICES === */
@media (max-width: 768px) {
    .cookie-slider-track {
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }
}

/* === HIDE NAV BUTTONS ON VERY SMALL SCREENS IF NEEDED === */
@media (max-width: 360px) {
    .slider-nav-btn {
        width: 32px;
        height: 32px;
    }

    .cookie-slider-wrapper {
        padding: 0 0.25rem;
    }
}

/* === BOXES TAB RESPONSIVE STYLES === */

/* Default desktop styles */
.box-selection-dropdown {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem 2rem;
    background: var(--secondary);
    border-radius: 15px;
    width: fit-content;
    /* margin-left: auto; */
    margin-right: auto;
}

.cookies-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.cookie-selection-card {
    background: var(--accent);
    border-radius: 15px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* === TABLET STYLES (768px - 1024px) === */
@media (max-width: 1024px) and (min-width: 769px) {
    .cookies-selection-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.2rem;
    }

    .cookie-selection-card {
        padding: 1.2rem;
    }

    .box-selection-dropdown {
        padding: 0.9rem 1.5rem;
    }

    .box-select {
        max-width: 350px;
    }
}

/* === MOBILE STYLES (768px and below) === */
@media (max-width: 768px) {
    .boxes {
        padding: 1rem 0;
    }

    .box-selection-dropdown {
        width: 90%;
        max-width: none;
        padding: 0.8rem 1rem;
        margin: 1rem 0px;
    }

    .box-selection-dropdown label {
        font-size: 1rem;
        margin-bottom: 0.6rem;
    }

    .box-select {
        width: 100%;
        max-width: none;
        padding: 0.7rem 1rem;
    }

    .cookies-selection-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
        margin: 1.5rem 0;
        padding: 0 0.5rem;
    }

    .cookie-selection-card {
        padding: 1rem;
    }

    .cookie-selection-image {
        width: 70px;
        height: 70px;
        margin-bottom: 0.8rem;
    }

    .cookie-selection-details h4 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .cookie-selection-details p {
        font-size: 0.85rem;
        margin-bottom: 0.8rem;
    }

    .style-selection {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
        margin-bottom: 1.5rem;
    }

    .style-btn {
        width: 100%;
        max-width: 200px;
        justify-content: center;
        padding: 0.8rem 1rem;
    }

    .selection-header {
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
    }

    .selection-header h3 {
        font-size: 1.3rem;
    }

    .selection-info {
        font-size: 1rem;
        padding: 0.4rem 0.8rem;
    }
}

/* === SMALL MOBILE STYLES (480px and below) === */
@media (max-width: 480px) {
    .cookies-selection-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        padding: 0 0.25rem;
    }

    .cookie-selection-card {
        padding: 0.8rem;
        flex-direction: row;
        text-align: left;
        gap: 1rem;
    }

    .cookie-selection-image {
        width: 60px;
        height: 60px;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .cookie-selection-details {
        flex: 1;
        text-align: left;
    }

    .cookie-selection-quantity {
        justify-content: flex-start;
        margin-top: 0.5rem;
    }

    .box-selection-dropdown {
        width: 95%;
        padding: 0.7rem 0.8rem;
    }

    .selection-actions {
        flex-direction: column;
        gap: 1rem;
        padding: 0 0.5rem;
    }

    .selection-summary {
        text-align: center;
    }

    .add-to-cart-box {
        width: 100%;
        justify-content: center;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
}

/* === LANDSCAPE ORIENTATION FOR MOBILE === */
@media (max-width: 768px) and (orientation: landscape) {
    .cookies-selection-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 0.8rem;
    }

    .cookie-selection-card {
        padding: 0.8rem;
        min-height: 120px;
    }

    .cookie-selection-image {
        width: 50px;
        height: 50px;
    }
}

/* === SELECTION SUMMARY RESPONSIVE === */
@media (max-width: 768px) {
    .selected-cookies-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 0.8rem;
    }

    .selected-cookie-image {
        width: 80px;
        height: 80px;
    }

    .selected-cookie-quantity {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }

    .selected-cookie-name {
        font-size: 0.9rem;
    }
}

/* === VERY SMALL SCREENS (360px and below) === */
@media (max-width: 360px) {
    .cookies-selection-grid {
        grid-template-columns: 1fr;
    }

    .cookie-selection-card {
        padding: 0.7rem;
        gap: 0.8rem;
    }

    .cookie-selection-image {
        width: 50px;
        height: 50px;
    }

    .cookie-selection-details h4 {
        font-size: 0.9rem;
    }

    .cookie-selection-details p {
        font-size: 0.8rem;
    }

    .quantity-btn {
        width: 25px;
        height: 25px;
        font-size: 0.8rem;
    }

    .quantity-value {
        min-width: 25px;
        font-size: 0.9rem;
    }
}

/* === TOUCH OPTIMIZATIONS === */
@media (max-width: 768px) {
    .cookie-selection-card {
        cursor: pointer;
        transition: transform 0.2s ease;
    }

    .cookie-selection-card:active {
        transform: scale(0.98);
    }

    .quantity-btn {
        min-width: 32px;
        min-height: 32px;
    }

    .style-btn {
        min-height: 44px;
        /* Minimum touch target */
    }
}

/* Mystery Section Styles */
.mystery-section {
    padding-bottom: 1.5rem;
    background: var(--accent);
}

.mystery-header {
    text-align: center;
    margin-bottom: 2rem;
}

.mystery-showcase {
    max-width: 1200px;
    margin: 0 auto;
}

.mystery-card {
    /* display: flex; */
    background: var(--card-bg, #fff);
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 2rem;
}

.mystery-image-container {
    flex: 0 0 45%;
    position: relative;
    overflow: hidden;
}

.mystery-image {
    width: 30%;
    height: 20rem;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
    margin: 0 auto;
}


.mystery-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary);
    color: #fff;
    padding: 10px 15px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.badge-text {
    display: block;
    font-size: 1.2rem;
    font-weight: bold;
}

.badge-subtext {
    font-size: 0.9rem;
    opacity: 0.9;
}

.mystery-content {
    flex: 1;
    padding: 2rem;
}

.mystery-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.mystery-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.mystery-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.feature i {
    color: var(--primary);
}

.mystery-description {
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.mystery-actions {
    display: flex;
    gap: 1rem;
}

.mystery-btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    background: var(--primary);
    transition: transform 0.2s ease;
}

.mystery-btn:hover {
    transform: translateY(-2px);
}

.mystery-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.highlight-card {
    background: var(--card-bg, #fff);
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}

.highlight-card:hover {
    transform: translateY(-5px);
}

.highlight-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.highlight-card h4 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.highlight-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mystery-card {
        flex-direction: column;
    }

    .mystery-image-container {
        height: 300px;
    }

    .mystery-features {
        grid-template-columns: repeat(2, 1fr);
    }

    .mystery-highlights {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .mystery-features {
        grid-template-columns: 1fr;
    }

    .mystery-content {
        padding: 1.5rem;
    }

    .mystery-title {
        font-size: 1.5rem;
    }
}

/* Selection Counter */
.selection-counter {
    background: linear-gradient(135deg, #8b5a2b, #6d4520);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: bold;
    margin: 1rem auto;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(139, 90, 43, 0.3);
}

.selected-count {
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.selected-count.max-selected {
    color: #ffeb3b;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* Selectable Cookie Cards */
.mystery-cookie-card {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.mystery-cookie-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 3px solid transparent;
    border-radius: 12px;
    transition: all 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.mystery-cookie-card.selected::before {
    border-color: var(--primary);
    /* box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2); */
}

.mystery-cookie-card.selected {
    transform: translateY(-5px);
    /* box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3); */
}

/* Selection Checkbox */
.selection-checkbox {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    transition: all 0.3s ease;
    opacity: 0;
}

.mystery-cookie-card:hover .selection-checkbox {
    opacity: 1;
}

.mystery-cookie-card.selected .selection-checkbox {
    opacity: 1;
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.selection-checkbox i {
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mystery-cookie-card.selected .selection-checkbox i {
    opacity: 1;
}

/* Selection Interface */
.selection-interface {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    border: 2px solid #e0e0e0;
}

.selection-summary {
    min-height: 60px;
    /* margin-bottom: 1.5rem; */
}

.no-selection {
    color: #999;
    font-style: italic;
    text-align: center;
    margin: 1rem 0;
}

.selected-cookies-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* .selected-cookie-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 8px;
    border-left: 4px solid #4caf50;
} */

.cookie-name {
    font-weight: 600;
    color: #333;
}

.remove-guess {
    background: #ff6b6b;
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.remove-guess:hover {
    background: #c0394f;
    transform: scale(1.1);
}

/* Selection Actions */
.selection-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.submit-guess-btn,
.clear-guess-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.submit-guess-btn {
    background: linear-gradient(135deg, #ddd, #bbb);
    color: #666;
    cursor: not-allowed;
}

.submit-guess-btn.enabled {
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.submit-guess-btn.enabled:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.clear-guess-btn {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.clear-guess-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

/* Responsive Design for Selection Interface */
@media (max-width: 768px) {
    .selection-interface {
        padding: 1rem;
        margin-top: 1.5rem;
    }

    .selection-actions {
        flex-direction: column;
        align-items: center;
    }

    .submit-guess-btn,
    .clear-guess-btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }

    .selected-cookie-item {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .selection-counter {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .selected-count {
        font-size: 1.1rem;
    }
}

/* Touch device improvements */
@media (hover: none) {
    .selection-checkbox {
        opacity: 1;
    }

    .mystery-cookie-card.selected {
        transform: none;
    }
}

/* Mystery Tab Horizontal Cookie Display */
.mystery-cookie-display {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(255, 253, 250, 0.9);
    border-radius: 16px;
    border: 2px dashed var(--primary);
    position: relative;
}

.mystery-cookie-header {
    text-align: center;
    /* margin-bottom: 2rem; */
}

.mystery-cookie-header h3 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-family: 'More Sugar', cursive;
}

.mystery-cookie-header p {
    color: var(--primary);
    margin-bottom: 0.5rem;
    line-height: 1.5;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.guess-note {
    background: var(--accent);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary);
    font-size: 0.9rem;
    margin-top: 1rem;
    display: inline-block;
}

.scroll-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.scroll-hint i {
    animation: bounceHorizontal 2s infinite;
}

@keyframes bounceHorizontal {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(0);
    }

    40% {
        transform: translateX(-5px);
    }

    60% {
        transform: translateX(5px);
    }
}

/* Horizontal Scroll Container */
.mystery-cookie-scroll-container {
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
    padding: 1rem 0;
    margin: 0 -0.5rem;
    scroll-behavior: smooth;
}

.mystery-cookie-scroll-container::-webkit-scrollbar {
    height: 6px;
}

.mystery-cookie-scroll-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.mystery-cookie-scroll-container::-webkit-scrollbar-thumb {
    background: #8b5a2b;
    border-radius: 10px;
}

.mystery-cookie-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #6d4520;
}

/* Horizontal Grid */
.mystery-cookie-horizontal-grid {
    display: flex;
    gap: 1.5rem;
    padding: 0 0.5rem;
    min-width: min-content;
}

/* Cookie Pair Container */
.cookie-pair-container {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    min-width: 280px;
    flex-shrink: 0;
}

.cookie-pair-container::before {
    content: attr(data-cookie-name);
    font-weight: bold;
    color: #8b5a2b;
    text-align: center;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-family: 'More Sugar', cursive;
}

/* Individual Cookie Cards */
.mystery-cookie-card {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    /* box-shadow: 0 4px 15px rgba(139, 90, 43, 0.1); */
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    flex: 1;
    min-height: 200px;
}

.mystery-cookie-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 90, 43, 0.15);
}

.chewy-card:hover {
    border-color: var(--primary);
}

.crumble-card:hover {
    border-color: var(--primary);
}

.mystery-cookie-image {
    position: relative;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.mystery-cookie-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.mystery-cookie-card:hover .mystery-cookie-image img {
    transform: scale(1.05);
}

.mystery-sale-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, #ff6b6b, #c0394f);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
    z-index: 2;
}

.cookie-style-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
    color: white;
    z-index: 2;
}

.chewy-badge {
    background: var(--primary);
}

.crumble-badge {
    background: var(--primary);
}

.mystery-cookie-details h4 {
    color: var(--primary);
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-family: 'More Sugar', cursive;
    line-height: 1.2;
}

.mystery-cookie-price {
    margin-bottom: 0.5rem;
}

.mystery-cookie-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.mystery-tag {
    background: linear-gradient(135deg, #8b5a2b, #6d4520);
    color: white;
    padding: 0.2rem 0.4rem;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 600;
}

/* Scroll Navigation */
.scroll-navigation {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    transform: translateY(-50%);
    padding: 0 1rem;
    z-index: 5;
}

.scroll-btn {
    background: white;
    border: 2px solid #8b5a2b;
    color: #8b5a2b;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    box-shadow: 0 4px 12px rgba(139, 90, 43, 0.2);
}

.scroll-btn:hover {
    background: #8b5a2b;
    color: white;
    transform: scale(1.1);
}

.scroll-btn:active {
    transform: scale(0.95);
}

/* Responsive Design */
@media (max-width: 768px) {
    .mystery-cookie-display {
        margin: 1rem 0;
        padding: 1rem;
    }

    .mystery-cookie-header h3 {
        font-size: 1.3rem;
    }

    .cookie-pair-container {
        min-width: 250px;
    }

    .mystery-cookie-card {
        padding: 0.75rem;
        min-height: auto;
    }

    .mystery-cookie-image {
        height: 80px;
    }

    .scroll-btn {
        width: 35px;
        height: 35px;
    }

    .scroll-navigation {
        padding: 0 0.5rem;
    }
}

@media (max-width: 480px) {
    .cookie-pair-container {
        min-width: 220px;
    }

    .mystery-cookie-card {
        min-height: auto;
    }

    .mystery-cookie-image {
        height: 70px;
    }

    .scroll-hint {
        font-size: 0.8rem;
    }

    .scroll-hint i {
        display: none;
    }
}

/* Touch device improvements */
@media (hover: none) {
    .mystery-cookie-card:hover {
        transform: none;
    }

    .scroll-btn {
        background: #8b5a2b;
        color: white;
    }
}

/* Enhanced Cart Sidebar */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    /* z-index: 999; */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* === HERO SECTION SIDE-BY-SIDE LAYOUT FOR MOBILE === */

@media (max-width: 768px) {
    .svg-container {
        flex-direction: row;
        /* Keep side-by-side on mobile */
        gap: 1rem;
        /* margin-top: 1.5rem; */
        justify-content: center;
        align-items: center;
        flex-wrap: nowrap;
        overflow: visible;
    }

    .team-container {
        flex: 1;
        max-width: 45%;
        /* Allow two containers to fit side by side */
        margin: 0;
        min-width: 140px;
        /* Ensure minimum width */
    }

    .cookie-img {
        max-width: 120px;
        height: auto;
    }

    .vs-battle {
        margin: 0 0.5rem;
        order: 0;
        /* Keep VS in the middle */
        flex-shrink: 0;
    }

    .vs-circle {
        width: 50px;
        height: 50px;
    }

    .vs-text {
        font-size: 1.1rem;
    }

    .vs-subtitle {
        font-size: 0.7rem;
        margin-top: 0.3rem;
    }

    /* Reposition speech bubbles for side-by-side layout */
    .speech-bubble {
        position: absolute;
        max-width: 140px;
        font-size: 0.7rem;
        padding: 0.6rem 0.8rem;
        z-index: 10;
    }

    .crumble-bubble {
        top: -80px;
        left: 50%;
        transform: translateX(-50%);
    }

    .chewy-bubble {
        top: -80px;
        left: 50%;
        transform: translateX(-50%);
    }

    /* Adjust bubble arrows for top positioning */
    .speech-bubble .bubble-arrow {
        display: block;
        position: absolute;
        bottom: -8px;
        left: 50%;
        transform: translateX(-50%) rotate(45deg);
        width: 12px;
        height: 12px;
        background: white;
        border-right: 2px solid var(--primary);
        border-bottom: 2px solid var(--primary);
    }

    /* Team Labels */
    .team-label {
        margin-top: 0.5rem;
        font-size: 0.9rem;
    }

    /* Brand Story adjustments for compact layout */
    .brand-story {
        margin-bottom: 1rem;
        padding: 0.5rem;
    }

    .brand-story h1 {
        font-size: 1.5rem;
        margin-bottom: 0.8rem;
    }

    .story-text {
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
    }
}

/* Small Mobile Optimizations (max-width: 480px) */
@media (max-width: 480px) {
    .svg-container {
        gap: 0.5rem;
    }

    .team-container {
        max-width: 42%;
    }

    .cookie-img {
        max-width: 150px;
    }

    .vs-circle {
        width: 40px;
        height: 40px;
    }

    .vs-text {
        font-size: 0.9rem;
    }

    .speech-bubble {
        max-width: 120px;
        font-size: 0.65rem;
        padding: 0.5rem 0.7rem;
    }

    .crumble-bubble,
    .chewy-bubble {
        top: -70px;
    }

    .team-label {
        font-size: 0.8rem;
        margin-top: -40px;
    }
}

/* Very Small Screens (360px and below) */
@media (max-width: 360px) {
    .svg-container {
        gap: 0.3rem;
    }

    .team-container {
        max-width: 40%;
    }

    .cookie-img {
        max-width: 90px;
    }

    .vs-circle {
        width: 35px;
        height: 35px;
    }

    .vs-text {
        font-size: 0.8rem;
    }

    .speech-bubble {
        max-width: 110px;
        font-size: 0.6rem;
        padding: 0.4rem 0.6rem;
    }

    .crumble-bubble,
    .chewy-bubble {
        top: -60px;
    }
}

/* Landscape Orientation for Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .svg-container {
        gap: 1rem;
    }

    .team-container {
        max-width: 35%;
    }

    .cookie-img {
        max-width: 150px;
    }

    .speech-bubble {
        max-width: 150px;
        top: -60px;
    }

    /* Adjust hero section height for landscape */
    .hero {
        min-height: 300px;
        padding: 0.5rem 0;
    }
}

/* Ensure proper animation in side-by-side layout */
@media (max-width: 768px) {
    @keyframes float {

        0%,
        100% {
            transform: translateY(0) scale(0.85);
        }

        50% {
            transform: translateY(-8px) scale(0.85);
        }
    }

    .team-container {
        animation: float 3s ease-in-out infinite;
    }

    .team-container:nth-child(1) {
        animation-delay: 0s;
    }

    .team-container:nth-child(2) {
        animation-delay: 1.5s;
    }
}

/* Adjust bubble animation for mobile side-by-side */
@media (max-width: 768px) {
    @keyframes bubbleAppear {

        0%,
        100% {
            opacity: 0;
            transform: translateX(-50%) translateY(10px);
        }

        10%,
        40% {
            opacity: 1;
            transform: translateX(-50%) translateY(0);
        }

        50% {
            opacity: 1;
            transform: translateX(-50%) translateY(0);
        }

        60% {
            opacity: 0;
            transform: translateX(-50%) translateY(-10px);
        }
    }

    .crumble-bubble {
        animation: bubbleAppear 8s infinite;
        animation-delay: 2s;
    }

    .chewy-bubble {
        animation: bubbleAppear 8s infinite;
        animation-delay: 6s;
    }
}

/* Touch-friendly improvements */
@media (max-width: 768px) {
    .team-container {
        cursor: default;
    }

    /* Ensure VS battle is touch-friendly */
    .vs-battle {
        min-height: 40px;
        min-width: 40px;
    }
}

/* Performance optimization for mobile side-by-side */
@media (max-width: 768px) {
    .svg-container {
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
        will-change: transform;
    }
}

/* Fix any potential overflow issues */
@media (max-width: 768px) {
    .hero-content {
        overflow: hidden;
        padding: 0.5rem;
    }

    .svg-container {
        overflow: visible;
        position: relative;
        margin-top: 80px;
    }
}

/* Ensure proper spacing with other sections */
@media (max-width: 768px) {
    .cookie-showcase {
        padding-top: 1rem;
    }
}

/* Add at the start of the file */

/* Enable lazy loading for images */
img {
    loading: lazy;
}

/* Add placeholder backgrounds while images load */
.box-image,
.cookie-img,
.popup-image {
    /* background: #f0f0f0; */
    min-height: 200px;
}

/* Add progressive image loading */
.lazy-image {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.lazy-image.loaded {
    opacity: 1;
}

/* Tab loading states */
.tab-content.loading {
    position: relative;
    min-height: 200px;
}

.tab-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}



@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.tab-error {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

.error-message {
    color: #666;
}

.error-message i {
    font-size: 2rem;
    color: #ff6b6b;
    margin-bottom: 1rem;
}

.retry-btn {
    background: linear-gradient(135deg, #8b5a2b, #6d4520);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 1rem;
}

.retry-btn:hover {
    background: linear-gradient(135deg, #6d4520, #5a3a1a);
}

/* Skeleton loading for grid items */
.skeleton-item {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 8px;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.cookie-card.skeleton {
    height: 300px;
}

.box-option.skeleton {
    height: 200px;
}


/* Skeleton loading animations */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 8px;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Specific skeleton styles for different components */
.cookie-card.skeleton {
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.box-option.skeleton {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Error message styles */
.error-message {
    text-align: center;
    padding: 2rem;
    color: #666;
    background: #fff5f5;
    border: 1px solid #fed7d7;
    border-radius: 10px;
    margin: 1rem 0;
}

.error-message i {
    font-size: 2rem;
    color: #e53e3e;
    margin-bottom: 1rem;
    display: block;
}

/* Loading state for dropdown */
select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}


/* Update speech bubble positioning to be above team containers */
.speech-bubble {
    position: absolute;
    background: white;
    border: 3px solid var(--primary);
    border-radius: 20px;
    padding: 1rem 1.5rem;
    max-width: 280px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(20px);
    animation: bubbleAppear 8s infinite;
    z-index: 10;
    font-family: 'More Sugar', cursive;
}

/* Position both bubbles above their respective containers */
.crumble-bubble {
    top: -30px;
    /* Position above the container */
    left: 50%;
    width: 270px;
    transform: translateX(-50%) translateY(20px);
    animation-delay: 2s;
}

.chewy-bubble {
    top: 0px;
    /* Position above the container */
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    animation-delay: 6s;
}

/* Update bubble arrows to point downward */
.crumble-bubble .bubble-arrow,
.chewy-bubble .bubble-arrow {
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    border-right: 3px solid var(--primary);
    border-bottom: 3px solid var(--primary);
    bottom: -12px;
    /* Arrow at bottom pointing down */
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
}

/* Update animation for top positioning */
@keyframes bubbleAppear {

    0%,
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }

    10%,
    40% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    50% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    60% {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .speech-bubble {
        max-width: 220px;
        font-size: 0.8rem;
        padding: 0.8rem 1rem;
    }

    .crumble-bubble,
    .chewy-bubble {
        top: -120px;
        /* Adjust for mobile */
    }
}

@media (max-width: 480px) {
    .speech-bubble {
        max-width: 180px;
        font-size: 0.7rem;
        padding: 0.6rem 0.8rem;
    }

    .crumble-bubble,
    .chewy-bubble {
        top: -100px;
        /* Adjust for small mobile */
    }
}

/* === SPEECH BUBBLE RESPONSIVE POSITIONING - ABOVE TEAM CONTAINERS === */

/* Tablet and below - bubbles above containers */
@media (max-width: 1024px) {
    .speech-bubble {
        position: absolute;
        max-width: 240px;
        font-size: 0.9rem;
        padding: 0.9rem 1.2rem;
        left: 50%;
        transform: translateX(-50%);
    }

    /* Position both bubbles above their containers */
    .crumble-bubble {
        top: -30px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }

    .chewy-bubble {
        top: -60px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }

    /* Arrow positioning - pointing down */
    .speech-bubble .bubble-arrow {
        position: absolute;
        width: 16px;
        height: 16px;
        background: white;
        border-right: 2px solid var(--primary);
        border-bottom: 2px solid var(--primary);
        bottom: -9px;
        left: 50%;
        top: auto;
        right: auto;
        transform: translateX(-50%) rotate(45deg);
    }

    /* Hide desktop side arrows */
    .crumble-bubble .bubble-arrow,
    .chewy-bubble .bubble-arrow {
        display: none;
    }
}

/* Mobile styles (768px and below) */
@media (max-width: 768px) {
    .speech-bubble {
        max-width: 200px;
        font-size: 0.8rem;
        padding: 0.8rem 1rem;
    }

    .crumble-bubble,
    .chewy-bubble {
        top: -100px;
    }
}

/* Small mobile styles (480px and below) */
@media (max-width: 480px) {
    .speech-bubble {
        max-width: 160px;
        font-size: 0.7rem;
        padding: 0.6rem 0.8rem;
        bottom: 140px;
    }

    .crumble-bubble,
    .chewy-bubble {
        top: -80px;
    }

    .speech-bubble .bubble-arrow {
        width: 14px;
        height: 14px;
        bottom: -7px;
    }
}

/* Very small screens (360px and below) */
@media (max-width: 360px) {
    .speech-bubble {
        max-width: 140px;
        font-size: 0.65rem;
        padding: 0.5rem 0.7rem;
    }

    .crumble-bubble,
    .chewy-bubble {
        top: -70px;
    }
}

/* Landscape orientation adjustments */
@media (max-width: 768px) and (orientation: landscape) {
    .speech-bubble {
        max-width: 180px;
    }

    .crumble-bubble,
    .chewy-bubble {
        top: -90px;
    }
}

/* === TABLET PORTRAIT RESPONSIVE STYLES (820px x 1180px) === */
@media (min-width: 769px) and (max-width: 820px) and (orientation: portrait) {

    /* Base adjustments */
    body {
        font-size: 15px;
    }

    .container {
        max-width: 95%;
        margin: 0 auto;
    }

    /* Header adjustments */
    .modern-header {
        padding: 0.5rem 0;
    }

    .header-container {
        padding: 0 1.5rem;
    }

    .logo-img {
        height: 45px;
        max-width: 130px;
    }

    .nav-link {
        padding: 0.7rem 1rem;
        font-size: 0.95rem;
    }

    /* Hero section */
    .hero {
        min-height: 70vh;
        padding: 2rem 0;
        margin-bottom: 0;
    }

    .hero-content {
        padding: 1rem;
    }

    .hero-title {
        font-size: 4rem;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
        margin-bottom: 2rem;
    }

    /* SVG container and team layout */
    .svg-container {
        gap: 1.5rem;
        margin-top: 8.5rem;
    }

    .team-container {
        max-width: 300px;
    }

    .cookie-img {
        max-width: 220px;
    }

    .vs-circle {
        width: 70px;
        height: 70px;
    }

    .vs-text {
        font-size: 1.5rem;
    }

    .vs-subtitle {
        font-size: 0.9rem;
    }

    /* Speech bubbles */
    .speech-bubble {
        max-width: 220px;
        font-size: 0.85rem;
        padding: 0.8rem 1.2rem;
    }

    .crumble-bubble {
        top: -100px;
        left: 50%;
        transform: translateX(-50%);
    }

    .chewy-bubble {
        top: -140px;
        left: 50%;
        transform: translateX(-50%);
    }

    .team-label {
        font-size: 1.1rem;
        margin-top: 0.8rem;
    }

    /* Brand story */
    .brand-story {
        margin-bottom: 2rem;
        padding: 1rem;
    }

    .brand-story h1 {
        font-size: 2rem;
    }

    .story-text {
        font-size: 1.1rem;
    }

    /* Cookie showcase slider */
    .cookie-showcase {
        top: 0;
        padding: 3rem 0;
    }

    .cookie-slide {
        height: 380px;
    }

    .cookie-slide-title {
        font-size: 1.6rem;
    }

    .cookie-slide-description {
        font-size: 1rem;
    }

    .slider-nav-btn {
        width: 45px;
        height: 45px;
    }

    /* Boxes tab */
    .box-selection-dropdown {
        padding: 1rem 1.5rem;
        margin-bottom: 1.5rem;
    }

    .box-select {
        max-width: 350px;
        padding: 0.9rem 1.5rem;
    }

    .cookies-selection-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.2rem;
        margin: 1.5rem 0;
    }

    .cookie-selection-card {
        padding: 1.2rem;
    }

    /* Cookies grid */
    .cookies-grid {
        grid-template-columns: repeat(2, minmax(250px, 1fr));
        gap: 1.5rem;
        padding: 1rem;
    }

    .cookie-card {
        border-radius: 1.2rem;
    }

    .cookie-details h3 {
        font-size: 1.1rem;
    }

    .cookie-price {
        font-size: 1.3rem;
    }

    /* Features section */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    /* Popular boxes */
    .boxes-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 1.5rem;
    }

    .box-details {
        padding: 2rem;
    }

    .box-details h3 {
        font-size: 1.4rem;
    }

    /* Footer adjustments */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    /* Tab navigation */
    .tabs {
        max-width: 450px;
        padding: 5px;
    }

    .tab-btn {
        padding: 10px 20px;
        font-size: 1rem;
    }

    /* Section titles */
    .section-title {
        font-size: 2.2rem;
        margin-bottom: 2rem;
    }

    .section-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    /* Buttons */
    .btn {
        padding: 0.8rem 1.6rem;
        font-size: 1rem;
    }

    .add-to-cart-btn {
        padding: 12px 20px;
        font-size: 1rem;
    }

    /* Cart sidebar */
    .cart-sidebar {
        width: 350px;
    }

    /* Mystery section */
    .mystery-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .question-mark {
        font-size: 4rem;
        width: 90px;
        height: 90px;
        line-height: 90px;
    }

    /* Cookie detail popups */
    .cookie-popup {
        width: 90%;
        max-width: 700px;
    }

    .popup-content {
        padding: 2rem;
    }

    .popup-content h2 {
        font-size: 1.8rem;
    }

    /* Flavor popup */
    .flavor-popup {
        width: 85%;
        max-width: 700px;
    }

    .flavor-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    /* Loading screen */
    .loading-content .brand-name {
        font-size: 3rem;
    }

    /* Mobile menu - ensure it's hidden */
    .mobile-menu-btn {
        display: none !important;
    }

    .main-nav {
        display: flex !important;
    }

    /* Ensure proper touch targets */
    .nav-link,
    .btn,
    .tab-btn,
    .cookie-card {
        min-height: 44px;
    }

    /* Performance optimizations */
    .svg-container,
    .cookie-slider {
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
    }
}

/* === ADDITIONAL TABLET OPTIMIZATIONS === */
@media (min-width: 769px) and (max-width: 820px) and (orientation: portrait) {

    /* Improve image loading */
    .cookie-image img,
    .box-image img {
        max-width: 100%;
        height: auto;
    }

    /* Adjust font weights for better readability */
    .section-title {
        font-weight: 600;
    }

    .cookie-details h3 {
        font-weight: 600;
    }

    /* Optimize spacing */
    .hero-buttons {
        gap: 1rem;
    }

    .showcase-tabs-nav {
        gap: 0.8rem;
    }

    .showcase-tab-btn {
        padding: 0.9rem 1.5rem;
    }

    /* Cookie alternating layout */
    .cookie-alternating-container {
        min-height: 320px;
    }

    .cookie-alternating-content {
        padding: 2rem;
    }

    .cookie-alternating-content h3 {
        font-size: 1.6rem;
    }

    /* Selection interface */
    .selected-cookies-grid {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
        gap: 1rem;
    }

    .selected-cookie-image {
        width: 90px;
        height: 90px;
    }

    /* Ensure no horizontal scrolling */
    .container,
    .tab-content-area,
    .hero-content {
        overflow-x: clip;
    }

    /* Optimize animations */
    .team-container {
        animation: float 4s ease-in-out infinite;
    }

    @keyframes float {

        0%,
        100% {
            transform: translateY(0) scale(0.9);
        }

        50% {
            transform: translateY(-12px) scale(0.9);
        }
    }
}

/* === TABLET LANDSCAPE ORIENTATION === */
@media (min-width: 769px) and (max-width: 1180px) and (orientation: landscape) {
    .hero {
        min-height: 60vh;
        padding: 1.5rem 0;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .svg-container {
        gap: 2rem;
    }

    .cookie-img {
        max-width: 200px;
    }

    .cookie-showcase {
        top:5rem;
        padding: 2.5rem 0;
    }

    .cookies-grid {
        grid-template-columns: repeat(3, minmax(220px, 1fr));
        gap: 1.2rem;
    }
}

/* === SPECIFIC FIXES FOR 820px WIDTH === */
@media (max-width: 820px) {

    /* Ensure content doesn't overflow */
    .header-container {
        padding: 0 1rem;
    }

    /* Adjust hero section for exact 820px */
    .hero-content {
        max-width: 95%;
    }

    /* Fix any potential layout issues */
    .boxes-grid,
    .cookies-grid,
    .features-grid {
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    /* Optimize images for tablet */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Ensure proper button sizing */
    .btn,
    .add-to-cart-btn,
    .slider-add-btn {
        font-size: 1rem;
        padding: 12px 24px;
    }

    /* Adjust font sizes for optimal readability */
    body {
        line-height: 1.6;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    h4 {
        font-size: 1.2rem;
    }
}

/* === PERFORMANCE OPTIMIZATIONS FOR TABLET === */
@media (min-width: 769px) and (max-width: 820px) {

    /* Reduce animations for better performance */
    .cookie-card {
        transition: transform 0.2s ease;
    }

    /* Optimize image loading */
    .lazy-image {
        background: #f8f9fa;
    }

    /* Improve scrolling performance */
    .tab-content-area,
    .flavor-popup-content {
        -webkit-overflow-scrolling: touch;
        overflow-y: auto;
    }
}

/* Skeleton Loading Styles */
/* .tab-loading {
    width: 100%;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
} */

/* Skeleton Animation */
@keyframes skeleton-pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

/* Common Skeleton Elements */
.skeleton-title {
    height: 24px;
    background: #e0e0e0;
    border-radius: 4px;
    margin-bottom: 12px;
}

.skeleton-title.large {
    height: 32px;
}

.skeleton-subtitle {
    height: 16px;
    background: #e0e0e0;
    border-radius: 4px;
    margin-bottom: 20px;
    width: 60%;
}

.skeleton-text {
    height: 14px;
    background: #e0e0e0;
    border-radius: 4px;
    margin-bottom: 8px;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-text.medium {
    width: 80%;
}

.skeleton-text.long {
    width: 100%;
}

.skeleton-price {
    height: 20px;
    width: 80px;
    background: #e0e0e0;
    border-radius: 4px;
}

.skeleton-button {
    height: 40px;
    background: #e0e0e0;
    border-radius: 20px;
    margin-top: 12px;
}

.skeleton-button.large {
    height: 50px;
}

.skeleton-icon {
    width: 24px;
    height: 24px;
    background: #e0e0e0;
    border-radius: 50%;
    margin-right: 12px;
}

.skeleton-icon.large {
    width: 48px;
    height: 48px;
}

/* Home Tab Skeletons */
.cookie-showcase-skeleton {
    margin-bottom: 60px;
}

.showcase-header-skeleton {
    margin-bottom: 30px;
    text-align: center;
}

.cookie-slider-skeleton {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.slider-nav-skeleton {
    width: 40px;
    height: 40px;
    background: #e0e0e0;
    border-radius: 50%;
}

.slider-track-skeleton {
    flex: 1;
    overflow: hidden;
}

.cookie-slide-skeleton {
    display: flex;
    gap: 30px;
    padding: 20px;
    background: #f8f8f8;
    border-radius: 12px;
}

.slide-image-skeleton {
    width: 200px;
    height: 200px;
    background: #e0e0e0;
    border-radius: 8px;
    flex-shrink: 0;
}

.slide-content-skeleton {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.slider-controls-skeleton {
    display: flex;
    justify-content: center;
}

.skeleton-dots {
    display: flex;
    gap: 8px;
}

.skeleton-dots::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #e0e0e0;
    border-radius: 50%;
}

.skeleton-dots::after {
    content: '';
    width: 8px;
    height: 8px;
    background: #e0e0e0;
    border-radius: 50%;
}

.build-box-skeleton {
    margin-top: 40px;
}

.tabs-skeleton {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.tab-skeleton {
    width: 150px;
    height: 40px;
    background: #e0e0e0;
    border-radius: 20px;
}

.build-box-hero-skeleton {
    display: flex;
    align-items: center;
    gap: 40px;
    background: #f8f8f8;
    border-radius: 12px;
    padding: 40px;
}

.hero-content-skeleton {
    flex: 1;
}

.hero-image-skeleton {
    width: 300px;
    height: 200px;
    background: #e0e0e0;
    border-radius: 8px;
    flex-shrink: 0;
}

/* Cookies Tab Skeletons */
.cookies-grid-skeleton {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.cookie-card-skeleton {
    background: #f8f8f8;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.cookie-image-skeleton {
    width: 100%;
    height: 200px;
    background: #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    position: relative;
}

.skeleton-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 60px;
    height: 24px;
    background: #e0e0e0;
    border-radius: 12px;
}

.cookie-options-skeleton {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

/* Boxes Tab Skeletons */
.box-selection-skeleton {
    margin-bottom: 30px;
}

.skeleton-label {
    height: 16px;
    background: #e0e0e0;
    border-radius: 4px;
    margin-bottom: 8px;
    width: 120px;
}

.skeleton-dropdown {
    height: 40px;
    background: #e0e0e0;
    border-radius: 8px;
}

.box-options-skeleton {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.box-option-skeleton {
    background: #f8f8f8;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.box-image-skeleton {
    width: 100%;
    height: 120px;
    background: #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
}

.cookie-selection-skeleton {
    background: #f8f8f8;
    border-radius: 12px;
    padding: 30px;
    margin-top: 30px;
}

.selection-header-skeleton {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.selection-info-skeleton {
    width: 120px;
    height: 20px;
    background: #e0e0e0;
    border-radius: 10px;
}

.style-selection-skeleton {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    justify-content: center;
}

.skeleton-style-btn {
    width: 120px;
    height: 40px;
    background: #e0e0e0;
    border-radius: 20px;
}

.cookie-selection-card-skeleton {
    display: flex;
    gap: 15px;
    align-items: center;
    padding: 15px;
    background: white;
    border-radius: 8px;
    margin-bottom: 15px;
}

.cookie-selection-image-skeleton {
    width: 80px;
    height: 80px;
    background: #e0e0e0;
    border-radius: 8px;
    flex-shrink: 0;
}

.cookie-selection-details-skeleton {
    flex: 1;
}

.quantity-skeleton {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.skeleton-btn {
    width: 30px;
    height: 30px;
    background: #e0e0e0;
    border-radius: 50%;
}

.skeleton-counter {
    width: 20px;
    height: 20px;
    background: #e0e0e0;
    border-radius: 4px;
}

/* Mystery Tab Skeletons */
.mystery-showcase-skeleton {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.mystery-card-skeleton {
    flex: 2;
    background: #f8f8f8;
    border-radius: 12px;
    padding: 30px;
}

.mystery-image-skeleton {
    width: 100%;
    height: 200px;
    background: #e0e0e0;
    border-radius: 8px;
    margin-bottom: 20px;
}

.features-skeleton {
    margin: 20px 0;
}

.feature-skeleton {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.mystery-highlights-skeleton {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.highlight-card-skeleton {
    background: #f8f8f8;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

/* Story Tab Skeletons */
.story-hero-skeleton {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
}

.hero-visual-skeleton {
    width: 200px;
    height: 200px;
    background: #e0e0e0;
    border-radius: 50%;
    flex-shrink: 0;
}

.cookie-styles-skeleton {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.style-card-skeleton {
    background: #f8f8f8;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cookie-slide-skeleton {
        flex-direction: column;
        text-align: center;
    }

    .slide-image-skeleton {
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
    }

    .build-box-hero-skeleton {
        flex-direction: column;
        text-align: center;
    }

    .hero-image-skeleton {
        width: 100%;
        max-width: 250px;
    }

    .mystery-showcase-skeleton {
        flex-direction: column;
    }

    .story-hero-skeleton {
        flex-direction: column;
        text-align: center;
    }

    .cookie-selection-card-skeleton {
        flex-direction: column;
        text-align: center;
    }

    .cookie-selection-image-skeleton {
        width: 120px;
        height: 120px;
    }
}

/* Add to your CSS to prevent layout shifts during loading */
.tab-content {
    /* min-height: 100vh; */
    /* Ensure content has height during loading */
}

.cookies-grid,
.boxes-content,
.mystery-content {
    min-height: 400px;
    /* Prevent content collapse during loading */
}

/* Ensure skeleton loaders maintain layout */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Floating Cart Styles */
.floating-cart-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.floating-cart-btn {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(139, 90, 43, 0.3);
    transition: all 0.3s ease;
    position: relative;
    border: none;
    color: white;
}

.floating-cart-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(139, 90, 43, 0.4);
    background: #A02A3F;
    /* background: linear-gradient(135deg, #9d6a3b, #7d5530); */
}

.floating-cart-btn:active {
    transform: translateY(-1px);
}

.floating-cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    border: 2px solid white;
    animation: pulse 2s infinite;
}

.floating-cart-btn i {
    font-size: 24px;
}

/* Cart sidebar adjustments for floating cart */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 30rem;
    height: 100%;
    background: white;
    box-shadow: -2px 0 20px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1001;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Animation for cart count */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .floating-cart-container {
        bottom: 20px;
        right: 20px;
    }

    .floating-cart-btn {
        width: 55px;
        height: 55px;
    }

    .cart-sidebar {
        width: 100%;
        right: -100%;
    }

    .floating-cart-count {
        width: 22px;
        height: 22px;
        font-size: 11px;
    }
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* width: 100%; */
}


.header-left {
    display: flex;
    align-items: center;
}

.header-right {
    width: 60px;
    /* Maintain balance for the layout */
}

.mobile-menu-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    /* Space between icon and text */
    padding: 8px 12px;
    background: transparent;
    border: none;
    color: #333;
    /* Adjust color to match your design */
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
}

.mobile-menu-btn .menu-text {
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
}


.mobile-menu-btn:hover {
    background: rgba(139, 90, 43, 0.1);
}

.menu-text {
    font-weight: 600;
    font-size: 16px;
}

/* Hide menu text on desktop */
@media (min-width: 769px) {
    .menu-text {
        display: none;
    }

    .mobile-menu-btn {
        display: none;
    }
}

/* Mobile styles */
@media (max-width: 768px) {
    .mobile-menu-btn {
        padding: 8px 12px;
    }

    .menu-text {
        font-size: 15px;
    }

    .header-right {
        width: 40px;
    }
}

/* Ensure proper spacing for navigation */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 30px;
}

/* Mobile navigation adjustments */
@media (max-width: 768px) {
    .main-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: white;
        box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
        z-index: 1001;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 80px;
    }

    .main-nav.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        display: flex;
        align-items: center;
        padding: 15px 25px;
        border-bottom: 1px solid #f0f0f0;
        color: #333;
        text-decoration: none;
        transition: all 0.3s ease;
    }

    .nav-link:hover {
        background: #f8f8f8;
        color: var(--primary);
    }
}

/* If you need to adjust the header layout further */
.modern-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Make sure the navigation is properly aligned */
.main-nav {
    margin: 0 auto;
    /* This will center the nav */
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .mobile-menu-btn {
        padding: 6px 10px;
    }

    .mobile-menu-btn .menu-text {
        font-size: 13px;
    }
}

.mobile-menu-btn {
    display: none;
    align-items: center;
    gap: 12px;
    background: transparent;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    margin-right: auto;
}

.hamburger-lines {
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 20px;
}

.hamburger-lines span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: #333;
    transition: all 0.3s ease;
}

.menu-text {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #333 !important;
    white-space: nowrap;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .mobile-menu-btn {
        gap: 8px !important;
        padding: 8px 12px !important;
    }

    .menu-text {
        font-size: 13px !important;
    }

    .hamburger-lines {
        width: 18px;
    }
}


/* Show desktop cart, hide floating cart on desktop */
@media (min-width: 769px) {
    .floating-cart-container {
        display: none !important;
    }

    .header-actions .cart-icon {
        display: flex !important;
    }
}

/* Show floating cart, hide desktop cart on mobile */
@media (max-width: 768px) {
    .floating-cart-container {
        display: block !important;
    }

    .header-actions .cart-icon {
        display: none !important;
    }
}

/* Hide cookie features on mobile */
@media (max-width: 768px) {

    .cookie-slide-features,
    .cookie-features {
        display: none !important;
    }
}

/* Show cookie features on desktop */
@media (min-width: 769px) {

    .cookie-slide-features,
    .cookie-features {
        display: flex;
    }
}


/* Mystery Cookie Dropdown Styles */
.mystery-cookie-dropdown-container {
    margin: 20px 0;
    /* max-width: 400px; */
}

.mystery-cookie-dropdown {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--primary);
    border-radius: 8px;
    background: white;
    font-size: 16px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mystery-cookie-dropdown:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(139, 90, 43, 0.2);
}

.mystery-cookie-dropdown:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(139, 90, 43, 0.1);
}

.mystery-selected-cookies {
    margin-top: 30px;
}

.selected-cookies-header {
    margin-bottom: 15px;
    text-align: center;
}

.selected-cookies-header h4 {
    color: var(--primary);
    margin-bottom: 5px;
}

.selected-cookies-header p {
    color: var(--primary);
    font-size: 14px;
}

.mystery-selected-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.mystery-selected-card {
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    padding: 12px;
    transition: all 0.3s ease;
    position: relative;
}

.mystery-selected-card:hover {
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* .mystery-selected-card.chewy-card {
    border-left: 4px solid #ff6b6b;
}

.mystery-selected-card.crumble-card {
    border-left: 4px solid var(--primary);
} */

.selected-cookie-image {
    position: relative;
    margin-right: 12px;
}

.selected-cookie-image img {
    /* width: 50px;
    height: 50px; */
    border-radius: 8px;
    object-fit: cover;
}

.cookie-style-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #8b5a2b;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: bold;
}

.selected-cookie-details {
    flex: 1;
}

.selected-cookie-details h5 {
    margin: 0 0 4px 0;
    color: #333;
    font-size: 14px;
}

.selected-cookie-details p {
    margin: 0;
    color: #666;
    font-size: 12px;
}

.remove-guess-btn {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
}

.remove-guess-btn:hover {
    background: var(--primary-light);
    transform: scale(1.1);
}

.no-guesses-message {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.no-guesses-message i {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 15px;
    display: block;
}

.no-guesses-message .hint {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

/* Responsive design */
@media (max-width: 768px) {
    .mystery-cookie-dropdown-container {
        max-width: 100%;
    }

    .mystery-selected-grid {
        grid-template-columns: 1fr;
    }

    .mystery-selected-card {
        padding: 10px;
    }
}

@media (min-width: 480px) and (max-width: 768px) {

    .crumble-bubble,
    .chewy-bubble {
        bottom: 10rem;
    }

    .cookie-img {
        max-width: 10rem;
    }
}

.showcase-tabs-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.showcase-tab-btn {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: clamp(1rem, 1.5vw, 1.2rem) clamp(1.5rem, 2vw, 2rem);
    background: var(--accent);
    border: 2px solid var(--secondary);
    border-radius: 50px;
    color: var(--primary);
    font-family: 'More Sugar', cursive;
    font-size: clamp(0.9rem, 1.1vw, 1.1rem);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    /* Shadow for unselected tabs */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.showcase-tab-btn.active,
.showcase-tab-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-3px);
    /* Enhanced shadow for active/hover state */
    box-shadow: 0 8px 20px rgba(192, 57, 79, 0.3);
}

/* Optional: Keep shadow on unselected tabs during hover */
.showcase-tab-btn:not(.active):hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

/* Mobile Selection Summary Replacement */
.mobile-selection-summary {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 2px solid var(--primary);
    padding: 15px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.mobile-selection-summary.active {
    display: block;
    transform: translateY(0);
}

.mobile-selection-summary.sticky {
    position: sticky;
    bottom: auto;
    top: calc(100vh - 200px);
    /* يفضل في مكان معين من الشاشة */
}

/* علشان نخفي الـ summary لما نوصل للفوتر */
.mobile-selection-summary.hidden {
    transform: translateY(100%);
}

.mobile-summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.mobile-summary-count {
    font-weight: bold;
    color: var(--primary);
    font-size: 16px;
}

.mobile-summary-progress {
    font-size: 14px;
    color: #666;
}

.mobile-selected-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 5px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.mobile-selected-scroll::-webkit-scrollbar {
    display: none;
}

.mobile-selected-item {
    flex: 0 0 auto;
    width: 80px;
    text-align: center;
    position: relative;
}

.mobile-selected-image {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    overflow: hidden;
    margin: 0 auto 5px;
    border: 2px solid var(--primary);
    position: relative;
}

.mobile-selected-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mobile-selected-quantity {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.mobile-selected-name {
    font-size: 12px;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-summary-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.mobile-add-to-cart {
    flex: 1;
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
}

.mobile-add-to-cart:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.mobile-clear-selection {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 12px 15px;
    border-radius: 25px;
    cursor: pointer;
}

/* Empty state for mobile selection */
.mobile-selection-empty {
    text-align: center;
    padding: 20px;
    color: #666;
}

.mobile-selection-empty i {
    font-size: 24px;
    margin-bottom: 10px;
    color: #ccc;
}

/* Hide desktop selection summary on mobile */
@media (max-width: 768px) {
    .selection-summary {
        display: none !important;
    }

    .mobile-selection-summary {
        display: block;
    }

    /* Adjust cookie selection grid for mobile */
    .cookies-selection-grid {
        padding-bottom: 120px;
        /* Space for fixed summary */
    }

    .selection-actions {
        display: none;
        /* Hide desktop actions on mobile */
    }
}

@media (min-width: 769px) {
    .mobile-selection-summary {
        display: none !important;
    }
}

/* Family Tab Styles */
.family-content {
  /* padding: 2rem 0; */
  min-height: 60vh;
  display: block;
  justify-content: center;
  align-items: center;
}

.family-loading {
  text-align: center;
  color: var(--primary);
}

.family-loading .loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

.family-gallery {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

/* Main Image Styles */
.family-main-image-container {
  position: relative;
  z-index: 2;
  text-align: center;
}

.family-main-image {
  width: 17rem;
  height: 17rem;
  object-fit: cover;
  border-radius: 10rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border: 5px solid #8B4513;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.family-section{
    background: var(--accent);
    height: 100%;
}

.family-main-image:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.family-main-label {
  margin-top: 1rem;
  font-size: 1.5rem;
  font-weight: bold;
  color: #8B4513;
  font-family: 'Nunito', sans-serif;
}

/* Other Images Container */
.family-other-images {
  position: relative;
  width: 100%;
  height: 60rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.family-other-image {
  position: absolute;
  width: 150px;
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  z-index: 1;
}

.family-other-image:hover {
  transform: scale(1.1) !important;
  z-index: 10;
}

.family-other-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10rem;
  border: 5px solid #8B4513;
  transition: all 0.3s ease;
}

/* Make sure images don't overlap too much on hover */
.family-other-image:hover {
  transform: scale(1.1) !important;
  z-index: 100;
}

/* No Images Message */
.no-family-images {
  text-align: center;
  color: #666;
  padding: 3rem;
}

.no-family-images i {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #ccc;
}

/* Error Message */
.family-content .error-message {
  text-align: center;
  color: #666;
  padding: 3rem;
}

.error-subtitle {
  font-size: 0.9rem;
  margin-top: 0.5rem;
  opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
  .family-main-image {
    width: 250px;
    height: 250px;
  }
  
  .family-other-images {
    height: 40rem;
  }
  
  .family-other-image {
    width: 120px;
  }
  
  .family-gallery {
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .family-main-image {
    width: 200px;
    height: 200px;
  }
  
  .family-other-images {
    height: 30rem;
  }
  
  .family-other-image {
    width: 90px;
  }
  
  .family-main-label {
    font-size: 1.2rem;
  }
}

/* Animation for image loading */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Main Photo Container */
.main-photo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem 1rem;
  position: relative;
}

.main-photo {
  position: relative;
  text-align: center;
  z-index: 10;
}

.featured-photo {
  width: 300px;
  height: 300px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(139, 69, 19, 0.3);
  /* border: 6px solid #FFD700; */
  transition: transform 0.3s ease;
}

.featured-photo:hover {
  transform: scale(1.05);
}

.featured-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.main-photo-label {
  margin-top: 1rem;
  background: linear-gradient(135deg, #8B4513, #A0522D);
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 5px 15px rgba(139, 69, 19, 0.3);
}

.main-photo-label i {
  color: #FFD700;
}

/* Masonry Grid around main photo */
.masonry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 2rem 1rem;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.masonry-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.client-photo {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  background: var(--accent);
  transition: all 0.3s ease;
  cursor: default;
  /* box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1); */
}

.client-photo:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.client-photo img {
  width: 100%;
  object-fit: cover;
  border-radius: 15px;
  transition: transform 0.3s ease;
}

.client-photo:hover img {
  transform: scale(1.08);
}

.photo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(139, 69, 19, 0.2) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 1rem;
}

.client-photo:hover .photo-overlay {
  opacity: 1;
}

.heart-btn {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #E1306C;
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}

.heart-btn:hover {
  transform: scale(1.2);
}

.client-gallery-header h2 {
  font-size: 2.2rem;
  color: #8B4513;
  margin-bottom: 0.5rem;
  font-family: 'Nunito', sans-serif;
}

.client-gallery-header p {
  font-size: 1.1rem;
  color: #666;
}

/* Empty State */
.empty-community {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
}

.empty-content {
  max-width: 400px;
  margin: 0 auto;
}

.cookie-illustration {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.empty-content h3 {
  font-size: 1.5rem;
  color: #8B4513;
  margin-bottom: 0.5rem;
}

.empty-content p {
  color: #666;
}

/* Footer */
.gallery-footer {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--primary);
  border-top: 1px solid #eee;
  margin-top: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
  .masonry-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    padding: 1rem;
  }
  
  .featured-photo {
    width: 250px;
    height: 250px;
  }
  
  .main-photo-container {
    padding: 2rem 1rem;
  }
  
  .client-gallery-header {
    padding: 2rem 1rem 0.5rem;
  }
  
  .client-gallery-header h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .masonry-grid {
    grid-template-columns: 1fr;
  }
  
  .masonry-column {
    gap: 1rem;
  }
  
  .featured-photo {
    width: 200px;
    height: 200px;
  }
  
  .main-photo-label {
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
  }
}
/* Tablet and smaller desktop screens */
@media (max-width: 1366px) and (max-height: 768px) {
    .cookie-showcase {
        top: 3rem;
    }
}

/* Your specific case */
@media (max-width: 1366px) and (max-height: 765px) {
    .cookie-showcase {
        top: 5rem;
    }
}

/* HD Screens */
@media (min-width: 1367px) and (max-width: 1920px) {
    .cookie-showcase {
        top: 4rem;
    }
}

/* Large HD Screens */
@media (min-width: 1921px) {
    .cookie-showcase {
        top: 6rem;
    }
}

/* Mobile landscape */
@media (max-width: 1024px) and (max-height: 768px) {
    .cookie-showcase {
        top: 4.5rem;
    }
}

/* Small mobile screens */
@media (min-width: 770px) and (max-width: 800px) {
    .cookie-showcase {
        top: 0;
    }
}

@media (max-width: 769px){
    .cookie-showcase {
        top: 0;
    }
}

/* Dynamic Tabs Styles */
.dynamic-tab-section {
    padding: 4rem 0;
    background: var(--background-color);
}

.dynamic-tab-header {
    text-align: center;
    margin-bottom: 3rem;
}

.dynamic-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.dynamic-carousel-container {
    position: relative;
    margin: 2rem 0;
}

.dynamic-cookie-slider {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 1rem 0;
}

.dynamic-cookie-slider::-webkit-scrollbar {
    display: none;
}

.products-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.list-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 1px solid var(--border-color);
}

.list-card .product-image {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}

.list-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.list-card .product-details {
    flex: 1;
}

.no-products-message {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
    font-style: italic;
}

.dynamic-product-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.dynamic-product-btn:hover {
    background: var(--primary-dark);
}

/* Responsive styles */
@media (max-width: 768px) {
    .list-card {
        flex-direction: column;
        text-align: center;
    }
    
    .list-card .product-image {
        width: 120px;
        height: 120px;
    }
    
    .dynamic-products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.single-style-badge,
.flavor-style-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(139, 69, 19, 0.9);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  z-index: 2;
}

.no-cookies-message,
.no-flavors-message {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 2rem;
  color: #666;
}

.no-cookies-message i,
.no-flavors-message i {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #ccc;
}

.style-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.style-btn:disabled:hover {
  transform: none;
  box-shadow: none;
}


.mystery-contents {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 10px;
  margin: 15px 0;
  border-left: 4px solid #8B4513;
}

.mystery-contents h4 {
  margin: 0 0 8px 0;
  color: #8B4513;
  font-size: 1rem;
}

.mystery-contents p {
  margin: 0;
  color: #666;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Mystery Box Selector Styles */
.mystery-selector-container {
    max-width: 1200px;
    margin: 0 auto;
}

.mystery-selector-header {
    text-align: center;
    margin-bottom: 2rem;
}

.mystery-selector-header h2 {
    color: #8B4513;
    margin-bottom: 0.5rem;
    font-size: 2.5rem;
}

.mystery-box-selector {
    margin-bottom: 2rem;
}

.selector-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.mystery-tab {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 50px;
    padding: 12px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #6c757d;
}

.mystery-tab:hover {
    border-color: #8B4513;
    color: #8B4513;
    transform: translateY(-2px);
}

.mystery-tab.active {
    background: #8B4513;
    border-color: #8B4513;
    color: white;
}

.mystery-box-display {
    position: relative;
    min-height: 500px;
}

.mystery-box-card {
    display: none;
    animation: fadeIn 0.5s ease-in;
}

.mystery-box-card.active {
    display: block;
}

.mystery-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ff6b6b;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.mystery-guess-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #f1f3f4;
}

.mystery-loading {
    text-align: center;
    padding: 3rem;
}

.mystery-loading .loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #8B4513;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive design */
@media (max-width: 768px) {
    .selector-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .mystery-tab {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .mystery-selector-header h2 {
        font-size: 2rem;
    }
}

/* Mystery Box Selector Styles */
.mystery-box-selector {
  max-width: 800px;
  margin: 0 auto;
}

.mystery-box-header {
  text-align: center;
  margin-bottom: 2rem;
}

.mystery-box-header h3 {
  color: #8B4513;
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.mystery-box-dropdown-container {
  margin-bottom: 2rem;
}

.mystery-box-dropdown-container label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #5D4037;
}

.mystery-box-dropdown {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #E0E0E0;
  border-radius: 12px;
  font-size: 16px;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mystery-box-dropdown:focus {
  outline: none;
  border-color: #8B4513;
  box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
}

.mystery-box-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid #F5F5F5;
}

.mystery-box-info h4 {
  color: #8B4513;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.mystery-box-description {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.mystery-box-contents,
.mystery-box-features {
  margin-bottom: 1.5rem;
}

.mystery-box-contents h5,
.mystery-box-features h5 {
  color: #5D4037;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.mystery-box-features ul {
  list-style: none;
  padding: 0;
}

.mystery-box-features li {
  padding: 0.25rem 0;
  color: #666;
}

.mystery-box-price {
  font-size: 1.8rem;
  font-weight: bold;
  color: #8B4513;
  margin: 1.5rem 0;
  text-align: center;
}

.mystery-note {
  text-align: center;
  color: #666;
  margin-bottom: 1.5rem;
  font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
  .mystery-box-card {
    padding: 1.5rem;
    margin: 0 -1rem;
    border-radius: 12px;
  }
  
  .mystery-box-header h3 {
    font-size: 1.5rem;
  }
  
  .mystery-box-price {
    font-size: 1.5rem;
  }
}

/* Animation for box selection */
.mystery-box-card {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mystery Box Dropdown Styles - Minimal */
.mystery-box-dropdown-container {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--secondary);
  border-radius: 12px;
  /* border-left: 4px solid #8B4513; */
}

.mystery-box-dropdown-container label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--primary);
  font-size: 1rem;
}

.mystery-box-dropdown {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid #E0E0E0;
  border-radius: 8px;
  font-size: 15px;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mystery-box-dropdown:focus {
  outline: none;
  border-color: #8B4513;
  box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
}

.mystery-box-contents,
.mystery-box-features {
  margin: 1rem 0;
  padding: 1rem;
  /* background: rgba(139, 69, 19, 0.03); */
  border-radius: 8px;
}

.mystery-box-contents h4,
.mystery-box-features h4 {
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.mystery-box-features ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mystery-box-features li {
  padding: 0.25rem 0;
  color: #666;
}

/* Responsive */
@media (max-width: 768px) {
  .mystery-box-dropdown-container {
    padding: 0.8rem;
    margin-bottom: 1rem;
  }
  
  .mystery-box-dropdown {
    padding: 8px 10px;
    font-size: 14px;
  }
}

/* Mystery Box Image Styles */
.mystery-box-image-container {
  margin-bottom: 2rem;
  text-align: center;
}

.mystery-box-image {
  max-width: 100%;
  height: auto;
  max-height: 300px;
  border-radius: 16px;
  /* box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15); */
  /* border: 3px solid #8B4513; */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}



/* Responsive Design for Mystery Box Image */
@media (max-width: 768px) {
  .mystery-box-image {
    max-height: 200px;
    border-radius: 12px;
  }
  
  .mystery-box-image-container {
    margin-bottom: 1.5rem;
  }
}

/* Store Status Banner */
.store-status-banner {
  padding: 12px 20px;
  margin: 1rem auto;
  max-width: 800px;
  border-radius: 10px;
  text-align: center;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  animation: fadeIn 0.5s ease-in;
}

.store-status-open {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  color: #155724;
  border: 1px solid #c3e6cb;
}

.store-status-closed {
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.btn:disabled {
  background: #cccccc !important;
  border-color: #cccccc !important;
  color: #666666 !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
}

.btn:disabled:hover {
  background: #cccccc !important;
  border-color: #cccccc !important;
  transform: none !important;
}

.cart-item-mystery-info {
    margin: 8px 0;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #ff6b6b;
}

.mystery-size {
    font-size: 0.9em;
    color: #666;
    font-weight: 500;
}

.cart-item-guesses {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px dashed #ddd;
}

.guess-label {
    font-size: 0.8em;
    color: #888;
    margin-bottom: 4px;
}

.cart-item-guess {
    font-size: 0.85em;
    color: #555;
    padding: 2px 0;
}

.cart-mystery-badge {
    position: absolute;
    top: 5px;
    left: 5px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.7em;
    font-weight: bold;
    text-transform: uppercase;
    z-index: 2;
}

/* Disabled checkout button styles */
#start-checkout:disabled {
    background: #cccccc !important;
    border-color: #cccccc !important;
    color: #666666 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
}

#start-checkout:disabled:hover {
    background: #cccccc !important;
    border-color: #cccccc !important;
    transform: none !important;
}

/* Store closed indicator in cart */
.cart-store-closed-message {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 10px;
    margin: 10px 0;
    text-align: center;
    color: #856404;
    font-size: 0.9rem;
}

.cart-store-closed-message i {
    margin-right: 5px;
}

/* Store status indicator */
.store-status-indicator {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.store-status-indicator:hover::after {
    content: attr(title);
    position: absolute;
    top: 100%;
    right: 0;
    background: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1002;
    margin-top: 5px;
}

/* Add to your existing CSS */
.checkout-btn:disabled {
  background: #cccccc !important;
  border-color: #cccccc !important;
  color: #666666 !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
}

.checkout-btn:disabled:hover {
  background: #cccccc !important;
  border-color: #cccccc !important;
  transform: none !important;
}

/* Optional: Add a visual indicator for disabled state */
.checkout-btn.disabled {
  position: relative;
}



/* Add to your existing CSS */
.cookie-style-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.style-filter-btn {
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--primary);
    border-radius: 50px;
    background: transparent;
    color: var(--primary);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.style-filter-btn.active {
    background: var(--primary);
    color: var(--light);
}




.cookie-available-styles {
    margin: 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.styles-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.style-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.style-badge.chewy {
    background: rgba(165, 42, 42, 0.1);
    color: #A52A2A;
    border: 1px solid rgba(165, 42, 42, 0.3);
}

.style-badge.crumble {
    background: rgba(165, 42, 42, 0.1);
    color: #A52A2A;
    border: 1px solid rgba(165, 42, 42, 0.3);
}

.no-cookies-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    background: #f9f5eb;
    border-radius: 12px;
    border: 2px dashed #e0d6c2;
}

.no-cookies-message i {
    font-size: 3rem;
    color: #d4b896;
    margin-bottom: 1rem;
}

.no-cookies-message h4 {
    color: #8B4513;
    margin-bottom: 0.5rem;
}

.no-cookies-message p {
    color: #666;
    max-width: 400px;
    margin: 0 auto;
}

/* Responsive styles */
@media (max-width: 768px) {
    .cookie-style-filter {
        gap: 0.5rem;
        margin: 1.5rem 0;
    }
    
    .style-filter-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .cookie-available-styles {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .styles-label {
        display: block;
        margin-bottom: 0.25rem;
    }
}


