/* AEM Labs - Base CSS */
/* =================== */


@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700&display=swap');

:root {
    --max-container-width: 1600px;
    --accent-color: #a71c1c;
    --accent-color-rgb: 208, 75, 75;
    --section-max-width: 100vw;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Be Vietnam Pro', sans-serif;
}

body {
    background-color: #f8f8f8;
    font-family: 'Be Vietnam Pro', sans-serif;
    overflow-x: hidden !important;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 140px;
}

::selection {
    background-color: var(--accent-color);
    color: #fff;
}

.warp-3d {
    perspective: 1000px;
    display: inline-block;
}

.warp-3d img {
    width: 100%;
    transition: transform 0.1s ease-out;
    transform-origin: center;
    will-change: transform;
}

.section-header {
    text-align: center;
    margin-bottom: 16px;
}

.section-label {
    display: inline-block;
    background-color: #333;
    color: white;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 16px;
    border-radius: 12px;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin-bottom: 16px;
    position: relative;
    z-index: 10;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20%;
    height: 8px;
    background: linear-gradient(270deg, #a71c1c, #6907c5);
    opacity: 0.4;
    box-shadow: 0 0 10px rgba(0, 0, 0, 1);
    border-radius: 3px;
    z-index: -1;
}

.section-header p {
    font-size: 16px;
    color: #666;
    max-width: 70%;
    margin: 0 auto;
}

@media (max-width: 1400px) {
    .section-header h2 {
        font-size: 30px;
    }

    .section-label {
        margin-bottom: 12px;
    }
}

@media (max-width: 992px) {
    .section-header h2 {
        font-size: 24px;
    }

    .section-header h2::after {
        width: 30%;
    }

    .section-header p {
        max-width: 90%;
    }

    .section-label {
        font-size: 9px;
    }
}

@media (max-width: 480px) {
    .section-header h2 {
        font-size: 22px;
        width: 100%;
    }

    .section-header h2::after {
        width: 40%;
        height: 6px;
    }

    .section-header p {
        font-size: 12px;
    }

    .section-label {
        font-size: 7px;
        margin-bottom: 8px;
    }
}


/* --- Announcement Bar Start --- */
.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-spacer {
    height: 120px;
}

.announcement-bar {
    background-color: #ffe3e3;
    padding: 4px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    overflow: hidden;
}

.announcement-bar p {
    color: #333;
    height: 20px;
    display: flex;
    align-items: center;
    transform: translateY(0);
    opacity: 1;
    will-change: transform, opacity;
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 700;
}

.announcement-bar a {
    color: #333;
    text-decoration: underline;
    margin-left: 5px;
    font-weight: 500;
    text-transform: none;
}

.announcement-bar a:hover {
    text-decoration: underline;
}

.top-right-links a {
    color: #444;
    text-decoration: none;
    margin-left: 15px;
    font-size: 12px;
    font-weight: 600;
}

.top-right-links a:hover {
    text-decoration: underline;
}

/* --- Announcement Bar End --- */


/* --- Navigation Bar Start --- */
.main-nav {
    background-color: white;
    padding: 12px 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: min(90%, var(--max-container-width));
    width: 100%;
    margin: 0 auto;
}

.nav-left {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    margin-right: 20px;
}

.logo-img {
    height: 60px;
    width: auto;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    background-color: #f2f2f2;
    border-radius: 20px;
    padding: 0 15px;
    width: 400px;
}

.search-box i {
    color: #999;
    margin-right: 10px;
}

.search-box input {
    border: none;
    background: transparent;
    padding: 10px 0;
    width: 100%;
    outline: none;
    font-size: 14px;
    color: #666;
}

.nav-right {
    display: flex;
    align-items: center;
}

.start-selling {
    background: linear-gradient(270deg, #a71c1c, #6907c5, #a71c1c, #6907c5);
    background-size: 300% 100%;
    background-position: 0% 0%;
    color: white;
    border: none;
    border-radius: 16px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    margin-right: 20px;
    transition: all 0.3s ease, background-position 0.6s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    text-decoration: none;
}

.start-selling:hover {
    background-position: 100% 0%;
    transform: translateY(-2px);
}

.icon-link {
    color: #555;
    font-size: 20px;
    margin-left: 20px;
    text-decoration: none;
}

.mobile-menu-toggle {
    display: none;
}

/* --- Full Mobile Header Start --- */
.mobile-categories-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 80%;
    height: 100vh;
    background: white;
    z-index: 999999 !important;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
}

.mobile-categories-nav.active {
    transform: translateX(0);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-categories-container {
    padding: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: #f8f8f8;
}

.mobile-menu-header {
    background: var(--accent-color);
    padding: 6px 20px 6px 12px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.mobile-menu-header img {
    height: 45px;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 18px;
    color: white;
    cursor: pointer;
}

.mobile-nav-content {
    flex: 1;
    overflow-y: auto;
}

.mobile-nav-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-nav-item:last-child {
    border-bottom: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.mobile-nav-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    background: white;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.mobile-nav-link:hover {
    background: rgba(167, 28, 28, 0.05);
    color: var(--accent-color);
    padding-left: 25px;
}

.mobile-nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.mobile-nav-link:hover::before {
    width: 4px;
}

.mobile-nav-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
    color: #666;
}

.mobile-nav-arrow.rotated {
    transform: rotate(180deg);
    color: var(--accent-color);
}

.mobile-dropdown {
    background: #f8f9fa;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 3px solid transparent;
}

.mobile-dropdown.open {
    max-height: 400px;
    border-left-color: rgba(167, 28, 28, 0.3);
}

.mobile-dropdown-item {
    padding: 12px 40px;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    display: block;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    position: relative;
}

.mobile-dropdown-item:hover {
    background: #e9ecef;
    color: var(--accent-color);
    padding-left: 45px;
}

.mobile-dropdown-item:last-child {
    border-bottom: none;
}

.notification-center {
    width: 90vw;
    max-width: 350px;
    right: -20px;
    max-height: 400px;
}

@media (max-width: 992px) {
    .announcement-bar {
        padding: 4px 12px;
    }

    .announcement-bar p {
        font-size: 10px;
    }

    .top-right-links a {
        font-size: 10px;
        margin-left: 6px;
    }
}

@media (max-width: 768px) {
    .user-dropdown-menu {
        right: -10px;
        min-width: 160px;
    }

    .user-speech-bubble {
        right: -10px;
    }

    .user-dropdown-item {
        padding: 10px 16px;
        font-size: 13px;
    }

    .fixed-header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
    }

    .header-spacer {
        height: 150px;
    }

    .announcement-bar {
        padding: 3px 15px;
        font-size: 12px;
    }

    .announcement-bar p {
        font-size: 8px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        flex: 1;
    }

    .top-right-links {
        display: none;
    }

    .main-nav {
        padding: 8px 15px 0 !important;
    }

    .nav-container {
        flex-direction: column;
        gap: 12px;
        max-width: 100%;
        padding: 0;
    }

    .nav-left {
        width: 100%;
        justify-content: space-between;
        align-items: center;
    }

    .logo {
        margin-right: 0;
    }

    .logo-img {
        height: 50px;
    }

    .search-box {
        width: 200px;
        padding: 0 12px;
    }

    .search-box input {
        padding: 8px 0;
        font-size: 12px;
    }

    .search-box i {
        font-size: 14px;
    }

    .mobile-menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 24px;
        color: #333;
        cursor: pointer;
        padding: 5px;
        margin-left: 10px;
        transition: all 0.3s ease;
        z-index: 10001;
        position: relative;
    }

    .mobile-menu-toggle:hover {
        color: var(--accent-color);
        transform: scale(1.1);
    }

    .categories-nav {
        display: none;
    }

    .nav-right {
        width: 100%;
        justify-content: center;
        gap: 20px;
        padding: 10px 0;
        border-top: 1px solid #f0f0f0;
        margin: 0;
    }

    .start-selling {
        padding: 8px 16px;
        font-size: 12px;
        margin-right: 0;
    }

    .icon-link {
        font-size: 18px;
        margin-left: 0;
        margin-right: 0;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 40px;
    }
}

/* --- Full Mobile Header End --- */


/* --- Categories Navigation Start --- */
.categories-nav {
    background-color: white;
    padding: 4px 30px;
    border-bottom: 1px solid #eee;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 100;
}

.categories-container {
    display: flex;
    max-width: min(90%, var(--max-container-width));
    width: 100%;
    margin: 0 auto;
    position: relative;
}

.category-link {
    color: #333;
    text-decoration: none;
    font-weight: 700;
    margin-right: 25px;
    font-size: 12px;
    padding: 5px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-block;
}

.category-link:hover {
    color: var(--accent-color);
    background: rgba(167, 28, 28, 0.05);
}

.nav-badge {
    background-color: white;
    color: white;
    font-size: 10px;
    padding: 0;
    border-radius: 10px;
    position: relative;
    top: -1px;
}

.countdown-timer {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 8px;
    position: relative;
    top: -1px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
    animation: pulse-glow 2s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 0 0 0 rgba(255, 107, 107, 0.7);
    }

    100% {
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 0 0 4px rgba(255, 107, 107, 0);
    }
}

.countdown-timer:hover {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

@media (max-width: 992px) {
    .main-nav {
        padding: 12px 20px;
    }

    .nav-container {
        margin: 0;
        max-width: 100%;
        justify-content: space-between;
    }

    .search-box {
        width: 250px;
    }

    .start-selling {
        margin: 0;
        font-size: 12px;
    }

    .categories-nav {
        padding: 0
    }

    .categories-container {
        justify-content: space-between;
    }

    .category-link {
        margin: 0;
    }

    .nav-badge {
        font-size: 8px;
    }
}

@media (max-width: 480px) {
    .search-box {
        width: 180px;
    }

    .search-box input {
        padding: 6px 0;
        font-size: 10px;
        font-weight: 500;
    }

    .search-box i {
        font-size: 11px;
        font-weight: 500;
    }
}

/* --- Categories Navigation End --- */


/* --- Navigation Dropdown Menus Start --- */
.category-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: fixed;
    top: 140px;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: var(--max-container-width);
    overflow: hidden;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid white;
    filter: drop-shadow(0 -2px 4px rgba(0, 0, 0, 0.1));
}

.category-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-content {
    display: grid;
    grid-template-columns: 1fr 700px;
    gap: 0;
    min-height: 320px;
}

.dropdown-links {
    padding: 25px 30px;
    border-right: 1px solid #f0f0f0;
}

.dropdown-header-section {
    margin-bottom: 16px;
}

.dropdown-section {
    display: grid;
    grid-template-rows: repeat(5, auto);
    grid-auto-flow: column;
    gap: 8px 24px;
    align-items: start;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.dropdown-header {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-color);
    text-decoration: none;
    padding: 0 0 12px 0;
    border-bottom: 2px solid rgba(167, 28, 28, 0.1);
    margin-bottom: 12px;
    transition: all 0.3s ease;
    display: block;
}

.dropdown-header:hover {
    color: #8b1515;
    border-bottom-color: rgba(167, 28, 28, 0.3);
    transform: translateX(4px);
}

.dropdown-item {
    font-size: 14px;
    font-weight: 500;
    color: #444;
    text-decoration: none;
    padding: 10px 0;
    padding-left: 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: block;
    position: relative;
}

.dropdown-item:hover {
    color: var(--accent-color);
    background: rgba(167, 28, 28, 0.05);
    transform: translateX(8px);
    padding-left: 20px;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--accent-color);
    border-radius: 2px;
    transition: height 0.3s ease;
}

.dropdown-item:hover::before {
    height: 20px;
}

.dropdown-promo {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 20px;
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.dropdown-promo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}

.promo-title {
    font-size: 12px;
    font-weight: 700;
    color: #333;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

.promo-description {
    font-size: 11px;
    color: #666;
    margin: 12px 0 0 0;
    line-height: 1.4;
    text-align: center;
}

.dropdown-promo-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.05);
    width: 80%;
}

.dropdown-promo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.promo-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

@media (max-width: 1400px) {
    .dropdown-menu {
        min-width: min(90%, var(--max-container-width));
    }

    .dropdown-content {
        grid-template-columns: 1fr 550px;
        min-height: 0;
    }

    .dropdown-section {
        grid-template-rows: repeat(4, auto);
        gap: 6px 20px;
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }

    .dropdown-item {
        font-size: 13px;
    }

    .dropdown-promo {
        padding: 18px;
        gap: 16px;
    }

    .dropdown-promo-card .promo-image {
        height: 130px;
    }

    .dropdown-promo-card .promo-title {
        font-size: 11px;
    }
}

@media (max-width: 1024px) {


    .dropdown-content {
        grid-template-columns: 1fr 280px;
    }

    .dropdown-links {
        padding: 20px 25px;
    }

    .dropdown-section {
        grid-template-rows: repeat(4, auto);
        gap: 6px 12px;
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }

    .dropdown-promo {
        padding: 16px;
    }

    .promo-image {
        height: 80px;
    }

    .promo-title {
        font-size: 11px;
        margin-bottom: 10px;
    }

    .promo-description {
        font-size: 10px;
        margin-top: 10px;
    }
}

@media (max-width: 768px) {
    .dropdown-menu {
        position: fixed;
        top: 120px;
        left: 0;
        right: 0;
        min-width: unset;
        width: 100%;
        max-height: calc(100vh - 140px);
        overflow-y: auto;
        border-radius: 0;
        transform: translateY(0);
    }

    .dropdown-menu::before {
        display: none;
    }

    .dropdown-content {
        grid-template-columns: 1fr;
        gap: 0;
        min-height: auto;
    }

    .dropdown-links {
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
        padding: 20px;
    }

    .dropdown-section {
        grid-template-rows: repeat(3, auto);
        grid-auto-flow: column;
        gap: 4px 12px;
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .dropdown-promo {
        background: #f8f9fa;
        padding: 20px;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .dropdown-promo-card {
        min-height: auto;
    }

    .promo-image {
        height: 50px;
    }

    .promo-title {
        font-size: 10px;
    }

    .promo-description {
        font-size: 9px;
        margin-top: 6px;
    }
}

@media (max-width: 480px) {
    .dropdown-promo {
        grid-template-columns: 1fr;
        padding: 15px;
    }

    .dropdown-links {
        padding: 15px;
    }

    .dropdown-section {
        grid-template-rows: repeat(3, auto);
        grid-auto-flow: column;
        gap: 4px 8px;
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }

    .dropdown-header {
        font-size: 15px;
        padding: 10px 0;
    }

    .dropdown-item {
        font-size: 13px;
        padding: 8px 0;
    }
}

/* Hide dropdowns when not needed */
.category-dropdown:not(:hover) .dropdown-menu {
    pointer-events: none;
}

.category-dropdown:hover .dropdown-menu {
    pointer-events: all;
}

/* Ensure countdown timer is visible in dropdown */
.dropdown-menu .countdown-timer {
    position: relative;
    z-index: 1;
}

/* --- Navigation Dropdown Menus End --- */


/* --- Account Authentication Modal Start --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
    display: flex;
}

.modal-overlay.active .modal-container {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 1;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: scale(1.1) rotate(90deg);
}

.modal-close i {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
}

.modal-content {
    display: flex;
    width: 100%;
    min-height: 75vh;
}

.modal-form-section {
    flex: 1;
    position: relative;
    overflow: hidden;
    max-height: 90vh;
}

.modal-image-section {
    flex: 1;
    position: relative;
    background: linear-gradient(135deg, #6907c5, #a71c1c);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
}

.auth-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    background: url('/static/img/futuristic-mouse.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.auth-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(105, 7, 197, 0.35), rgba(167, 28, 28, 0.5));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.auth-image-content {
    text-align: center;
    color: white;
}

.auth-image-content h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 15px 0;
    line-height: 1.2;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

.auth-image-content p {
    font-size: 14px;
    margin: 0 0 30px 0;
    opacity: 0.9;
    line-height: 1.5;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

.auth-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

.auth-feature i {
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

.auth-logo-container {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.auth-logo {
    height: 60px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
}

.auth-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

.auth-form {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.4s ease;
    pointer-events: none;
    overflow-y: auto;
    padding: 22px 30px;
    box-sizing: border-box;
}

.auth-form::-webkit-scrollbar {
    width: 5px;
}

.auth-form::-webkit-scrollbar-thumb {
    background: var(--accent-color);
}

.auth-form::-webkit-scrollbar-thumb:hover {
    background: #6907c5;
}

.auth-form.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: all;
}

.auth-form.slide-out-left {
    transform: translateX(-100%);
}

.auth-form.slide-out-right {
    transform: translateX(100%);
}

.auth-header {
    text-align: center;
    margin-bottom: 20px;
}

.auth-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #222;
    margin: 0 0 8px 0;
}

.auth-header p {
    color: #666;
    font-size: 13px;
    margin: 0;
}

.form-container {
    width: 100%;
}

.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
    font-size: 11px;
}

.input-group input {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 13px;
    transition: all 0.3s ease;
    background: #f9f9f9;
    box-sizing: border-box;
}

.input-group input:focus {
    outline: none;
    border-color: var(--accent-color, #6907c5);
    background: white;
    box-shadow: 0 0 0 3px rgba(105, 7, 197, 0.1);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 10px;
}

#login-form .checkbox-container {
    padding-left: 24px;
}

#login-form .checkbox-container,
#signup-form .checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 11px;
    color: #555;
    position: relative;
    gap: 2px;
}

#login-form .checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

#login-form .checkmark {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 16px;
    width: 16px;
    background-color: #f9f9f9;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    transition: all 0.2s ease;
    margin: 0;
}

#login-form .checkbox-container:hover .checkmark {
    border-color: var(--accent-color, #6907c5);
}

#login-form .checkbox-container input:checked~.checkmark {
    background-color: var(--accent-color, #6907c5);
    border-color: var(--accent-color, #6907c5);
}

#login-form .checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

#login-form .checkbox-container input:checked~.checkmark:after {
    display: block;
}

.forgot-password {
    color: var(--accent-color, #6907c5);
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.forgot-password:hover {
    color: #a71c1c;
    text-decoration: underline;
}

.terms-link {
    color: var(--accent-color, #6907c5);
    text-decoration: none;
    font-weight: 500;
    font-size: 11px;
}

.terms-link:hover {
    text-decoration: underline;
}

.auth-submit-btn {
    width: 100%;
    background: linear-gradient(270deg, #a71c1c, #6907c5, #a71c1c, #6907c5);
    background-size: 300% 100%;
    background-position: 0% 0%;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease, background-position 0.6s ease;
    box-shadow: 0 4px 15px rgba(105, 7, 197, 0.3);
}

.auth-submit-btn:hover {
    background-position: 100% 0%;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(105, 7, 197, 0.4);
}

.auth-divider {
    text-align: center;
    margin: 16px 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e0e0e0;
}

.auth-divider span {
    background: white;
    color: #999;
    padding: 0 15px;
    font-size: 12px;
    position: relative;
    z-index: 1;
}

.google-auth {
    text-decoration: none;
}

.google-auth-btn {
    width: 100%;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #333;
}

.google-auth-btn:hover {
    border-color: #ccc;
    background: #f9f9f9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.google-auth-btn i {
    color: #4285f4;
    font-size: 18px;
}

.auth-switch {
    text-align: center;
    padding-top: 12px;
}

.auth-switch p {
    color: #666;
    font-size: 12px;
    margin: 0;
}

.auth-switch a {
    color: var(--accent-color, #6907c5);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.auth-switch a:hover {
    color: #a71c1c;
    text-decoration: underline;
}

#forgot-password-form .auth-switch a {
    margin-top: 16px;
}


body.modal-open {
    overflow: hidden;
}

@media (max-width: 1400px) {
    .modal-container {
        max-width: 900px;
        width: 85%;
    }

    .modal-content {
        min-height: 85vh;
    }
}

@media (max-width: 992px) {
    .modal-container {
        max-width: 800px;
        width: 90%;
        max-height: 60vh;
    }

    .modal-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        min-height: 60vh;
        max-height: 80vh;
    }

    .modal-image-section {
        min-height: auto;
        max-height: 80vh;
    }

    .auth-image-content h3 {
        font-size: 22px;
        margin-bottom: 12px;
    }

    .auth-image-content p {
        font-size: 14px;
        margin-bottom: 25px;
    }

    .auth-features {
        gap: 16px;
    }

    .auth-feature {
        font-size: 14px;
        gap: 12px;
        text-align: left;
    }

    .auth-feature i {
        width: 20px;
        height: 20px;
        font-size: 11px;
    }

    .auth-submit-btn {
        padding: 10px;
        font-size: 15px;
    }

    .google-auth-btn {
        padding: 10px;
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .modal-container {
        width: 95%;
        max-height: 85vh;
        margin: 20px;
        flex-direction: column;
        max-width: 500px;
        display: flex;
    }

    .modal-content {
        flex-direction: column;
        min-height: auto;
        display: flex;
        grid-template-columns: none;
        flex: 1;
    }

    .modal-form-section {
        overflow: hidden;
        position: relative;
        flex: 1;
        min-height: 75vh;
    }

    .auth-form {
        padding: 25px 20px;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        overflow-y: auto;
        opacity: 0;
        transform: translateX(100%);
        transition: all 0.3s ease;
        pointer-events: none;
        box-sizing: border-box;
        background: white;
    }

    .auth-form.active {
        opacity: 1;
        transform: translateX(0);
        pointer-events: all;
    }

    .auth-form.slide-out-left {
        transform: translateX(-100%);
    }

    .auth-form.slide-out-right {
        transform: translateX(100%);
    }

    .modal-image-section {
        display: none;
    }

    .input-group {
        margin-bottom: 16px;
    }
}

@media (max-width: 480px) {
    .modal-container {
        width: 95%;
        max-width: 420px;
        margin: 10px;
        border-radius: 12px;
    }

    .modal-form-section {
        min-height: 80vh;
    }

    .modal-close {
        top: 15px;
        right: 15px;
        width: 26px;
        height: 26px;
    }

    .modal-close i {
        font-size: 14px;
    }

    .auth-form {
        padding: 25px 20px;
    }

    .auth-header h2 {
        font-size: 18px;
    }

    .auth-header p {
        font-size: 11px;
    }

    .form-options {
        margin-bottom: 20px;
        gap: 12px;
    }

    .input-group input {
        padding: 8px 10px;
        border-radius: 10px;
        font-size: 11px;
    }

    #login-form .checkbox-container {
        font-size: 11px;
        padding-left: 20px;
    }

    #signup-form .checkbox-container,
    #signup-form .terms-link {
        font-size: 11px !important;
    }

    .forgot-password {
        font-size: 11px;
    }

    .auth-submit-btn,
    .google-auth-btn {
        padding: 10px;
        font-size: 12px;
        border-radius: 10px;
    }

    .auth-divider {
        margin: 12px 0;
    }

    .terms-link {
        font-size: 11px;
    }

    #login-form .checkmark {
        height: 14px;
        width: 14px;
    }

    #login-form .checkmark:after {
        left: 3px;
        top: 0px;
        width: 4px;
        height: 7px;
    }
}

/* --- Account Authentication Modal End --- */


/* --- Newsletter Section Start --- */
.newsletter-section {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.85)), url('/static/img/stock-images/0001.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 80px 30px;
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(105, 7, 197, 0.15), rgba(167, 28, 28, 0.15));
    pointer-events: none;
}

.newsletter-container {
    max-width: min(90%, var(--max-container-width));
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-title {
    font-size: 32px;
    font-weight: 700;
    color: white;
    margin: 0 0 16px 0;
    line-height: 1.2;
}

.newsletter-description {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 40px 0;
    line-height: 1.5;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.newsletter-input-wrapper {
    display: flex;
    width: 100%;
    max-width: 480px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.newsletter-input-wrapper:focus-within {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 20px rgba(105, 7, 197, 0.3);
    transform: translateY(-2px);
}

.newsletter-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 16px 20px;
    color: white;
    font-size: 16px;
    outline: none;
    font-family: 'Be Vietnam Pro', sans-serif;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-btn {
    background: linear-gradient(270deg, #a71c1c, #6907c5);
    background-size: 200% 100%;
    background-position: 0% 0%;
    color: white;
    border: none;
    border-radius: 40px;
    padding: 16px 32px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-family: 'Be Vietnam Pro', sans-serif;
    white-space: nowrap;
}

.newsletter-btn:hover {
    background-position: 100% 0%;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.newsletter-btn i {
    transition: transform 0.3s ease;
}

.newsletter-btn:hover i {
    transform: translateX(4px);
}

.newsletter-privacy {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    text-align: center;
}

@media (max-width: 1400px) {
    .newsletter-section {
        padding: 50px 0;
    }

    .newsletter-description {
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .newsletter-section {
        padding: 60px 0;
    }

    .newsletter-title {
        font-size: 26px;
    }

    .newsletter-description {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .newsletter-input-wrapper {
        flex-direction: column;
        gap: 12px;
        padding: 12px;
        border-radius: 20px;
    }

    .newsletter-input {
        padding: 14px 16px;
        text-align: center;
        background: rgba(0, 0, 0, 0.2);
        border-radius: 12px;
    }

    .newsletter-btn {
        border-radius: 16px;
        padding: 14px 24px;
        justify-content: center;
        width: 80%;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .newsletter-section {
        padding: 40px 0;
        background-attachment: scroll;
    }

    .newsletter-title {
        font-size: 18px;
    }

    .newsletter-description {
        font-size: 12px;
        width: 90%;
        margin: 0 auto 20px;
    }

    .newsletter-input-wrapper {
        width: 80%;
        gap: 12px;
    }

    .newsletter-input {
        font-size: 13px;
        width: 100%;
        margin: 0 auto;
    }

    .newsletter-btn {
        font-size: 13px;
        padding: 12px 20px;
    }

    .newsletter-privacy {
        font-size: 10px;
    }
}

/* --- Newsletter Section End --- */


/* --- Footer Section Start --- */
.footer-section {
    color: white;
    padding: 60px 30px 0;
}

.footer-container {
    max-width: min(90%, var(--max-container-width));
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 50px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.footer-logo {
    display: flex;
    align-items: center;
}

.footer-logo-img {
    height: 85px;
    width: auto;
}

.footer-brand-text {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;
    color: rgba(0, 0, 0, 0.8);
    margin: 0;
    max-width: 350px;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.social-link {
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(0, 0, 0, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.social-link:hover {
    background: linear-gradient(135deg, #6907c5, #a71c1c);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(105, 7, 197, 0.3);
    border-color: transparent;
}

.social-link i {
    font-size: 18px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-column-title {
    font-size: 18px;
    font-weight: 600;
    color: black;
    margin: 0 0 8px 0;
    position: relative;
}

.footer-column-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30%;
    height: 6px;
    background: linear-gradient(270deg, #a71c1c, #6907c5);
    opacity: 0.4;
    box-shadow: 0 0 10px rgba(0, 0, 0, 1);
    border-radius: 3px;
    z-index: -1;
}

.footer-column-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-column-links li a {
    color: rgba(0, 0, 0, 0.7);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: block;
    padding: 4px 0;
}

.footer-column-links li a:hover {
    color: var(--accent-color);
    transform: translateX(4px);
}

.footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding: 30px 0;
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: min(90%, var(--max-container-width));
    margin: 0 auto;
}

.footer-legal p {
    margin: 0;
    color: rgba(0, 0, 0, 0.6);
    font-size: 14px;
    font-weight: 600;
}

.footer-legal-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.legal-link {
    color: rgba(0, 0, 0, 0.7);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.legal-link:hover {
    color: var(--accent-color);
}

.legal-separator {
    color: rgba(0, 0, 0, 0.4);
    font-size: 14px;
}

@media (max-width: 1400px) {
    .footer-column-title::after {
        width: 50%;
    }
}

@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 992px) {
    .footer-column-title::after {
        width: 20%;
    }

    .footer-logo-img {
        height: 85px !important;
    }
}

@media (max-width: 768px) {
    .footer-section {
        padding: 50px 20px 0;
    }

    .footer-content {
        gap: 35px;
        margin-bottom: 40px;
    }

    .footer-logo-img {
        height: 80px !important;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .footer-column-title {
        font-size: 16px;
    }

    .footer-social {
        gap: 12px;
    }

    .social-link {
        width: 40px;
        height: 40px;
    }

    .social-link i {
        font-size: 16px;
    }

    .footer-bottom-container {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer-section {
        padding: 40px 15px 0;
    }

    .footer-logo-img {
        height: 70px !important;
    }

    .footer-column-links {
        gap: 8px;
    }

    .footer-column-title {
        font-size: 14px;
        margin-bottom: 0;
    }

    .footer-column-title::after {
        width: 25%;
    }

    .footer-links {
        gap: 20px;
    }

    .footer-brand {
        gap: 16px;
    }

    .footer-brand-text {
        font-size: 13px;
    }

    .footer-column-links li a {
        font-size: 12px;
    }

    .footer-bottom {
        padding: 25px 0;
    }

    .footer-legal p,
    .legal-link {
        font-size: 12px;
    }
}

/* --- Footer Section End --- */

.user-dropdown {
    position: relative;
    display: inline-block;
}

.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    min-width: 180px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-top: 8px;
}

.user-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 15px;
    width: 12px;
    height: 12px;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: none;
    border-right: none;
    transform: rotate(45deg);
    z-index: 1001;
}

.user-dropdown:hover .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-content {
    padding: 0;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.user-dropdown-item:hover {
    background: #f8f9fa;
    color: var(--accent-color);
}

.user-dropdown-item i {
    font-size: 16px;
    width: 16px;
    text-align: center;
}

.user-dropdown-item.logout-item:hover {
    background: #fff5f5;
    color: var(--accent-color);
}

.user-speech-bubble {
    position: absolute;
    top: 100%;
    right: -25%;
    background: #333;
    color: white;
    border-radius: 12px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 8px;
    white-space: nowrap;
    pointer-events: none;
}

.user-speech-bubble-content {
    position: relative;
    z-index: 2;
}

.speech-bubble-arrow {
    position: absolute;
    top: -6px;
    right: 15px;
    width: 12px;
    height: 12px;
    background: #333;
    transform: rotate(45deg);
    z-index: 1;
}

.user-dropdown:hover .user-speech-bubble {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown .icon-link:hover {
    color: var(--accent-color);
    transform: scale(1.1);
    transition: all 0.3s ease;
}


/* --- Universal Product Carousel Component Start --- */
.carousel-container {
    position: relative;
    border-radius: 18px;
    background-color: white;
    padding: 25px;
    width: 100%;
    overflow: hidden;
    max-width: min(90%, var(--section-max-width));
    margin: 15px auto;
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15);
}

.carousel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.carousel-header h3 {
    font-size: 20px;
    color: #333;
}

.see-all-link {
    color: #6907c5;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.2s;
}

.see-all-link:hover {
    color: #a71c1c;
}

.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.carousel-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
    padding: 10px 0;
    scroll-behavior: smooth;
    width: 100%;
    flex-wrap: nowrap;
}

.carousel-track::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari/Opera */
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: all 0.2s;
}

.carousel-arrow:hover {
    background-color: #f5f5f5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.carousel-prev {
    left: -15px;
}

.carousel-next {
    right: -15px;
}

.carousel-container .product-card {
    min-width: 220px;
    max-width: 220px;
    border-radius: 10px;
    overflow: hidden;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s, box-shadow 0.3s;
}

.carousel-container .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.carousel-container .product-image {
    height: 150px;
    overflow: hidden;
    position: relative;
}

.carousel-container .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.carousel-container .product-card:hover .product-image img {
    transform: scale(1.05);
}

.carousel-container .product-details {
    padding: 15px;
    position: relative;
}

.carousel-container .product-title {
    font-size: 14px;
    margin: 0 0 10px 0;
    color: #333;
    line-height: 1.4;
}

.carousel-container .product-card:hover .product-link,
.carousel-container .product-card:hover .product-seller {
    color: var(--accent-color);
}

.carousel-container .product-link,
.carousel-container .seller-link {
    text-decoration: none;
    color: #333;
}

.carousel-container .product-specs {
    font-size: 12px;
    color: #555;
    margin-bottom: 8px;
    line-height: 1.3;
}

.carousel-container .product-price {
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 5px;
    font-size: 16px;
}

.carousel-container .product-seller {
    font-size: 12px;
    color: #777;
}

.carousel-container .wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: white;
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    z-index: 2;
}

.carousel-container .wishlist-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 7px rgba(0, 0, 0, 0.2);
}

.carousel-container .wishlist-btn i {
    color: #777;
    font-size: 14px;
    transition: color 0.2s;
}

.carousel-container .wishlist-btn:hover i {
    color: var(--accent-color);
}

.carousel-container .wishlist-btn.active i {
    color: var(--accent-color);
    font-weight: 900;
}

.carousel-container .add-to-cart-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: linear-gradient(270deg, #a71c1c, #6907c5, #a71c1c, #6907c5);
    background-size: 300% 100%;
    background-position: 0% 0%;
    color: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    width: 30px;
    height: 30px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease, background-position 0.6s ease;
}

.carousel-container .add-to-cart-btn:hover {
    background-position: 100% 0%;
    transform: scale(1.1);
}

@media (max-width: 1400px) {
    .carousel-container {
        padding: 20px;
    }

    .carousel-header h3 {
        font-size: 18px;
    }

    .carousel-container .product-card {
        min-width: 200px;
        max-width: 200px;
        border-radius: 16px;
    }

    .carousel-container .product-details {
        padding: 12px;
    }

    .carousel-container .product-image {
        height: 120px;
    }

    .carousel-container .product-title {
        margin-bottom: 4px;
    }

    .carousel-container .carousel-arrow {
        width: 38px;
        height: 38px;
    }
}

@media (max-width: 992px) {
    .carousel-container {
        padding: 18px;
        order: 2;
        max-width: min(95%, var(--section-max-width));
    }

    .carousel-header {
        margin-bottom: 2px;
    }

    .carousel-header h3 {
        font-size: 20px;
    }

    .carousel-container .see-all-link {
        font-size: 13px;
    }

    .carousel-container .product-card {
        min-width: 185px;
        max-width: 185px;
    }

    .carousel-container .product-image {
        height: 140px;
    }

    .carousel-container .product-details {
        padding: 12px;
    }

    .carousel-container .product-title {
        font-size: 13px;
    }

    .carousel-container .product-price {
        font-size: 15px;
    }

    .carousel-container .carousel-arrow {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .carousel-container .carousel-prev {
        left: -12px;
    }

    .carousel-container .carousel-next {
        right: -12px;
    }
}

@media (max-width: 768px) {
    .carousel-container {
        padding: 15px;
        border-radius: 14px;
    }

    .carousel-container .see-all-link {
        font-size: 12px;
    }

    .carousel-container .product-card {
        min-width: 165px;
        max-width: 165px;
        border-radius: 8px;
    }

    .carousel-container .product-image {
        height: 125px;
    }

    .carousel-container .product-details {
        padding: 10px;
    }

    .carousel-container .product-title {
        font-size: 12px;
        margin-bottom: 8px;
    }

    .carousel-container .product-price {
        font-size: 14px;
    }

    .carousel-container .product-seller {
        font-size: 11px;
    }

    .carousel-container .carousel-arrow {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .carousel-container .carousel-prev {
        left: -10px;
    }

    .carousel-container .carousel-next {
        right: -10px;
    }

    .carousel-container .wishlist-btn {
        width: 24px;
        height: 24px;
    }

    .carousel-container .wishlist-btn i {
        font-size: 12px;
    }

    .carousel-container .add-to-cart-btn {
        width: 26px;
        height: 26px;
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .carousel-container {
        padding: 12px;
        border-radius: 12px;
    }

    .carousel-track {
        gap: 10px;
    }

    .carousel-header {
        gap: 5px;
    }

    .carousel-header h3 {
        font-size: 14px;
        padding-left: 4px;
    }

    .carousel-container .see-all-link {
        font-size: 11px;
    }

    .carousel-container .product-card {
        min-width: 145px;
        max-width: 145px;
        border-radius: 6px;
    }

    .carousel-container .product-image {
        height: 110px;
    }

    .carousel-container .product-details {
        padding: 8px;
    }

    .carousel-container .product-title {
        font-size: 11px;
        margin-bottom: 6px;
        line-height: 1.3;
    }

    .carousel-container .product-price {
        font-size: 13px;
        margin-bottom: 3px;
    }

    .carousel-container .product-seller {
        font-size: 10px;
    }

    .carousel-container .carousel-arrow {
        width: 28px;
        height: 28px;
        font-size: 10px;
    }

    .carousel-container .carousel-prev {
        left: -8px;
    }

    .carousel-container .carousel-next {
        right: -8px;
    }

    .carousel-container .wishlist-btn {
        width: 22px;
        height: 22px;
        top: 8px;
    }

    .carousel-container .wishlist-btn {
        right: 8px;
    }

    .carousel-container .wishlist-btn i {
        font-size: 10px;
    }

    .carousel-container .add-to-cart-btn {
        width: 24px;
        height: 24px;
        font-size: 9px;
        bottom: 8px;
        right: 8px;
    }
}

/* --- Universal Product Carousel Component End --- */