/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --dark-gray: #1a1a1a;
    --light-gray: #f5f5f5;
    --white: #ffffff;
    --black: #000000;
    --accent: #333333;
    --text-dark: #2c2c2c;
    --text-light: #666666;
}

body {
    font-family: 'Lexend', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    padding-top: 0;
}

/* Global Link Styles - All links black */
a {
    color: var(--black) !important;
    text-decoration: underline;
}

a:link,
a:visited {
    color: var(--black) !important;
}

a:hover,
a:active {
    color: var(--dark-gray) !important;
}

/* Exceptions for specific link types */
.product-card a,
.header-link {
    text-decoration: none;
}

/* Top bar and footer links - white */
.top-bar a,
.top-bar .phone-link,
.top-bar .social-icon,
.footer-section a,
.footer-section .phone-link,
.footer-section .social-icon {
    color: var(--white) !important;
    text-decoration: none;
}

.product-card a:hover,
.header-link:hover,
.phone-link:hover,
.footer-section a:hover,
.top-bar a:hover {
    text-decoration: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Bar */
.top-bar {
    background-color: var(--black);
    color: var(--white);
    padding: 8px 0;
    font-size: 14px;
}

.top-bar a,
.top-bar .phone-link,
.top-bar .social-icon {
    color: var(--white) !important;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.top-bar-left,
.top-bar-center,
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-bar-center {
    flex: 1;
    justify-content: center;
    text-align: center;
}

/* Mobile Top Bar (reordered) */
.top-bar-mobile {
    display: none;
    flex-direction: column;
    gap: 8px;
    text-align: center;
    padding: 10px 0;
}

.top-bar-mobile-text {
    font-weight: 500;
}

.top-bar-mobile-phone {
    display: flex;
    justify-content: center;
    align-items: center;
}

.top-bar-mobile-social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.phone-link {
    color: var(--white) !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.social-icon {
    color: var(--white) !important;
    transition: transform 0.3s ease;
    display: inline-block;
}

@media (hover: hover) and (pointer: fine) {
    .social-icon:hover {
        transform: scale(1.2);
    }
}

/* Header */
.header {
    background-color: var(--white);
    color: var(--dark-gray);
    padding: 5px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.header-logo img {
    height: 120px;
    width: auto;
}

.desktop-nav {
    display: none;
    gap: 30px;
}

.nav-item {
    color: var(--dark-gray);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 5px 10px;
    transition: color 0.3s ease;
    z-index: 10;
    display: inline-block;
}

.nav-item::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: #1a4370;
    border-radius: 8px;
    transition: width 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
    z-index: -1;
    transform: scale(0.95);
}

@media (hover: hover) and (pointer: fine) {
    .nav-item:hover {
        color: var(--white) !important;
        transform: scale(1.05);
        position: relative;
        z-index: 10;
    }
    
    .nav-item:hover::before {
        width: 100%;
        opacity: 1;
        transform: scale(1);
        z-index: -1;
    }
}

.header-actions {
    display: none;
    align-items: center;
    gap: 15px;
}

.header-link {
    color: var(--white) !important;
    text-decoration: none;
    font-size: 14px;
}

.search-icon-btn {
    position: relative;
    background: none !important;
    border: none !important;
    padding: 5px;
    cursor: pointer;
    color: var(--dark-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.cart-icon-wrapper {
    position: relative;
}

.cart-icon {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--dark-gray);
    padding: 5px;
    display: flex;
    align-items: center;
    position: relative;
    transition: transform 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
    .search-icon-btn:hover,
    .cart-icon:hover {
        transform: scale(1.15);
    }
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--accent);
    color: var(--white);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background-color: var(--dark-gray);
}

.mobile-nav-row {
    display: none;
}

.mobile-nav-row-second {
    display: none;
    justify-content: space-between;
    align-items: center;
    margin-top: 1px;
    gap: 1px;
    padding-top: 1px;
    border-top: 1px solid var(--light-gray);
}

.mobile-auth-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.mobile-header-icons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.mobile-header-link {
    color: var(--white) !important;
    text-decoration: none;
    font-size: 14px;
}

.mobile-cart {
    margin: 0;
}

/* Offcanvas Overlay - Dims background */
.offcanvas-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
    z-index: 1999;
    pointer-events: none;
    display: none;
}

.offcanvas-overlay.active {
    background: rgba(0, 0, 0, 0.5);
    pointer-events: auto;
}

/* Offcanvas */
.offcanvas {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 70%;
    max-width: 400px;
    background-color: #f5f5f5; /* Pastel gray */
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 2000;
    overflow-y: auto;
    display: none;
}

.offcanvas.open {
    transform: translateX(0);
    display: block;
}

@media (min-width: 768px) {
    .offcanvas-overlay,
    .offcanvas {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .offcanvas-overlay {
        display: block;
    }
    
    .offcanvas {
        display: block;
    }
}

.offcanvas-nav {
    height: 100%;
    padding: 40px 30px;
}

.offcanvas-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 30px;
    padding-top: 20px;
}

.offcanvas-close {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
}

.offcanvas-close span,
.offcanvas-close span::before,
.offcanvas-close span::after {
    content: "";
    position: absolute;
    height: 4px;
    width: 30px;
    background: var(--dark-gray);
    transition: background 0.3s, transform 0.3s;
}

.offcanvas-close span {
    background: var(--dark-gray);
}

.offcanvas-close span::before {
    transform: translateY(-12px);
}

.offcanvas-close span::after {
    transform: translateY(12px);
}

.offcanvas.open .offcanvas-close span {
    background: transparent;
}

.offcanvas.open .offcanvas-close span::before {
    transform: rotate(-45deg);
    transition-delay: 0.2s;
}

.offcanvas.open .offcanvas-close span::after {
    transform: rotate(45deg);
    transition-delay: 0.2s;
}

.offcanvas-menu-list {
    margin-top: 30px;
    list-style: none;
    padding: 0;
}

.offcanvas-menu-list li {
    cursor: pointer;
    padding: 10px 0;
    transform: translateX(-30px);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.offcanvas.open .offcanvas-menu-list li {
    opacity: 1;
    transform: translateX(0);
}

.offcanvas.open .offcanvas-menu-list li:nth-child(1) {
    transition-delay: 0.1s;
}

.offcanvas.open .offcanvas-menu-list li:nth-child(2) {
    transition-delay: 0.2s;
}

.offcanvas.open .offcanvas-menu-list li:nth-child(3) {
    transition-delay: 0.3s;
}

.offcanvas.open .offcanvas-menu-list li:nth-child(4) {
    transition-delay: 0.4s;
}

.offcanvas.open .offcanvas-menu-list li:nth-child(5) {
    transition-delay: 0.5s;
}

.offcanvas-item {
    font-size: 1.4rem;
    line-height: 1.5;
    font-weight: 400;
    color: var(--dark-gray);
    text-decoration: none;
    display: block;
    transition: color 0.3s ease;
}

.offcanvas-item:hover {
    color: var(--accent);
}

@keyframes hover {
    50% {
        transform: translateX(10px);
    }
}

.offcanvas-menu-list li:hover {
    animation: hover 0.5s;
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.9);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
}

.search-overlay.active {
    display: flex;
}

.search-container {
    position: relative;
    width: 90%;
    max-width: 600px;
}

#searchInput {
    width: 100%;
    padding: 15px 20px;
    font-size: 18px;
    border: 2px solid var(--white);
    border-radius: 5px;
    background-color: var(--white);
    line-height: 1.5;
}

.search-close {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: var(--white);
    border: none;
    font-size: 24px;
    color: var(--dark-gray) !important;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    line-height: 1;
    border-radius: 50%;
    z-index: 3001;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
    .search-close:hover {
        transform: scale(1.1);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    }
}

@media (max-width: 767px) {
    .search-close {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 22px;
    }
}

.search-results {
    margin-top: 20px;
    background-color: var(--white);
    border-radius: 5px;
    max-height: 400px;
    overflow-y: auto;
}

.search-result-item {
    padding: 15px;
    border-bottom: 1px solid var(--light-gray);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-result-item:hover {
    background-color: var(--light-gray);
}

.search-result-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 300px);
    padding: 40px 0;
}

/* Messages */
.messages-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

.alert {
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 5px;
}

.alert a {
    color: inherit !important;
    text-decoration: underline;
    font-weight: 600;
}

.alert a:hover {
    text-decoration: underline;
    opacity: 0.8;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Buttons - All buttons have white text by default (except navbar items and special buttons) */
a.btn,
a.btn-primary,
button:not(.nav-item):not(.search-icon-btn):not(.cart-icon):not(.mobile-menu-btn):not(.offcanvas-close):not(.lightbox-close):not(.lightbox-arrow):not(.carousel-arrow):not(.search-close):not(.cart-dropdown-item-remove),
input[type="submit"],
input[type="button"],
.btn {
    color: var(--white) !important;
}

a.btn *,
a.btn-primary *,
button:not(.nav-item):not(.search-icon-btn):not(.cart-icon):not(.mobile-menu-btn):not(.offcanvas-close):not(.lightbox-close):not(.lightbox-arrow):not(.carousel-arrow):not(.search-close):not(.cart-dropdown-item-remove) *,
input[type="submit"] *,
input[type="button"] *,
.btn * {
    color: var(--white) !important;
}

.btn,
a.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #1a4370;
    color: var(--white) !important;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.btn *,
a.btn * {
    color: var(--white) !important;
}

@media (hover: hover) and (pointer: fine) {
    .btn:hover {
        background-color: #153354;
        color: var(--white) !important;
    }
    
    .btn:hover * {
        color: var(--white) !important;
    }
}

.btn-primary,
a.btn-primary {
    background-color: #1a4370;
    color: var(--white) !important;
}

.btn-primary *,
a.btn-primary * {
    color: var(--white) !important;
}

.btn-primary:hover {
    background-color: #153354;
    color: var(--white) !important;
}

.btn-primary:hover * {
    color: var(--white) !important;
}

/* Footer */
.footer {
    background-color: var(--dark-gray);
    color: var(--white);
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    text-align: center;
}

.footer-section h3 {
    margin-bottom: 15px;
}

.footer-section p {
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--white) !important;
    text-decoration: none;
}

.footer-section a:hover {
    color: var(--white) !important;
    opacity: 0.8;
}

.footer-center {
    text-align: center;
}

.footer-tagline {
    font-size: 18px;
    font-weight: 500;
}

.footer-right {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-powered-by {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.footer-powered-by-text {
    margin: 0;
    margin-bottom: -5px;
    font-size: 14px;
    color: var(--white);
    line-height: 1.2;
}

.footer-tesla-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    color: var(--white) !important;
    margin-top: -5px;
}

.footer-tesla-text {
    color: var(--white) !important;
    font-size: 16px;
    margin: 0;
    line-height: 1.2;
}

.tesla-logo {
    height: 90px;
    width: auto;
    display: block;
}

.footer-social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #1a4370;
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.back-to-top.visible {
    display: flex;
}

@media (hover: hover) and (pointer: fine) {
    .back-to-top:hover {
        background-color: #153354;
        transform: scale(1.1);
    }
}

/* Home Page */
.home-hero {
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--white) 100%);
    padding: 80px 20px;
    text-align: center;
}

.home-hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.home-features {
    padding: 60px 20px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    padding: 30px;
    background-color: var(--light-gray);
    border-radius: 5px;
    text-align: center;
}

/* Shop Page */
.shop-page {
    padding: 40px 20px;
}

.categories-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.category-link {
    padding: 8px 20px;
    background-color: var(--light-gray);
    color: var(--dark-gray);
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.category-link.active,
.category-link:hover {
    background-color: var(--accent);
    color: var(--white);
}

.products-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    align-items: stretch;
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
}

.products-grid .product-card {
    flex: 0 0 100%;
    max-width: 100%;
    min-width: 250px;
}

@media (min-width: 550px) {
    .products-grid .product-card {
        flex: 0 0 calc(50% - 15px);
        max-width: calc(50% - 15px);
    }
}

@media (min-width: 768px) {
    .products-grid .product-card {
        flex: 0 0 calc(33.333% - 20px);
        max-width: calc(33.333% - 20px);
    }
}

@media (min-width: 1200px) {
    .products-grid {
        max-width: 1200px;
    }
    
    .products-grid .product-card {
        flex: 0 0 calc(25% - 22.5px);
        max-width: calc(25% - 22.5px);
        min-width: 250px;
    }
}

.product-card {
    background-color: var(--white);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card a {
    color: var(--black) !important;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card a:hover {
    color: var(--black) !important;
}

@media (hover: hover) and (pointer: fine) {
    .product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 24px rgba(0,0,0,0.35);
    }
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: contain;
    background-color: var(--white);
}

.product-card h3 {
    padding: 15px 15px 10px;
    font-size: 18px;
}

.product-short-description {
    padding: 0 15px 10px;
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.5;
    min-height: auto;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    flex-grow: 1;
}

.product-price {
    padding: 0 15px 15px;
    font-weight: bold;
    font-size: 20px;
    margin-top: auto;
}

.old-price {
    text-decoration: line-through;
    color: var(--text-light);
    margin-right: 10px;
}

.sale-price {
    color: #e74c3c;
}

/* Product Detail */
.product-detail-page {
    padding: 40px 20px;
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

/* Product Carousel */
.product-images {
    position: relative;
    width: 100%;
}

@media (min-width: 768px) {
    .product-images {
        position: sticky;
        top: 100px;
        align-self: start;
        max-height: calc(100vh - 120px);
        overflow-y: auto;
    }
}

.product-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    background-color: var(--white);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    padding: 10px;
}

.carousel-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    display: none;
}

.carousel-slide.active {
    display: block;
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: pointer;
    background-color: var(--white);
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid var(--white);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}

.carousel-arrow svg {
    color: var(--white);
    width: 24px;
    height: 24px;
}

.product-carousel:has(.carousel-slide:only-child) .carousel-arrow {
    display: none;
}

.carousel-arrow:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

.carousel-arrow svg {
    color: var(--dark-gray);
}

.carousel-thumbnails {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
    padding: 0 10px;
}

.carousel-thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s ease, opacity 0.3s ease;
    opacity: 0.7;
}

.carousel-thumbnail.active {
    border-color: var(--accent);
    opacity: 1;
}

/* Lightbox (Full Screen Zoom) */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.lightbox-container {
    position: relative;
    width: 90%;
    height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    animation: lightboxFadeIn 0.3s ease;
}

@keyframes lightboxFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    transition: background 0.3s ease, transform 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.lightbox-close svg {
    color: white;
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    transition: background 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}

.lightbox-arrow:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-arrow svg {
    color: white;
}

.product-info h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.product-sku {
    color: var(--text-light);
    margin-bottom: 20px;
}

.product-price {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 20px;
}

.product-description {
    margin-bottom: 30px;
}

.product-attributes {
    margin-bottom: 20px;
}

.attribute-item {
    padding: 10px 0;
    border-bottom: 1px solid var(--light-gray);
}

.stock-info {
    margin-bottom: 20px;
    font-weight: 500;
}

.stock-info.out-of-stock {
    color: #e74c3c;
}

.quantity-selector {
    margin-bottom: 20px;
}

.quantity-selector input {
    width: 80px;
    padding: 8px;
    margin-left: 10px;
}

.add-to-cart-form {
    margin-top: 30px;
}

/* Cart Page */
.cart-page {
    padding: 40px 20px;
}

.cart-items {
    margin-bottom: 40px;
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr 150px 100px 80px;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid var(--light-gray);
    align-items: center;
}

.cart-item-image img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.cart-item-quantity input {
    width: 60px;
    padding: 5px;
}

.btn-remove {
    background-color: #e74c3c;
    color: var(--white) !important;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
}

.btn-remove * {
    color: var(--white) !important;
}

.btn-remove:hover {
    color: var(--white) !important;
}

.btn-remove:hover * {
    color: var(--white) !important;
}

.cart-summary {
    text-align: right;
    padding: 30px;
    background-color: var(--light-gray);
    border-radius: 5px;
}

/* Blog */
.blog-list-page,
.blog-detail-page {
    padding: 40px 20px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    background-color: var(--white);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.blog-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.blog-card a:hover {
    text-decoration: none;
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card-content {
    padding: 20px;
}

.blog-card h2 {
    font-size: 20px;
    margin-bottom: 10px;
}

.blog-date {
    color: var(--text-light);
    font-size: 14px;
}

.blog-thumbnail {
    width: 100%;
    height: auto;
    margin-bottom: 30px;
    border-radius: 5px;
}

.blog-content {
    line-height: 1.8;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
    padding-bottom: 40px;
    margin-bottom: 40px;
}

.blog-detail-page {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
    width: 100%;
}

.blog-detail-page .container {
    max-width: 100%;
    box-sizing: border-box;
}

.blog-post {
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-wrap: break-word;
    padding-bottom: 40px;
    margin-bottom: 40px;
}

.blog-content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    display: block;
}

.blog-content img:last-child {
    margin-bottom: 40px;
}

/* Contact Page */
.contact-page {
    padding: 40px 20px;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--light-gray);
    border-radius: 5px;
    font-size: 16px;
}

.contact-form textarea {
    resize: vertical;
}

/* Auth Pages */
.auth-page {
    padding: 40px 20px;
    max-width: 500px;
    margin: 0 auto;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.auth-form input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--light-gray);
    border-radius: 5px;
    font-size: 16px;
}

/* Account Page */
.account-page {
    padding: 40px 20px;
}

.account-info,
.order-history {
    margin-bottom: 40px;
}

.order-item {
    padding: 20px;
    background-color: var(--light-gray);
    border-radius: 5px;
    margin-bottom: 15px;
}

/* Placeholders */
.product-placeholder,
.blog-placeholder {
    width: 100%;
    height: 250px;
    background-color: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

/* Responsive Design */
@media (min-width: 768px) {
    .desktop-nav {
        display: flex;
    }
    
    .header-actions {
        display: flex;
    }
    
    .mobile-menu-btn,
    .mobile-nav-row,
    .mobile-nav-row-second {
        display: none;
    }
    
    .top-bar-content {
        display: flex;
    }
    
    .top-bar-mobile {
        display: none;
    }
}

@media (max-width: 767px) {
    .header {
        position: sticky;
        top: 0;
    }
    
    .header-content {
        justify-content: space-between;
        gap: 10px; /* Reduced gap between logo and hamburger on mobile */
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .mobile-nav-row-second {
        display: flex;
    }
    
    /* Hide desktop top bar on mobile */
    .top-bar-content {
        display: none;
    }
    
    /* Show mobile top bar */
    .top-bar-mobile {
        display: flex;
    }
    
    .product-detail {
        grid-template-columns: 1fr;
    }
    
    .carousel-arrow {
        width: 36px;
        height: 36px;
    }
    
    .carousel-prev {
        left: 5px;
    }
    
    .carousel-next {
        right: 5px;
    }
    
    .lightbox-container {
        width: 95%;
        height: 95%;
    }
    
    .lightbox-arrow {
        width: 40px;
        height: 40px;
        background: rgba(0, 0, 0, 0.8);
        border: 2px solid var(--white);
    }
    
    .lightbox-arrow svg {
        color: var(--white);
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
    }
    
    .carousel-thumbnails {
        gap: 8px;
        padding: 0 5px;
    }
    
    .carousel-thumbnail {
        width: 60px;
        height: 60px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .cart-item {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-right {
        text-align: center;
    }
    
    .home-hero h1 {
        font-size: 32px;
    }
    
    /* Mobile Cart Dropdown */
    .cart-icon-wrapper {
        position: relative !important;
    }
    
    .cart-dropdown {
        position: fixed !important;
        top: 70px !important;
        right: 10px !important;
        left: 10px !important;
        bottom: auto !important;
        min-width: calc(100vw - 20px) !important;
        max-width: calc(100vw - 20px) !important;
        width: calc(100vw - 20px) !important;
        transform: none !important;
        margin-top: 0 !important;
        max-height: calc(100vh - 90px) !important;
    }
    
    .mobile-cart-wrapper {
        position: relative;
    }
    
    .cart-dropdown-item {
        padding: 12px;
        gap: 10px;
    }
    
    .cart-dropdown-item-image {
        width: 50px;
        height: 50px;
    }
    
    .cart-dropdown-item-info h4 {
        font-size: 13px;
    }
    
    .cart-dropdown-item-info p {
        font-size: 11px;
    }
    
    .cart-dropdown-header {
        padding: 15px;
        font-size: 16px;
    }
    
    .cart-dropdown-footer {
        padding: 15px;
    }
    
    .cart-dropdown-total {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .cart-dropdown-actions {
        gap: 8px;
    }
    
    .cart-dropdown-actions .btn {
        font-size: 14px;
        padding: 10px;
    }
    
    /* Mobile Cart Notification */
    .cart-notification {
        bottom: 20px;
        left: 20px;
        right: auto;
        top: auto;
        max-width: calc(100% - 40px);
        transform: translateX(-400px);
        z-index: 999;
    }
    
    .cart-notification.show {
        transform: translateX(0);
    }
}

/* Admin Customization */
@media (max-width: 1024px) {
    .admin-interface {
        font-size: 14px;
    }
}

/* Pattern Select with Images */
.pattern-select-wrapper {
    position: relative;
    margin-bottom: 15px;
}

.pattern-select-custom {
    position: relative;
    width: 100%;
    z-index: 1;
}

.pattern-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background-color: var(--white);
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: border-color 0.3s ease;
    font-size: 16px;
    min-height: 42px;
    width: 100%;
}

@media (hover: hover) and (pointer: fine) {
    .pattern-select-trigger:hover {
        border-color: var(--dark-gray);
    }
}

.pattern-select-placeholder {
    display: flex;
    align-items: center;
    color: var(--text-light);
    flex: 1;
}

.pattern-select-arrow {
    color: var(--text-light);
    transition: transform 0.3s ease;
    font-size: 12px;
    margin-left: 10px;
}

.pattern-select-custom.open .pattern-select-arrow {
    transform: rotate(180deg);
}

.pattern-select-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 5px 5px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1;
    display: none;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    margin-top: 1px;
}

.pattern-select-custom.open .pattern-select-options {
    display: block;
}

.pattern-select-option {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.pattern-select-option.pattern-select-default {
    justify-content: flex-start;
    padding-left: 15px;
}

.pattern-option-text {
    color: var(--text-light);
}

.pattern-select-option:last-child {
    border-bottom: none;
}

.pattern-select-option:hover {
    background-color: var(--light-gray);
}

.pattern-option-image {
    width: 100%;
    max-width: 100px;
    height: auto;
    max-height: 80px;
    object-fit: contain;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.pattern-option-label {
    font-weight: 500;
    color: var(--text-dark);
}

.pattern-preview {
    margin-top: 10px;
}

.pattern-preview img {
    max-width: 200px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Product Dimensions */
.product-dimensions {
    margin-bottom: 20px;
}

.product-dimensions h3 {
    margin-bottom: 10px;
    font-size: 18px;
    color: var(--text-dark);
}


/* Dimension Select (custom dropdown like pattern) */
.dimension-select-wrapper {
    position: relative;
    margin-bottom: 0;
}

.dimension-select-custom {
    position: relative;
    width: 100%;
    z-index: 10;
}

.dimension-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background-color: var(--white);
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: border-color 0.3s ease;
    font-size: 16px;
    min-height: 42px;
    width: 100%;
}

@media (hover: hover) and (pointer: fine) {
    .dimension-select-trigger:hover {
        border-color: var(--dark-gray);
    }
}

.dimension-select-placeholder {
    display: flex;
    align-items: center;
    color: var(--text-light);
    flex: 1;
}

.dimension-select-arrow {
    color: var(--text-light);
    transition: transform 0.3s ease;
    font-size: 12px;
    margin-left: 10px;
}

.dimension-select-custom.open .dimension-select-arrow {
    transform: rotate(180deg);
}

.dimension-select-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 5px 5px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 11;
    display: none;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    margin-top: 1px;
}

.dimension-select-custom.open .dimension-select-options {
    display: block;
}

.dimension-select-option {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.dimension-select-option:last-child {
    border-bottom: none;
}

@media (hover: hover) and (pointer: fine) {
    .dimension-select-option:hover {
        background-color: var(--light-gray);
    }
}

.dimension-select-option.dimension-select-default {
    justify-content: flex-start;
}

.dimension-option-text {
    color: var(--text-dark);
}

.dimension-select-option.dimension-select-default .dimension-option-text {
    color: var(--text-light);
}

/* Field error highlight - red rectangle that doesn't push content */
.error-highlight-rect {
    position: fixed;
    pointer-events: none;
    z-index: 999;
    border: 3px solid #dc3545;
    border-radius: 5px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.error-highlight-rect.fade-out {
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.error-highlight-rect.visible {
    opacity: 1;
    animation: fieldErrorPulse 0.73s cubic-bezier(0.4, 0, 0.6, 1) 3;
}

@keyframes fieldErrorPulse {
    0% {
        opacity: 1;
        border-color: #dc3545;
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.9);
    }
    50% {
        opacity: 0.6;
        border-color: rgba(220, 53, 69, 0.8);
        box-shadow: 0 0 0 12px rgba(220, 53, 69, 0.3);
    }
    100% {
        opacity: 1;
        border-color: #dc3545;
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

/* Product Patterns */
.product-patterns {
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.product-patterns h3 {
    margin-bottom: 10px;
    font-size: 18px;
    color: var(--text-dark);
}

.product-patterns .pattern-select-wrapper {
    margin-bottom: 0;
}

.product-patterns label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

/* Cart Notification */
.cart-notification {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: var(--white);
    color: var(--text-dark);
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    z-index: 999;
    opacity: 0;
    transform: translateX(-400px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    max-width: 300px;
    border-left: 4px solid #28a745;
}

.cart-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.cart-notification-error {
    border-left-color: #dc3545;
}

/* Cart Dropdown */
.cart-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    bottom: auto;
    right: 0;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
    min-width: 350px;
    max-width: 400px;
    width: auto;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 1001;
    display: none;
    margin-top: 0;
}

@media (max-width: 767px) {
    .cart-dropdown {
        position: fixed !important;
        top: auto !important;
        bottom: auto !important;
        right: 10px !important;
        left: 10px !important;
        min-width: calc(100vw - 20px) !important;
        max-width: calc(100vw - 20px) !important;
        width: calc(100vw - 20px) !important;
        transform: none !important;
        margin-top: 10px !important;
        max-height: calc(100vh - 100px) !important;
    }
}

.cart-dropdown.active {
    display: block;
}

.cart-dropdown-header {
    padding: 20px;
    border-bottom: 1px solid var(--light-gray);
    font-weight: 600;
    font-size: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-dropdown-close {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-dark);
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: color 0.3s ease;
}

.cart-dropdown-close:hover {
    color: var(--dark-gray);
}

.cart-dropdown-items {
    max-height: 400px;
    overflow-y: auto;
}

.cart-dropdown-item {
    display: flex;
    padding: 15px;
    border-bottom: 1px solid var(--light-gray);
    gap: 15px;
}

.cart-dropdown-item-image {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 4px;
    background-color: var(--light-gray);
}

.cart-dropdown-item-info {
    flex: 1;
    min-width: 0;
}

.cart-dropdown-item-info h4 {
    font-size: 14px;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-dropdown-item-info p {
    font-size: 12px;
    color: var(--text-light);
    margin: 2px 0;
}

.cart-dropdown-item-remove {
    background: none !important;
    border: none !important;
    color: #dc3545 !important;
    cursor: pointer;
    padding: 5px;
    font-size: 18px;
    line-height: 1;
    font-weight: bold;
}

.cart-dropdown-footer {
    padding: 20px;
    border-top: 1px solid var(--light-gray);
    background-color: var(--light-gray);
}

.cart-dropdown-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 18px;
}

.cart-dropdown-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cart-dropdown-actions .btn {
    width: 100%;
    text-align: center;
    padding: 12px;
    color: var(--white) !important;
}

.cart-dropdown-actions .btn * {
    color: var(--white) !important;
}

/* Improved Cart Page */
.cart-page {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.cart-item {
    display: grid;
    grid-template-columns: 120px 2fr 150px 120px 100px;
    gap: 20px;
    padding: 25px;
    margin-bottom: 20px;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    align-items: start;
}

.cart-item-image img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    object-fit: contain;
    background-color: var(--light-gray);
}

.cart-item-info h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.cart-item-info h3 a {
    color: var(--text-dark);
    text-decoration: none;
}

.cart-item-quantity {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cart-item-quantity label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-light);
}

.cart-item-quantity input {
    width: 80px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.btn-update {
    background-color: var(--accent);
    color: var(--white) !important;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.btn-update * {
    color: var(--white) !important;
}

.btn-update:hover {
    background-color: var(--dark-gray);
    color: var(--white) !important;
}

.btn-update:hover * {
    color: var(--white) !important;
}

.cart-item-total {
    text-align: right;
    font-weight: 600;
    font-size: 16px;
}

.cart-summary {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    margin-top: 30px;
}

.cart-summary h2 {
    font-size: 24px;
    margin-bottom: 20px;
    text-align: right;
}

@media (max-width: 768px) {
    .cart-summary h2 {
        font-size: 18px;
        text-align: left;
    }
}

/* Improved Checkout Page */
.checkout-page {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
    width: 100%;
}

.checkout-page .container {
    max-width: 100%;
    padding: 0;
    box-sizing: border-box;
}

.checkout-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

.checkout-form-section,
.checkout-summary-section {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.checkout-form-section h2,
.checkout-summary-section h2 {
    margin-bottom: 25px;
    font-size: 22px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    font-family: inherit;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.checkout-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    margin-bottom: 15px;
    background-color: var(--light-gray);
    border-radius: 8px;
}

.checkout-item-image {
    width: 100px;
    min-width: 100px;
    height: 100px;
}

.checkout-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
    background-color: var(--white);
}

.checkout-item-info {
    flex: 1;
}

.checkout-item-info h4 {
    margin-bottom: 8px;
    font-size: 16px;
}

.checkout-item-info p {
    margin: 5px 0;
    font-size: 14px;
}

.checkout-total {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid var(--dark-gray);
    text-align: right;
}

.checkout-total h3 {
    font-size: 24px;
}

@media (max-width: 768px) {
    .checkout-page {
        padding: 20px 10px;
    }
    
    .checkout-content {
        grid-template-columns: 1fr;
        max-width: 100%;
        padding: 0;
        box-sizing: border-box;
        width: 100%;
    }
    
    .checkout-form-section,
    .checkout-summary-section {
        padding: 20px 15px;
        max-width: 100%;
        box-sizing: border-box;
        width: 100%;
    }
    
    .checkout-total {
        text-align: center;
    }
    
    .checkout-total h3 {
        font-size: 18px;
    }
    
    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: 15px;
    }
    
    .cart-item-quantity,
    .cart-item-total,
    .cart-item-remove {
        grid-column: 1 / -1;
    }
    
    .cart-dropdown {
        position: fixed !important;
        top: 70px !important;
        right: 10px !important;
        left: 10px !important;
        bottom: auto !important;
        min-width: calc(100vw - 20px) !important;
        max-width: calc(100vw - 20px) !important;
        width: calc(100vw - 20px) !important;
        transform: none !important;
        margin-top: 0 !important;
        max-height: calc(100vh - 90px) !important;
    }
    
    .mobile-cart-dropdown {
        position: fixed !important;
        top: 70px !important;
        right: 10px !important;
        left: 10px !important;
        bottom: auto !important;
        min-width: calc(100vw - 20px) !important;
        max-width: calc(100vw - 20px) !important;
        width: calc(100vw - 20px) !important;
        transform: none !important;
        max-height: calc(100vh - 90px) !important;
    }
}

