@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css');
/* Professional Dark Theme - Enhanced & Responsive */
:root {
    --primary-bg: #002223;
    --secondary-bg: #003d40;
    --card-bg: #004d50;
    --card-hover: #005a5e;
    --text-primary: #ffffff;
    --text-secondary: #e0f2f1;
    --text-muted: #b2dfdb;
    --accent-green: #00ff88;
    --accent-green-dark: #00cc6a;
    --accent-green-light: #4dffaa;
    --border-color: #006064;
    --border-light: #00838f;
    --shadow-primary: 0 8px 32px rgba(0, 255, 136, 0.15);
    --shadow-secondary: 0 4px 16px rgba(0, 0, 0, 0.3);
    --gradient-primary: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-green-dark) 100%);
    --gradient-bg: linear-gradient(135deg, var(--secondary-bg) 0%, var(--card-bg) 100%);
   
    /* Dynamic sizing variables */
    --sidebar-width: clamp(280px, 25vw, 400px);
    --container-padding: clamp(15px, 3vw, 40px);
    --card-gap: clamp(15px, 2.5vw, 30px);
    --product-height: clamp(300px, 35vh, 380px);
    --font-size-base: clamp(14px, 1.2vw, 16px);
    --font-size-large: clamp(18px, 2vw, 24px);
}
/* Reset with improved font loading */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    background-color: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.6;
    direction: rtl;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-display: swap;
}
/* Main Container */
.gift-card-main-container {
    display: grid;
    grid-template-columns: 1fr; /* Full width in mobile, adjusted for tablet/desktop */
    gap: 0;
    background: var(--gradient-bg);
    min-height: 60vh;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-primary);
    border: 2px solid var(--border-color);
    position: relative;
    margin: 0; /* Remove all margins to stretch fully */
    width: 100%; /* Ensure full width */
    max-width: 100%; /* Override previous max-width */
}
.gift-card-main-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    z-index: 10;
    border-radius: 24px 24px 0 0;
}

/* Enhanced sidebar */
.gift-card-sidebar {
    background: transparent;
    padding: var(--container-padding);
    border: 2px solid var(--accent-green-light); /* Full border */
    position: relative;
    overflow-y: auto;
    max-height: 80vh;
    transition: border-color 0.3s ease-out;
    width: 100%; /* Stretch the sidebar container */
    border-radius: 16px; /* Nice border radius */
    box-shadow: 0 4px 16px rgba(0, 255, 136, 0.2); /* Soft glow for nice effect */
}
.gift-card-sidebar h4 {
    color: var(--text-primary);
    font-size: var(--font-size-large);
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}
.gift-card-sidebar h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
/* Hover effect for h4 underline */
.gift-card-sidebar h4:hover::after {
    width: 80px;
}
/* Enhanced brand list */
#brand-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%; /* Ensure list stretches within container */
}
.brand-item {
    cursor: pointer;
    padding: 18px 24px;
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text-primary);
    border-radius: 16px;
    position: relative;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    transform: translateZ(0);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s ease-out;
}
.brand-item .brand-text {
    flex-grow: 1;
    text-align: right;
    transition: color 0.3s ease-out;
}
.brand-item .brand-icon {
    font-size: 20px;
    color: var(--accent-green);
    opacity: 0;
    transform: translateX(10px) scale(0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.brand-item .brand-separator {
    width: 2px;
    height: 20px;
    background: var(--text-secondary);
    margin: 0 10px;
    opacity: 0;
    transform: scaleX(0);
    transform-origin: right;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
/* Hover & Active States */
.brand-item:hover,
.brand-item.active {
    background: var(--gradient-primary);
    color: var(--primary-bg);
    border-color: var(--accent-green-light);
    box-shadow: 0 4px 16px rgba(0, 255, 136, 0.3);
    transform: translateX(-4px) scale(1.02) translateZ(0);
}
.brand-item:hover .brand-icon,
.brand-item.active .brand-icon {
    opacity: 1;
    transform: translateX(0) scale(1);
    color: var(--primary-bg);
}
.brand-item:hover .brand-separator,
.brand-item.active .brand-separator {
    opacity: 1;
    transform: scaleX(1);
    background: var(--primary-bg);
}
.brand-item.active .brand-text {
    color: var(--primary-bg);
}
.brand-item::after {
    display: none;
}
/* Enhanced content area */
#dynamic-content {
    background: transparent;
    padding: var(--container-padding);
    position: relative;
    overflow: visible;
}
/* Improved title section */
.regions-main-title {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    position: relative;
}
.regions-main-title h2 {
    color: var(--text-primary);
    font-size: var(--font-size-large);
    font-weight: 800;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 255, 136, 0.3);
}
/* Enhanced loading animation */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 2px solid var(--border-color);
    text-align: center;
}
.loading .spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--accent-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.loading-text {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
}
/* Responsive region buttons */
#region-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 30px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 2px solid var(--border-color);
    justify-items: center;
}
.region-button {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    padding: 15px 25px;
    border-radius: 12px;
    cursor: pointer;
    font-size: var(--font-size-base);
    font-weight: 700;
    transition: all 0.3s ease;
    position: relative;
    min-width: 140px;
    text-align: center;
    z-index: 2;
    overflow: hidden;
    white-space: nowrap;
    transform: translateZ(0);
}
.region-button:hover {
    background: var(--card-hover);
    border-color: var(--accent-green);
    transform: translateY(-2px) translateZ(0);
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.2);
}
.region-button.active {
    background: var(--gradient-primary);
    color: var(--primary-bg);
    border-color: var(--accent-green-light);
    box-shadow: 0 8px 32px rgba(0, 255, 136, 0.4);
}
/* Enhanced region sections */
.region-section {
    margin-bottom: 60px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: var(--container-padding);
    border: 1px solid var(--accent-green-light); /* ????? ???? ???? ?????? ??? (1px) */
    position: relative;
}
.region-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    right: 20px;
    height: 3px;
    border-radius: 0 0 3px 3px;
}
.region-section h4 {
    color: var(--text-primary);
    text-align: center;
    font-size: var(--font-size-large);
    font-weight: 800;
    margin-bottom: 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.region-count {
    background: var(--gradient-primary);
    color: var(--primary-bg);
    padding: 6px 14px;
    border-radius: 15px;
    font-size: calc(var(--font-size-base) * 0.8);
    font-weight: 700;
    white-space: nowrap;
}
/* Dramatically improved carousel with better responsive design */
.product-carousel {
    position: relative;
    padding: 60px 50px 80px 50px; /* ?????? ????? ???? ???? ??????? ?? ???? ??? ???? */
    margin: 0 -20px;
    overflow: visible;
}
/* Enhanced product grid for better responsiveness */
.product-carousel .slick-list {
    margin: 0 calc(var(--card-gap) * -0.5);
    overflow: visible;
}
.product-carousel .slick-slide {
    padding: 0 calc(var(--card-gap) * 0.5);
    height: auto;
}
.product-carousel .slick-slide > div {
    height: 100%;
}
/* Completely redesigned product items */
.product-item {
    display: block;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 24px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(15px);
    height: var(--product-height);
    display: flex;
    flex-direction: column;
    transform: translateZ(0);
    will-change: transform, box-shadow;
}
.product-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    border-radius: 18px;
    pointer-events: none;
}
.product-item:hover {
    transform: translateY(-12px) scale(1.03) translateZ(0);
    border: 3px solid var(--accent-green);
    box-shadow: 0 25px 80px rgba(0, 255, 136, 0.35);
    z-index: 10;
}
.product-item:hover::before {
    opacity: 0.08;
}
/* Responsive product images */
.product-image {
    position: relative;
    margin-bottom: 16px;
    z-index: 2;
    border-radius: 16px;
    overflow: hidden;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-item img {
    width: 100%;
    height: 100%;
    min-height: 140px;
    object-fit: cover;
    transition: transform 0.4s ease;
    border-radius: 16px;
}
.product-item:hover img {
    transform: scale(1.1);
}
/* Enhanced product content */
.product-content {
    position: relative;
    z-index: 2;
    margin-top: auto;
    padding-top: 12px;
}
.product-title {
    font-size: var(--font-size-base);
    font-weight: 700;
    color: var(--text-primary);
    margin: 12px 0;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.product-price {
    font-size: calc(var(--font-size-base) * 1.1);
    font-weight: 800;
    color: var(--accent-green);
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 255, 136, 0.2);
}
/* Modern carousel arrows with better icons */
.product-carousel .slick-prev,
.product-carousel .slick-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: var(--gradient-primary) !important;
    border-radius: 50% !important;
    z-index: 15;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 3px solid var(--accent-green-light) !important;
    box-shadow: 0 6px 20px rgba(0, 255, 136, 0.4);
    cursor: pointer !important;
    outline: none !important;
}
.product-carousel .slick-prev {
    right: 10px;
}
.product-carousel .slick-next {
    left: 10px;
}
.product-carousel .slick-prev:hover,
.product-carousel .slick-next:hover {
    background: var(--accent-green-dark) !important;
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 8px 30px rgba(0, 255, 136, 0.6);
}
/* Fixed arrow icons */
.product-carousel .slick-prev:before,
.product-carousel .slick-next:before {
    font-family: Arial, sans-serif !important;
    font-size: 24px !important;
    color: var(--primary-bg) !important;
    font-weight: bold !important;
    line-height: 1 !important;
    opacity: 1 !important;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.product-carousel .slick-prev:before {
    content: '\203A' !important; /* Right-pointing single angle quotation mark */
}
.product-carousel .slick-next:before {
    content: '\2039' !important; /* Left-pointing single angle quotation mark */
}
/* Enhanced dots */
.product-carousel .slick-dots {
    bottom: -50px !important;
    display: flex !important;
    justify-content: center;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
}
.product-carousel .slick-dots li button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
    text-indent: -9999px;
    overflow: hidden;
    outline: none;
}
.product-carousel .slick-dots li.slick-active button {
    background: var(--accent-green);
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}
/* Enhanced load more button */
.load-more-container {
    text-align: center;
    margin: 40px 0;
}
.load-more-btn {
    background: var(--gradient-primary);
    color: var(--primary-bg);
    border: none;
    padding: 16px 48px;
    border-radius: 30px;
    font-size: var(--font-size-base);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.3);
    transform: translateZ(0);
}
.load-more-btn:hover {
    transform: translateY(-3px) scale(1.05) translateZ(0);
    box-shadow: 0 12px 35px rgba(0, 255, 136, 0.4);
}
/* Enhanced error states */
.no-products,
.error-message {
    text-align: center;
    padding: 60px 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 2px dashed var(--border-color);
    position: relative;
}
.no-products p,
.error-message p {
    font-size: var(--font-size-base);
    color: var(--text-primary);
    margin: 15px 0;
    font-weight: 600;
}
/* Large Desktop (1920px+) */
@media (min-width: 1920px) {
    :root {
        --sidebar-width: 400px;
        --container-padding: 50px;
        --card-gap: 35px;
        --product-height: 500px;
        --font-size-base: 18px;
        --font-size-large: 28px;
        --brand-item-width: 300px;
    }
    .gift-card-main-container {
        grid-template-columns: var(--sidebar-width) 1fr; /* Restore two-column layout */
        margin: var(--container-padding);
        max-width: 1800px;
    }
    .gift-card-sidebar {
        padding: var(--container-padding);
        max-height: 85vh;
    }
    .gift-card-sidebar h4 {
        font-size: var(--font-size-large);
        margin-bottom: 30px;
        padding-bottom: 15px;
    }
    .gift-card-sidebar h4::after {
        width: 60px;
    }
    .gift-card-sidebar h4:hover::after {
        width: 80px;
    }
    #brand-list {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    .brand-item {
        padding: 18px 24px;
        border-radius: 16px;
        min-width: var(--brand-item-width);
        max-width: var(--brand-item-width);
        height: 60px;
    }
    .brand-item .brand-text {
        text-align: center;
    }
    .brand-item .brand-icon {
        font-size: 20px;
    }
    .brand-item .brand-separator {
        height: 20px;
        margin: 0 10px;
    }
    .product-carousel {
        padding: 50px 80px 100px 80px;
    }
}

/* Standard Desktop (1200px - 1919px) */
@media (min-width: 1200px) and (max-width: 1919px) {
    :root {
        --sidebar-width: 350px;
        --container-padding: 35px;
        --card-gap: 25px;
        --product-height: 450px;
        --font-size-base: 16px;
        --font-size-large: 24px;
        --brand-item-width: 280px;
    }
    .gift-card-main-container {
        grid-template-columns: var(--sidebar-width) 1fr;
        margin: var(--container-padding);
        max-width: 1800px;
    }
    .gift-card-sidebar {
        padding: var(--container-padding);
        max-height: 80vh;
    }
    .gift-card-sidebar h4 {
        font-size: var(--font-size-large);
        margin-bottom: 25px;
        padding-bottom: 12px;
    }
    .gift-card-sidebar h4::after {
        width: 55px;
    }
    .gift-card-sidebar h4:hover::after {
        width: 75px;
    }
    #brand-list {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .brand-item {
        padding: 16px 22px;
        border-radius: 14px;
        min-width: var(--brand-item-width);
        max-width: var(--brand-item-width);
        height: 56px;
    }
    .brand-item .brand-text {
        text-align: center;
    }
    .brand-item .brand-icon {
        font-size: 19px;
    }
    .brand-item .brand-separator {
        height: 19px;
        margin: 0 9px;
    }
    .product-carousel {
        padding: 35px 70px 85px 70px;
    }
}

/* Small Desktop/Large Tablet (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    :root {
        --sidebar-width: 320px;
        --container-padding: 25px;
        --card-gap: 20px;
        --product-height: 350px;
        --font-size-base: 15px;
        --font-size-large: 22px;
        --brand-item-min-width: 200px;
    }
    .gift-card-main-container {
        grid-template-columns: var(--sidebar-width) 1fr;
        margin: var(--container-padding);
        max-width: 1800px;
    }
    .gift-card-sidebar {
        padding: var(--container-padding);
        max-height: none;
        border-left: 2px solid var(--accent-green-light); /* Restore left border */
        border-bottom: none; /* Remove bottom border */
    }
    .gift-card-sidebar h4 {
        font-size: var(--font-size-large);
        margin-bottom: 20px;
        padding-bottom: 10px;
    }
    .gift-card-sidebar h4::after {
        width: 50px;
    }
    .gift-card-sidebar h4:hover::after {
        width: 70px;
    }
    #brand-list {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(var(--brand-item-min-width), 1fr)); /* Equal widths */
        gap: 10px;
        justify-content: start;
    }
    .brand-item {
        padding: 14px 18px;
        border-radius: 12px;
        text-align: center;
        justify-content: center;
        width: 100%;
        height: 60px; /* Fixed height for uniformity */
        white-space: nowrap; /* Prevent wrapping */
        overflow: hidden; /* Hide overflow */
        text-overflow: ellipsis; /* Truncate long text */
    }
    .brand-item .brand-text {
        text-align: center;
        white-space: nowrap;
    }
    .brand-item .brand-icon {
        font-size: 18px;
        margin-left: 8px;
    }
    .brand-item .brand-separator {
        height: 18px;
        margin: 0 8px;
    }
    .product-carousel {
        padding: 50px 80px 100px 80px;
    }
    .product-carousel .slick-prev,
    .product-carousel .slick-next {
        width: 45px;
        height: 45px;
    }
    .product-carousel .slick-prev:before,
    .product-carousel .slick-next:before {
        font-size: 20px !important;
    }
}

/* Tablet (768px - 991px) */
@media (max-width: 991px) {
    :root {
        --container-padding: 20px;
        --card-gap: 15px;
        --product-height: 320px;
        --font-size-base: 14px;
        --font-size-large: 20px;
        --brand-item-min-width: 180px;
    }
    .gift-card-main-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
        margin: 0;
        border-radius: 20px;
        width: 100%;
    }
    .gift-card-sidebar {
        border: 2px solid var(--accent-green-light); /* Full border */
        max-height: none;
        overflow-y: visible;
        padding: var(--container-padding);
    }
    .gift-card-sidebar h4 {
        font-size: var(--font-size-large);
        margin-bottom: 15px;
        padding-bottom: 8px;
    }
    .gift-card-sidebar h4::after {
        width: 45px;
    }
    .gift-card-sidebar h4:hover::after {
        width: 65px;
    }
    #brand-list {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(var(--brand-item-min-width), 1fr)); /* Equal widths */
        gap: 10px;
        justify-content: start;
    }
    .brand-item {
        padding: 12px 16px;
        border-radius: 10px;
        text-align: center;
        justify-content: center;
        width: 100%;
        height: 56px; /* Fixed height for uniformity */
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .brand-item .brand-text {
        text-align: center;
        white-space: nowrap;
    }
    .brand-item .brand-icon {
        font-size: 16px;
        margin-left: 6px;
    }
    .brand-item .brand-separator {
        height: 16px;
        margin: 0 6px;
    }
    #region-buttons {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 10px;
        padding: 20px;
        justify-content: start;
    }
    .region-button {
        padding: 12px 18px;
        width: auto;
    }
    .product-carousel {
        padding: 25px 50px 65px 50px;
    }
    .region-section h4 {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

/* Mobile Large (480px - 767px) */
@media (max-width: 767px) {
    :root {
        --container-padding: 24px;
        --card-gap: 12px;
        --product-height: 280px;
        --font-size-base: 13px;
        --font-size-large: 18px;
        --brand-item-min-width: 180px;
    }
    .gift-card-main-container {
        margin: 0;
        border-radius: 16px;
        width: 100%;
    }
    .gift-card-sidebar {
        padding: var(--container-padding);
        border: 2px solid var(--accent-green-light); /* Full border */
        max-height: none;
        overflow-y: visible;
    }
    .gift-card-sidebar h4 {
        font-size: var(--font-size-large);
        margin-bottom: 12px;
        padding-bottom: 6px;
    }
    .gift-card-sidebar h4::after {
        width: 40px;
    }
    .gift-card-sidebar h4:hover::after {
        width: 60px;
    }
    #brand-list {
        display: grid;
        grid-template-rows: repeat(2, auto);
        grid-auto-flow: column;
        grid-auto-columns: var(--brand-item-min-width);
        gap: 8px;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    #brand-list::-webkit-scrollbar {
        display: none;
    }
    .brand-item {
        padding: 10px 14px;
        border-radius: 8px;
        font-size: 13px;
        text-align: center;
        justify-content: center;
        height: 60px; /* Fixed height for uniformity */
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        width: 100%;
    }
    .brand-item .brand-text {
        text-align: center;
        white-space: nowrap;
    }
    .brand-item .brand-icon {
        font-size: 15px;
        margin-left: 5px;
    }
    .brand-item .brand-separator {
        height: 15px;
        margin: 0 5px;
    }
    #region-buttons {
        display: grid;
        grid-template-rows: repeat(2, auto);
        grid-auto-flow: column;
        grid-auto-columns: 100px;
        gap: 8px;
        overflow-x: auto;
        padding: 15px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    #region-buttons::-webkit-scrollbar {
        display: none;
    }
    .region-button {
        padding: 10px 14px;
        font-size: 12px;
        width: 100%;
    }
    .region-section {
        margin-bottom: 35px;
    }
    .product-carousel {
        padding: 20px 45px 60px 45px;
    }
    .product-carousel .slick-prev,
    .product-carousel .slick-next {
        width: 40px;
        height: 40px;
    }
    .product-carousel .slick-prev:before,
    .product-carousel .slick-next:before {
        font-size: 18px !important;
    }
    .product-item {
        padding: 18px;
    }
    .product-item img {
        min-height: 120px;
    }
}

/* Mobile Small (360px - 479px) */
@media (max-width: 479px) {
    :root {
        --container-padding: 20px;
        --card-gap: 10px;
        --product-height: 250px;
        --font-size-base: 12px;
        --font-size-large: 16px;
        --brand-item-min-width: 160px;
    }
    .gift-card-main-container {
        margin: 0;
        border-radius: 12px;
        width: 100%;
    }
    .gift-card-sidebar {
        padding: var(--container-padding);
        border: 2px solid var(--accent-green-light); /* Full border */
        max-height: none;
        overflow-y: visible;
    }
    .gift-card-sidebar h4 {
        font-size: var(--font-size-large);
        margin-bottom: 10px;
        padding-bottom: 5px;
    }
    .gift-card-sidebar h4::after {
        width: 35px;
    }
    .gift-card-sidebar h4:hover::after {
        width: 55px;
    }
    #brand-list {
        display: grid;
        grid-template-rows: repeat(2, auto);
        grid-auto-flow: column;
        grid-auto-columns: var(--brand-item-min-width);
        gap: 6px;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    #brand-list::-webkit-scrollbar {
        display: none;
    }
    .brand-item {
        padding: 8px 12px;
        border-radius: 6px;
        font-size: 12px;
        text-align: center;
        justify-content: center;
        height: 56px; /* Fixed height for uniformity */
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        width: 100%;
    }
    .brand-item .brand-text {
        text-align: center;
        white-space: nowrap;
    }
    .brand-item .brand-icon {
        font-size: 14px;
        margin-left: 4px;
    }
    .brand-item .brand-separator {
        height: 14px;
        margin: 0 4px;
    }
    #region-buttons {
        display: grid;
        grid-template-rows: repeat(2, auto);
        grid-auto-flow: column;
        grid-auto-columns: 80px;
        gap: 6px;
        overflow-x: auto;
        padding: 12px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    #region-buttons::-webkit-scrollbar {
        display: none;
    }
    .region-button {
        padding: 8px 12px;
        font-size: 11px;
        width: 100%;
    }
    .product-carousel {
        padding: 15px 35px 50px 35px;
    }
    .product-carousel .slick-prev,
    .product-carousel .slick-next {
        width: 35px;
        height: 35px;
    }
    .product-carousel .slick-prev {
        right: 5px;
    }
    .product-carousel .slick-next {
        left: 5px;
    }
    .product-carousel .slick-prev:before,
    .product-carousel .slick-next:before {
        font-size: 16px !important;
    }
    .product-item {
        padding: 15px;
    }
    .product-item img {
        min-height: 100px;
    }
    .product-carousel .slick-dots {
        bottom: -40px !important;
    }
    .load-more-btn {
        padding: 12px 30px;
        font-size: 13px;
    }
}

/* Extra Small Mobile (320px - 359px) */
@media (max-width: 359px) {
    :root {
        --container-padding: 18px;
        --product-height: 220px;
        --font-size-base: 11px;
        --font-size-large: 14px;
        --brand-item-min-width: 140px;
    }
    .gift-card-main-container {
        margin: 0;
        border-radius: 12px;
        width: 100%;
    }
    .gift-card-sidebar {
        padding: var(--container-padding);
        border: 2px solid var(--accent-green-light); /* Full border */
        max-height: none;
        overflow-y: visible;
    }
    .gift-card-sidebar h4 {
        font-size: var(--font-size-large);
        margin-bottom: 8px;
        padding-bottom: 4px;
    }
    .gift-card-sidebar h4::after {
        width: 30px;
    }
    .gift-card-sidebar h4:hover::after {
        width: 50px;
    }
    #brand-list {
        display: grid;
        grid-template-rows: repeat(2, auto);
        grid-auto-flow: column;
        grid-auto-columns: var(--brand-item-min-width);
        gap: 4px;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    #brand-list::-webkit-scrollbar {
        display: none;
    }
    .brand-item {
        padding: 6px 10px;
        border-radius: 6px;
        font-size: var(--font-size-base);
        text-align: center;
        justify-content: center;
        height: 52px; /* Fixed height for uniformity */
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        width: 100%;
    }
    .brand-item .brand-text {
        text-align: center;
        white-space: nowrap;
    }
    .brand-item .brand-icon {
        font-size: 13px;
        margin-left: 3px;
    }
    .brand-item .brand-separator {
        height: 13px;
        margin: 0 3px;
    }
    #region-buttons {
        display: grid;
        grid-template-rows: repeat(2, auto);
        grid-auto-flow: column;
        grid-auto-columns: 80px;
        gap: 4px;
        overflow-x: auto;
        padding: 12px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    #region-buttons::-webkit-scrollbar {
        display: none;
    }
    .region-button {
        padding: 8px 12px;
        font-size: 11px;
        width: 100%;
    }
    .product-carousel {
        padding: 12px 30px 45px 30px;
    }
    .product-carousel .slick-prev,
    .product-carousel .slick-next {
        width: 30px;
        height: 30px;
    }
    .product-carousel .slick-prev {
        right: 2px;
    }
    .product-carousel .slick-next {
        left: 2px;
    }
    .product-carousel .slick-prev:before,
    .product-carousel .slick-next:before {
        font-size: 14px !important;
    }
    .product-item {
        padding: 12px;
    }
    .product-item img {
        min-height: 90px;
    }
    .product-carousel .slick-dots {
        bottom: -35px !important;
    }
}
.product-carousel,
.product-item,
.brand-item,
.region-button {
    will-change: transform;
}
/* Smooth animations with reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --border-color: #ffffff;
        --text-primary: #ffffff;
        --accent-green: #00ff00;
    }
}
/* Dark mode support enhancement */
@media (prefers-color-scheme: dark) {
    :root {
        --primary-bg: #001a1b;
        --secondary-bg: #002d30;
    }
}