/* 
 * VELARA LUXURY - Premium CSS 
 * Inspired by modern e-commerce (Woodmart)
 */

 :root {
    --primary-color: #161513;
    --primary-light: #333333;
    --accent-color: #dcb37b; /* Gold/Champagne accent */
    --text-dark: #1a1a1a;
    --text-muted: #666666;
    --bg-light: #ffffff;
    --bg-offwhite: #f7f7f7;
    --border-color: #e5e5e5;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.12);
    
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

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

/* ================== TOP BAR ================== */
.top-bar {
    background-color: var(--bg-offwhite);
    font-size: 0.8rem;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}
.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-bar-text {
    font-weight: 500;
    letter-spacing: 0.5px;
}
.top-bar-links a {
    margin-left: 15px;
    color: var(--text-muted);
}
.top-bar-links a:hover {
    color: var(--primary-color);
}

/* ================== HEADER ================== */
.app-header {
    background: #161513;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #222222;
    transition: box-shadow 0.3s ease;
}

.app-header.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.brand-logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #ffffff;
    text-transform: uppercase;
    text-decoration: none;
}

.desktop-nav {
    display: none;
}

.desktop-nav a {
    text-decoration: none;
    color: #cccccc;
    font-weight: 500;
    font-size: 0.95rem;
    margin-right: 2rem;
    transition: color 0.3s ease;
    position: relative;
}

.desktop-nav a:hover, .desktop-nav a.active {
    color: var(--accent-color);
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.desktop-nav a:hover::after, .desktop-nav a.active::after {
    width: 100%;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-box {
    display: none;
    position: relative;
}

.search-box input {
    background: #222222;
    border: 1px solid #333333;
    border-radius: 20px;
    padding: 8px 16px 8px 36px;
    font-family: inherit;
    font-size: 0.9rem;
    width: 200px;
    transition: width 0.3s ease, border-color 0.3s ease;
    color: #ffffff;
}

.search-box input:focus {
    width: 250px;
    outline: none;
    border-color: var(--accent-color);
}

.search-box svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: #888888;
}

.cart-trigger {
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    color: #ffffff;
    display: flex;
    align-items: center;
}

.cart-trigger:hover {
    color: var(--accent-color);
}

.header-left, .header-center, .header-right {
    flex: 1;
    display: flex;
    align-items: center;
}

.header-center {
    justify-content: center;
}

.header-right {
    justify-content: flex-end;
    gap: 20px;
}

.brand-logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.desktop-nav {
    display: none;
}
@media (min-width: 992px) {
    .desktop-nav {
        display: flex;
        gap: 25px;
        margin-left: 20px;
    }
    .desktop-nav a {
        font-weight: 500;
        font-size: 0.95rem;
        position: relative;
    }
    .desktop-nav a::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 0;
        width: 0;
        height: 2px;
        background-color: var(--primary-color);
        transition: var(--transition);
    }
    .desktop-nav a:hover::after, .desktop-nav a.active::after {
        width: 100%;
    }
    .menu-toggle-btn {
        display: none !important;
    }
}

.menu-toggle-btn {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 24px;
}
.menu-toggle-btn span {
    display: block;
    height: 2px;
    width: 100%;
    background: #ffffff;
    transition: var(--transition);
}

.search-box {
    display: none;
    position: relative;
}
@media (min-width: 768px) {
    .search-box {
        display: flex;
        align-items: center;
    }
}
.search-box input {
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 8px 15px 8px 35px;
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
    width: 200px;
}
.search-box input:focus {
    border-color: var(--primary-color);
}
.search-box svg {
    position: absolute;
    left: 10px;
    width: 16px;
    height: 16px;
    color: var(--text-muted);
}

.cart-trigger {
    position: relative;
    display: flex;
    align-items: center;
}
.cart-trigger svg {
    width: 24px;
    height: 24px;
}
.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--accent-color);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ================== HERO BANNER ================== */
.hero-banner {
    background-color: var(--bg-offwhite);
    overflow: hidden;
}
.hero-inner {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    padding: 40px 20px;
    gap: 30px;
}
@media (min-width: 992px) {
    .hero-inner {
        flex-direction: row;
        padding: 60px 20px;
        min-height: 500px;
    }
    .hero-content {
        flex: 1;
        padding-right: 40px;
    }
    .hero-image {
        flex: 1.2;
    }
}
.hero-subtitle {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 10px;
}
.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 20px;
}
.hero-text {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 450px;
}
.btn-primary {
    background: var(--primary-color);
    color: white;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}
.hero-image img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    width: 100%;
    object-fit: cover;
}
/* ================== BRANDS CAROUSEL ================== */
.brands-carousel-section {
    background: #ffffff;
    padding: 40px 0;
    overflow: hidden;
}
.brands-marquee {
    display: flex;
    overflow: hidden;
    user-select: none;
    gap: 60px;
}
.brands-marquee-content {
    flex-shrink: 0;
    display: flex;
    justify-content: space-around;
    min-width: 100%;
    gap: 60px;
    animation: scroll-marquee 25s linear infinite;
}
.brands-marquee-content img {
    height: 70px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: var(--transition);
}
.brands-marquee-content img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

@keyframes scroll-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-100% - 60px)); }
}


/* ================== CATALOG ================== */
.catalog-container {
    display: flex;
    flex-direction: column;
    padding: 60px 20px;
    gap: 40px;
}
@media (min-width: 992px) {
    .catalog-container {
        flex-direction: row;
    }
}

.sidebar-categories {
    width: 100%;
}
@media (min-width: 992px) {
    .sidebar-categories {
        width: 250px;
        flex-shrink: 0;
        position: sticky;
        top: 100px;
        align-self: flex-start;
    }
}
.sidebar-categories h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}
.sidebar-categories ul {
    list-style: none;
}
.sidebar-categories li {
    margin-bottom: 10px;
}
.sidebar-categories button {
    font-size: 1rem;
    color: var(--text-muted);
    transition: var(--transition);
    width: 100%;
    text-align: left;
    padding: 5px 0;
}
.sidebar-categories button:hover, .sidebar-categories li.active button {
    color: var(--primary-color);
    font-weight: 600;
}

.catalog-content {
    flex: 1;
}

.section-title-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}
.section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 500;
    margin-right: 20px;
}
.section-line {
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 30px;
}
@media (min-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.product-card {
    position: relative;
    transition: var(--transition);
}
.product-card:hover {
    transform: translateY(-5px);
}
.card-img-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-sm);
    margin-bottom: 15px;
    cursor: pointer;
    background: var(--bg-offwhite);
    aspect-ratio: 3/4;
}
.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.product-card:hover .card-img-wrapper img {
    transform: scale(1.05);
}

.card-overlay-actions {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    padding: 15px;
    transition: var(--transition);
    opacity: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
}

.sold-out-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: rgba(0, 0, 0, 0.75);
    color: #ffffff;
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    z-index: 2;
    backdrop-filter: blur(4px);
    letter-spacing: 1px;
}
.product-card:hover .card-overlay-actions {
    bottom: 0;
    opacity: 1;
}
.btn-add-cart {
    width: 100%;
    background: var(--bg-light);
    color: var(--primary-color);
    padding: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.btn-add-cart:hover {
    background: var(--primary-color);
    color: white;
}

.card-info {
    text-align: center;
}
.card-category {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    display: block;
}
.card-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 5px;
}
.card-title a {
    color: var(--primary-color);
}

/* ==========================================
   PRODUCT GALLERY & LIGHTBOX
   ========================================== */
.product-main-img {
    width: 100%;
    margin-bottom: 10px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-offwhite);
    padding: 20px;
}
.product-main-img img {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 400px;
    transition: transform 0.3s;
}
.product-main-img:hover img {
    transform: scale(1.02);
}
.product-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
}
.product-thumbnails .thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.6;
    transition: var(--transition);
}
.product-thumbnails .thumb:hover,
.product-thumbnails .thumb.active {
    opacity: 1;
    border-color: var(--primary-color);
}

.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}
.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}
.lightbox-img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 10000;
}
.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 15px;
    cursor: pointer;
    z-index: 10000;
    border-radius: 50%;
    transition: var(--transition);
}
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255,255,255,0.5);
}
.lightbox-prev {
    left: 20px;
}
.lightbox-next {
    right: 20px;
}
.card-price {
    font-weight: 600;
    color: var(--accent-color);
}

.no-results {
    text-align: center;
    padding: 50px 20px;
    background: var(--bg-offwhite);
    border-radius: var(--radius-md);
    color: var(--text-muted);
}

/* ================== FOOTER ================== */
.app-footer {
    background: var(--primary-color);
    color: white;
    padding: 60px 0 20px;
    margin-top: 60px;
}
.footer-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
@media (min-width: 768px) {
    .footer-inner {
        grid-template-columns: 2fr 1fr 1fr;
    }
}
.footer-logo {
    color: white;
    display: block;
    margin-bottom: 15px;
}
.footer-desc {
    color: rgba(255,255,255,0.7);
    margin-bottom: 20px;
    max-width: 300px;
}
.social-links {
    display: flex;
    gap: 15px;
}
.social-links a {
    display: inline-block;
    transition: var(--transition);
}
.social-links a:hover {
    transform: scale(1.1);
}
.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 20px;
}
.footer-col a {
    display: block;
    color: rgba(255,255,255,0.7);
    margin-bottom: 10px;
}
.footer-col a:hover {
    color: white;
}
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

/* ================== MODALS & DRAWERS ================== */
.modal-overlay, .cart-drawer-overlay, .mobile-menu-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    backdrop-filter: blur(4px);
}
.modal-overlay.active, .cart-drawer-overlay.active, .mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-dialog {
    background: var(--bg-light);
    width: 90%;
    max-width: 800px;
    margin: 50px auto;
    border-radius: var(--radius-md);
    position: relative;
    transform: translateY(20px);
    transition: var(--transition);
    max-height: 90vh;
    overflow-y: auto;
}
.modal-overlay.active .modal-dialog {
    transform: translateY(0);
}
.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    z-index: 10;
    background: white;
    width: 32px; height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    color: var(--text-dark);
}

/* Modal Body Layout */
.product-detail-layout {
    display: flex;
    flex-direction: column;
}
@media (min-width: 768px) {
    .product-detail-layout {
        flex-direction: row;
    }
}
.product-detail-img {
    flex: 1;
    background: var(--bg-offwhite);
    padding: 20px;
}
.product-detail-img img {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 400px;
}
.product-detail-info {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
}
.product-detail-cat {
    text-transform: uppercase;
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 10px;
}
.product-detail-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 10px;
    line-height: 1.2;
}
.product-detail-price {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 20px;
}
.product-detail-desc {
    color: var(--text-muted);
    margin-bottom: 30px;
    white-space: pre-wrap;
    flex: 1;
}
.product-add-action {
    display: flex;
    gap: 15px;
}
.qty-selector {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.qty-selector button {
    width: 40px;
    height: 48px;
    background: var(--bg-offwhite);
    font-size: 1.2rem;
    transition: var(--transition);
}
.qty-selector button:hover {
    background: #e0e0e0;
}
.qty-selector span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    font-weight: 600;
}
.btn-add {
    flex: 1;
    height: 48px;
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.btn-add:hover {
    background: var(--primary-light);
}

/* Cart Drawer */
.cart-drawer {
    position: fixed;
    top: 0; right: -400px;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: var(--bg-light);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    box-shadow: -5px 0 30px rgba(0,0,0,0.1);
}
.cart-drawer-overlay.active .cart-drawer {
    right: 0;
}
.cart-drawer-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cart-drawer-header h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
}
.cart-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}
.cart-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--bg-offwhite);
}
.cart-item-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    background: var(--bg-offwhite);
}
.cart-item-details {
    flex: 1;
}
.cart-item-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 5px;
}
.cart-item-price {
    color: var(--accent-color);
    font-weight: 500;
    margin-bottom: 10px;
}
.cart-item-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.remove-item {
    color: #ff4d4f;
    font-size: 0.8rem;
    text-decoration: underline;
}
.cart-drawer-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-offwhite);
}
.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
}
.btn-whatsapp {
    background: #25D366;
}
.btn-whatsapp:hover {
    background: #128C7E;
}
.w-100 {
    width: 100%;
}

/* Mobile Menu */
.mobile-menu-content {
    position: fixed;
    top: 0; left: -300px;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--bg-light);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.mobile-menu-overlay.active .mobile-menu-content {
    left: 0;
}
.mobile-menu-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}
.mobile-nav {
    display: flex;
    flex-direction: column;
    padding: 20px;
}
.mobile-nav a {
    display: block;
    padding: 15px 20px;
    font-size: 1.1rem;
    color: var(--text-dark);
    border-bottom: 1px solid var(--bg-offwhite);
    font-weight: 500;
}
.mobile-nav a:hover {
    color: var(--primary-color);
}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    transition: transform 0.3s;
}
.whatsapp-float:hover {
    transform: scale(1.1);
}
