@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

:root {
    --primary-color: #5d1b20; /* Maroon */
    --primary-dark: #421115;
    --bg-color: #ffffff;
    --text-color: #333333;
    --text-light: #777777;
    --card-bg: #ffffff;
    --border-color: #eeeeee;
    --danger: #e74c3c;
    --success: #2ecc71;
    --font-main: 'Outfit', 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Header Redesign */
header {
    background-color: #fff;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 85px;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    gap: 1.2rem;
    align-items: center;
}

.nav-menu>li>a {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.nav-menu>li>a:hover {
    color: var(--primary-color);
}

.nav-menu>li>a i {
    font-size: 0.7rem;
}

.header-icons {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    font-size: 1.2rem;
}

.header-icons a {
    position: relative;
    cursor: pointer;
}

.header-icons a:hover {
    color: var(--primary-color);
}

.icon-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: #5a2626;
    /* Dark maroon/brown */
    color: #fff;
    font-size: 0.7rem;
    font-weight: bold;
    height: 18px;
    width: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Circular Categories */
.category-circles {
    background-color: #fff;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    width: 100%;
}

.category-circles-wrapper {
    position: relative;
    padding: 0 40px;
    /* Space for buttons */
}

.category-circles-container {
    display: flex;
    justify-content: flex-start;
    gap: 1.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    /* Firefox */
    scroll-behavior: smooth;
}

.category-circles-container::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 10;
    color: var(--text-color);
    transition: var(--transition);
}

.scroll-btn:hover {
    background: var(--text-color);
    color: #fff;
}

.scroll-btn.left {
    left: 0;
}

.scroll-btn.right {
    right: 0;
}

.circle-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    min-width: 110px;
    /* Moderate size */
}

.circle-img-wrapper {
    width: 110px;
    /* Moderate size */
    height: 110px;
    /* Moderate size */
    border-radius: 50%;
    border: 2px solid #a82e2e;
    padding: 3px;
    overflow: hidden;
    transition: var(--transition);
}

.circle-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.circle-item:hover .circle-img-wrapper {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(168, 46, 46, 0.2);
}

.circle-item span {
    font-size: 0.8rem;
    /* Slightly larger text */
    font-weight: 600;
    text-transform: uppercase;
    text-align: center;
    color: var(--text-color);
    letter-spacing: 0.5px;
}

/* Hero Carousel Section */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 60vh;
    overflow: hidden;
    background-color: #000;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.4s ease-in-out, transform 4s ease-out;
    transform: scale(1.08);
    /* Start slightly zoomed in */
}

.carousel-slide.active {
    opacity: 1;
    transform: scale(1);
    /* Smoothly zoom out while fading in */
    z-index: 1;
}

.slide-1 {
    background-image: url('../images/banner1.png');
}

.slide-2 {
    background-image: url('../images/banner2.png');
}

.slide-3 {
    background-image: url('../images/banner3.png');
}

.slide-4 {
    background-image: url('../images/banner4.jpg');
}

.carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 10;
    pointer-events: none;
}

.hero-btn {
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.7);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-color);
    font-size: 1.2rem;
    transition: var(--transition);
}

.hero-btn:hover {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #fff;
    width: 30px;
    border-radius: 5px;
}

/* New Arrivals Section */
.new-arrivals-header {
    text-align: center;
    margin: 4rem 0 3rem;
}

.new-arrivals-header h2 {
    font-size: 2rem;
    font-family: serif;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.new-arrivals-header p {
    font-size: 0.8rem;
    color: var(--text-light);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Products Grid */
main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background-color: #fff;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid #f0f0f0;
}

.product-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.product-img-wrapper {
    position: relative;
    width: 100%;
    height: 320px;
    /* Standardize height for images */
    overflow: hidden;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img {
    transform: scale(1.05);
}

.sale-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #3B1B15;
    /* Dark brown background */
    color: #fff;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 4px;
    z-index: 2;
}

.wishlist-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 2;
    transition: var(--transition);
}

.wishlist-btn:hover {
    color: var(--danger);
}

.product-info {
    padding: 1rem 1rem 1.2rem;
    text-align: left;
    /* Aligned left per mockup */
}

.product-title {
    font-size: 0.95rem;
    font-weight: 400;
    color: #333;
    margin-bottom: 0.6rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: #3B1B15;
    /* Dark brown text */
    margin-bottom: 0.5rem;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    color: #F5A623;
    /* Gold stars */
    margin-bottom: 1rem;
}

.product-rating .count {
    color: #777;
    margin-left: 2px;
}

.add-to-cart-btn {
    width: 100%;
    padding: 0.6rem;
    background-color: #3B1B15;
    /* Dark brown */
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.add-to-cart-btn:hover {
    background-color: #5a2626;
}

/* Filter and Sort Bar */
.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    color: #444;
}

.filter-left,
.filter-right {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500;
}

.filter-center {
    color: #888;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 3rem;
}

.page-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    background: #fff;
    color: #555;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}

.page-btn.active {
    background-color: #8C6A48;
    /* Light brown active state */
    color: #fff;
    border-color: #8C6A48;
}

.page-btn.dots {
    border: none;
    background: none;
    cursor: default;
}

.page-btn:hover:not(.active):not(.dots) {
    background-color: #f5f5f5;
}

/* Base Override for Body Background */
body {
    background-color: #FDFBF7;
}

/* Cart & Checkout Pages */
.cart-container,
.checkout-container {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
    font-family: serif;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2.5rem;
    background-color: #fff;
    color: #333;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn:hover {
    background-color: var(--text-color);
    color: #fff;
}

/* Toast */
#toast {
    visibility: hidden;
    min-width: 250px;
    margin-left: -125px;
    background-color: var(--text-color);
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 16px;
    position: fixed;
    z-index: 1000;
    left: 50%;
    bottom: 30px;
    font-size: 1rem;
}

#toast.show {
    visibility: visible;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

@keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }

    to {
        bottom: 30px;
        opacity: 1;
    }
}

@keyframes fadeout {
    from {
        bottom: 30px;
        opacity: 1;
    }

    to {
        bottom: 0;
        opacity: 0;
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero-carousel {
        height: 55vh;
        min-height: 55vh;
    }

    .category-circles-wrapper {
        padding: 0 1rem;
        /* Minimal padding for mobile to allow edge-to-edge scrolling */
    }

    .scroll-btn {
        display: none;
        /* Hide arrow buttons on touch devices as users can swipe */
    }

    /* Mobile Banners */
    .slide-1 {
        background-image: url('../images/mobile1.jpg');
    }

    .slide-2 {
        background-image: url('../images/mobile2.jpg');
    }

    .slide-3 {
        background-image: url('../images/mobile3.jpg');
    }

    .slide-4 {
        background-image: url('../images/mobile4.jpg');
    }
}

/* Mobile Menu Styles */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
    margin-left: 10px;
}

.close-menu {
    display: none;
    text-align: right;
}

.mobile-close-btn {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--text-color);
    cursor: pointer;
    padding: 10px;
}

@media (max-width: 900px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        /* Slide in from right */
        width: 300px;
        height: 100vh;
        background-color: #fff;
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.4s ease;
        z-index: 2000;
        gap: 1.5rem;
    }

    .nav-menu.active {
        right: 0;
    }

    .close-menu {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid #eee;
        padding-bottom: 0.5rem;
    }

    .nav-menu li a {
        display: block;
        width: 100%;
    }
}

/* Search Modal Styles */
/* Overlay background for the drawer */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-modal {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    max-width: 100%;
    height: 100vh;
    background: #fff;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

.search-modal.active {
    right: 0;
}

.search-modal-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 30px;
}

.search-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.search-header-text {
    font-size: 0.75rem;
    color: #888;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.close-search {
    background: none;
    border: none;
    color: #333;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

#search-form {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

#search-input {
    flex: 1;
    border: none;
    font-size: 1.2rem;
    outline: none;
    color: #333;
}

#search-form button {
    background: none;
    color: #333;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
}

.search-results-section {
    flex: 1;
    overflow-y: auto;
}

.search-results-label {
    font-size: 0.75rem;
    color: #888;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 15px;
    display: none;
}

#search-results-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: #333;
    transition: background 0.2s;
    padding: 10px;
    border-radius: 8px;
}

.search-result-item:hover {
    background: #f9f9f9;
}

.search-result-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.search-result-info {
    display: flex;
    flex-direction: column;
}

.search-result-name {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 4px;
}

.search-result-price {
    font-size: 0.85rem;
    color: #666;
}

.search-footer {
    padding-top: 20px;
    border-top: 1px solid #ddd;
    margin-top: auto;
}

.search-footer-btn {
    display: block;
    width: 100%;
    padding: 15px;
    background: #f5f5f5;
    color: #333;
    text-align: center;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.search-footer-btn:hover {
    background: #eaeaea;
}

/* Cart Modal Styles */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-modal {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    max-width: 100%;
    height: 100vh;
    background: #fff;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

.cart-modal.active {
    right: 0;
}

.cart-modal-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 30px;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.cart-header-text {
    font-size: 1.1rem;
    color: #333;
    font-weight: 500;
}

.cart-header-text span {
    background: #3B1B15;
    color: #fff;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    margin-left: 8px;
}

.close-cart {
    background: none;
    border: none;
    color: #333;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.shipping-progress {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.shipping-msg {
    font-size: 0.85rem;
    color: #333;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.shipping-bar-bg {
    width: 100%;
    height: 4px;
    background: #eee;
    border-radius: 2px;
    overflow: hidden;
}

.shipping-bar-fill {
    height: 100%;
    background: #333;
    transition: width 0.3s;
}

.cart-items-container {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-bottom: 20px;
}

.cart-item-drawer {
    display: flex;
    gap: 15px;
}

.cart-item-drawer img {
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cart-item-details h4 {
    font-size: 0.9rem;
    font-weight: 400;
    color: #333;
    margin-bottom: 5px;
}

.cart-item-price {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 10px;
}

.cart-item-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.qty-selector {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
}

.qty-selector button {
    width: 25px;
    height: 25px;
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
}

.qty-selector input {
    width: 30px;
    text-align: center;
    border: none;
    font-size: 0.85rem;
    outline: none;
}

.remove-btn-drawer {
    font-size: 0.8rem;
    color: #666;
    text-decoration: underline;
    background: none;
    border: none;
    cursor: pointer;
}

.cart-footer-drawer {
    border-top: 1px solid #eee;
    padding-top: 20px;
    margin-top: auto;
}

.cart-footer-links {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

.cart-footer-links button {
    background: none;
    border: none;
    font-size: 0.8rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.cart-subtotal {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.cart-taxes {
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 20px;
}

.checkout-btn-drawer {
    display: block;
    width: 100%;
    padding: 15px;
    background: #3B1B15;
    color: #fff;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 1px;
    transition: background 0.3s;
}

.checkout-btn-drawer:hover {
    background: #5a2c22;
}

/* Wishlist Modal Styles */
.wishlist-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.wishlist-overlay.active {
    opacity: 1;
    visibility: visible;
}

.wishlist-modal {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    max-width: 100%;
    height: 100vh;
    background: #fff;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

.wishlist-modal.active {
    right: 0;
}

.wishlist-modal-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 30px;
}

.wishlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.wishlist-header-text {
    font-size: 1.1rem;
    color: #333;
    font-weight: 500;
}

.wishlist-header-text span {
    background: #3B1B15;
    color: #fff;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    margin-left: 8px;
}

.close-wishlist {
    background: none;
    border: none;
    color: #333;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.wishlist-items-container {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-bottom: 20px;
}

.wishlist-item-drawer {
    display: flex;
    gap: 15px;
}

.wishlist-item-drawer img {
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.wishlist-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.wishlist-item-details h4 {
    font-size: 0.9rem;
    font-weight: 400;
    color: #333;
    margin-bottom: 5px;
}

.wishlist-item-price {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 10px;
}

.wishlist-item-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.move-to-cart-btn {
    background: #3B1B15;
    color: #fff;
    border: none;
    padding: 6px 12px;
    font-size: 0.75rem;
    border-radius: 4px;
    cursor: pointer;
}

.move-to-cart-btn:hover {
    background: #5a2c22;
}
/* Explore Button Styles for Category Cards */
.explore-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 16px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.explore-btn:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Product Details Page Styles */
.product-page-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.breadcrumb {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 2rem;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.product-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

/* Gallery Styles */
.product-gallery {
    display: flex;
    gap: 1.5rem;
}

.thumbnail-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 80px;
}

.thumb {
    width: 80px;
    height: 80px;
    border: 1px solid #ddd;
    cursor: pointer;
    border-radius: 4px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.thumb.active {
    border: 2px solid var(--primary-color);
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main-image-col {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
}

.main-image-col img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* Product Info Styles */
.product-title {
    font-size: 2.2rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 500;
}

.product-assurance {
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.product-pricing {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1.5rem;
}

.offer-price {
    font-size: 1.5rem;
    color: var(--text-color);
    font-weight: 600;
}

.original-price {
    font-size: 1.2rem;
    color: #999;
    text-decoration: line-through;
}

.discount-badge {
    color: #d32f2f;
    font-size: 0.9rem;
    font-weight: 600;
}

.stock-status {
    color: #2e7d32;
    font-size: 0.9rem;
    margin-left: auto;
}

.product-colors {
    margin-bottom: 1.5rem;
}

.product-colors p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

#selectedColorName {
    color: var(--text-color);
    font-weight: 600;
}

.color-options {
    display: flex;
    gap: 0.8rem;
}

.color-box {
    width: 30px;
    height: 30px;
    border: 1px solid #ccc;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.color-box.active {
    border: 2px solid #000;
    transform: scale(1.1);
}

.urgency-bar {
    margin-bottom: 2rem;
}

.hurry-text {
    color: #d32f2f;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.progress-bar-bg {
    height: 4px;
    background-color: #eee;
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background-color: #ff9800;
}

.product-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.qty-selector {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.qty-selector button {
    width: 40px;
    height: 45px;
    background: transparent;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #666;
}

.qty-selector input {
    width: 40px;
    height: 45px;
    text-align: center;
    border: none;
    font-size: 1rem;
    -moz-appearance: textfield;
}

.add-to-cart-large {
    width: 100%;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 15px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 1rem;
    transition: background-color 0.3s ease;
}

.add-to-cart-large:hover {
    background-color: #333;
}

.buy-now-large {
    width: 100%;
    background-color: #5d1b20; /* Maroon color from screenshot */
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    padding: 15px;
    cursor: pointer;
    margin-bottom: 1.5rem;
    transition: background-color 0.3s ease;
}

.buy-now-large:hover {
    background-color: #421115;
}

.add-to-wishlist-text {
    background: transparent;
    border: none;
    color: #666;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.add-to-wishlist-text:hover {
    color: var(--primary-color);
}

.product-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #444;
    border-top: 1px solid #eee;
    padding-top: 1.5rem;
    padding-bottom: 2.5rem;
    text-align: justify;
}

@media (max-width: 992px) {
    .product-container {
        grid-template-columns: 1fr;
    }
    
    .product-gallery {
        flex-direction: column-reverse;
    }
    
    .thumbnail-col {
        flex-direction: row;
        width: 100%;
        overflow-x: auto;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 0 1rem;
    }
    .product-img-wrapper {
        height: 220px;
    }
    .product-info {
        padding: 1.5rem 1.2rem;
    }
    .product-title {
        font-size: 0.85rem;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
    .sale-tag {
        font-size: 0.65rem;
        padding: 3px 6px;
    }
}

/* Category Card Flex Layout for Equal Heights */
.category-card {
    background-color: #fff;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.category-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.category-card:hover .product-img {
    transform: scale(1.05);
}

.category-info {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.category-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.category-desc {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.explore-btn {
    width: max-content;
    padding: 0.5rem 1.2rem;
    background-color: #D4AF37;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: auto;
}

.explore-btn:hover {
    background-color: #B5952F;
}

/* Back to Categories Button */
.back-to-categories-btn {
    position: absolute;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 1px solid #3B1B15;
    color: #3B1B15;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

@media (max-width: 768px) {
    .back-to-categories-btn {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        margin: 0 auto 1.5rem;
        display: block;
    }
}

/* --- Checkout Redesign --- */
.checkout-page-main {
    padding: 2rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.checkout-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-weight: 600;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 3rem;
    align-items: start;
}

/* Left Column: Form */
.checkout-section {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
    border: 1px solid #f5f5f5;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.step-badge {
    background: var(--primary-color);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.section-header h2 {
    font-size: 1.2rem;
    color: #333;
    margin: 0;
}

.section-header p {
    font-size: 0.85rem;
    color: #888;
    margin: 5px 0 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-row-3 {
    grid-template-columns: 2fr 1.5fr 1.5fr;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #555;
}

.form-group label span {
    color: #e74c3c;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon i {
    position: absolute;
    left: 15px;
    color: #555;
}

.input-with-icon input,
.input-with-icon textarea,
.input-with-icon select,
.styled-select {
    width: 100%;
    padding: 12px 15px 12px 40px;
    border: 1px solid #bbb;
    border-radius: 8px;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
    font-family: inherit;
}

.input-with-icon.align-top i {
    top: 15px;
}

.input-with-icon textarea {
    resize: vertical;
    padding-top: 12px;
}

.input-with-icon input:focus,
.input-with-icon textarea:focus,
.input-with-icon select:focus,
.styled-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(93, 27, 32, 0.1);
}

.phone-input-wrapper select {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    border: none;
    border-right: 1px solid #e0e0e0;
    background: #f9f9f9;
    border-radius: 8px 0 0 8px;
    padding: 0 10px;
    width: 70px;
    outline: none;
    appearance: none;
}
.phone-input-wrapper input {
    padding-left: 105px;
}
.phone-input-wrapper i {
    left: 80px;
}

.styled-select {
    padding-left: 15px;
    appearance: none;
    background: url('data:image/svg+xml;utf8,<svg fill="%23999" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>') no-repeat right 10px center;
}

.save-info-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: -0.5rem;
    margin-bottom: 1.5rem;
}
.save-info-checkbox input {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-color);
}
.save-info-checkbox label {
    font-size: 0.85rem;
    color: #666;
    cursor: pointer;
}

.payment-method-box {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    background: #fffafa;
    cursor: pointer;
}
.payment-icon {
    width: 40px;
    height: 40px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: var(--primary-color);
    font-size: 1.2rem;
}
.payment-details h4 {
    margin: 0;
    font-size: 1rem;
    color: #333;
}
.payment-details p {
    margin: 5px 0 0;
    font-size: 0.85rem;
    color: #666;
}
.payment-radio {
    margin-left: auto;
    position: relative;
}
.payment-radio input {
    opacity: 0;
    position: absolute;
}
.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: inline-block;
    position: relative;
}
.payment-radio input:checked + .radio-custom::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.place-order-btn {
    width: 100%;
    padding: 18px;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.place-order-btn:hover {
    background-color: var(--primary-dark);
}
.secure-encrypted-text {
    text-align: center;
    font-size: 0.85rem;
    color: #666;
    margin-top: 1rem;
}
.secure-encrypted-text i {
    color: #4CAF50;
    margin-right: 5px;
}

/* Right Column: Order Summary */
.order-summary-box {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border: 1px solid #f5f5f5;
    position: sticky;
    top: 100px;
}

.summary-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 2rem;
    color: var(--primary-color);
}
.summary-header h3 {
    margin: 0;
    font-size: 1.2rem;
}
.summary-header i {
    background: #fdf5f6;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.summary-items {
    margin-bottom: 2rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.summary-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}
.summary-item-img {
    width: 60px;
    height: 75px;
    object-fit: cover;
    border-radius: 6px;
    margin-right: 15px;
    border: 1px solid #eee;
}
.summary-item-details {
    flex: 1;
}
.summary-item-details h4 {
    margin: 0 0 5px;
    font-size: 0.9rem;
    color: #333;
}
.summary-item-details p {
    margin: 0;
    font-size: 0.8rem;
    color: #888;
}
.summary-item-price {
    font-weight: 600;
    font-size: 0.95rem;
    color: #333;
}

.totals-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: #555;
}
.free-text {
    color: #4CAF50;
    font-weight: 600;
}
.discount-row {
    color: #e74c3c;
}
.grand-total {
    border-top: 2px dashed #eee;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.safe-secure-badge {
    display: flex;
    align-items: center;
    background: #faf6f0;
    border: 1px solid #e8e0d5;
    padding: 1.2rem;
    border-radius: 8px;
    margin-top: 2rem;
}
.shield-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 15px;
    font-size: 1.2rem;
    color: #8d6b46;
}
.safe-secure-badge h4 {
    margin: 0 0 5px;
    font-size: 0.9rem;
    color: #333;
}
.safe-secure-badge p {
    margin: 0;
    font-size: 0.75rem;
    color: #666;
    line-height: 1.4;
}

/* Trust Badges Footer */
.trust-badges-container {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
    flex-wrap: wrap;
}
.trust-badge {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 200px;
}
.trust-badge i {
    font-size: 1.8rem;
    color: #d1b1c2;
}
.trust-badge h4 {
    margin: 0 0 5px;
    font-size: 0.9rem;
    color: #333;
}
.trust-badge p {
    margin: 0;
    font-size: 0.8rem;
    color: #888;
}

@media (max-width: 992px) {
    .checkout-grid {
        grid-template-columns: 1fr;
    }
    .checkout-right {
        order: -1;
    }
    .order-summary-box {
        position: relative;
        top: 0;
        margin-bottom: 2rem;
    }
    .form-row, .form-row-3 {
        grid-template-columns: 1fr;
    }
    .trust-badges-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

 
 
/* Auth Modal */
.auth-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
}
.auth-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    position: relative;
    animation: modalFadeIn 0.3s ease-out;
}
@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
.auth-close {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}
.auth-close:hover {
    color: #333;
}
.auth-tabs {
    display: flex;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 20px;
}
.auth-tab {
    flex: 1;
    background: none;
    border: none;
    padding: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}
.auth-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}
.auth-form {
    display: none;
}
.auth-form.active {
    display: block;
}
.auth-form .form-group {
    margin-bottom: 15px;
}
.auth-form label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    font-weight: 500;
    color: #555;
}
.auth-form input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 15px;
    transition: border-color 0.2s;
}
.auth-form input:focus {
    border-color: var(--primary-color);
    outline: none;
}
.auth-submit {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.2s;
}
.auth-submit:hover {
    background-color: var(--secondary-color);
}
.auth-message {
    margin: 10px 0;
    font-size: 14px;
    text-align: center;
}
.auth-footer {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
}
.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
}
.auth-footer a:hover {
    text-decoration: underline;
}

/* User Dropdown */
.user-dropdown-container {
    position: relative;
    display: inline-block;
}
.user-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 8px;
    z-index: 100;
    overflow: hidden;
    margin-top: 10px;
}
.user-dropdown.show {
    display: block;
}
.user-greeting {
    padding: 12px 15px;
    margin: 0;
    background-color: #f9f9f9;
    border-bottom: 1px solid #eee;
    font-weight: 600;
    color: #333;
}
.user-dropdown a {
    color: #555;
    padding: 12px 15px;
    text-decoration: none;
    display: block;
    transition: background-color 0.2s;
}
.user-dropdown a:hover {
    background-color: #f5f5f5;
    color: var(--primary-color);
}
.user-dropdown a i {
    width: 20px;
    margin-right: 8px;
    text-align: center;
}
.user-dropdown .logout-link {
    border-top: 1px solid #eee;
    color: #e53e3e;
}
.user-dropdown .logout-link:hover {
    background-color: #fff5f5;
}


/* Access Required Modal */
.access-modal {
    display: none;
    position: fixed;
    z-index: 1050; /* higher than other things */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(3px);
}
.access-modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 420px;
    position: relative;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    animation: modalFadeIn 0.3s ease-out;
}
.access-close {
    position: absolute;
    top: 15px;
    right: 15px;
    color: #999;
    font-size: 24px;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
}
.access-close:hover {
    color: #333;
}
.access-title {
    color: #1e3a8a; /* deep blue */
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.access-desc {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 2rem;
}
.access-btn {
    display: block;
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 25px; /* highly rounded */
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}
.access-btn-login {
    background-color: #fff;
    color: #2563eb;
    border: 1px solid #2563eb;
}
.access-btn-login:hover {
    background-color: #f0f7ff;
}
.access-btn-register {
    background-color: #1e3a8a;
    color: #fff;
    border: 1px solid #1e3a8a;
}
.access-btn-register:hover {
    background-color: #152c6e;
}

/* Mobile Header Adjustments */
@media (max-width: 900px) {
    .top-bar {
        padding: 0.5rem 1rem;
        gap: 0.5rem;
    }
    .logo img {
        height: 50px;
    }
    .header-icons {
        gap: 0.8rem;
        font-size: 1.1rem;
    }
    #header-user-link span {
        font-size: 0.75rem !important;
        padding: 3px 6px !important;
    }
}

@media (max-width: 450px) {
    .top-bar {
        padding: 0.5rem;
    }
    .logo img {
        height: 40px;
    }
    .header-icons {
        gap: 0.5rem;
    }
    #header-user-link span {
        padding: 6px 10px !important;
        border-radius: 20px !important;
    }
    /* Hide the text 'My Account' and just show the icon */
    #header-user-link span {
        font-size: 0 !important;
    }
    #header-user-link span i {
        font-size: 1.2rem !important;
        margin: 0 !important;
    }
}
