/* assets/css/style.css - Main E-commerce Luxury Styling */

:root {
    --gold: #D4AF37;
    --gold-hover: #C59B27;
    --gold-light: #F7F5EE;
    --black: #111111;
    --black-light: #1c1c1c;
    --grey-light: #f9f9f9;
    --grey-border: #e2e2e2;
    --text-muted: #777777;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
}

body {
    font-family: var(--font-body);
    color: var(--black);
    background-color: #ffffff;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-playfair {
    font-family: var(--font-heading);
}

.text-gold {
    color: var(--gold) !important;
}

.bg-gold {
    background-color: var(--gold) !important;
}

.tracking-wide {
    letter-spacing: 0.1em;
}

.fs-9 {
    font-size: 0.75rem;
}

.fs-8 {
    font-size: 0.8rem;
}

.fs-7 {
    font-size: 0.9rem;
}

/* Glassmorphism Header */
.bg-white-glass {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

header {
    border-bottom: 1px solid var(--grey-border);
    transition: all 0.3s ease;
}

header .nav-link {
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

header .nav-link:hover {
    color: var(--gold) !important;
}

/* Custom Buttons */
.btn-gold {
    background-color: var(--gold);
    color: var(--black);
    border: 1px solid var(--gold);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.6rem 1.8rem;
    transition: all 0.3s ease;
}

.btn-gold:hover {
    background-color: var(--black);
    color: var(--gold);
    border-color: var(--black);
}

.btn-outline-gold {
    background-color: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.6rem 1.8rem;
    transition: all 0.3s ease;
}

.btn-outline-gold:hover {
    background-color: var(--gold);
    color: var(--black);
}

.btn-black {
    background-color: var(--black);
    color: #ffffff;
    border: 1px solid var(--black);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.6rem 1.8rem;
    transition: all 0.3s ease;
}

.btn-black:hover {
    background-color: var(--gold);
    color: var(--black);
    border-color: var(--gold);
}

/* Hero Carousel */
.hero-slider .carousel-item {
    height: 70vh;
    min-height: 400px;
    background-color: #000;
}

.hero-slider .carousel-item img {
    opacity: 0.65;
    object-fit: cover;
    height: 100%;
}

.hero-caption {
    top: 50%;
    transform: translateY(-50%);
    bottom: initial;
    text-align: left;
}

.hero-caption h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 700;
    animation: fadeInUp 0.8s ease;
}

.hero-caption p {
    font-size: 1.2rem;
    letter-spacing: 0.05em;
    animation: fadeInUp 1s ease;
}

/* Product Cards */
.product-card {
    border: 1px solid var(--grey-border);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: #ffffff;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transform: translateY(-5px);
    border-color: var(--gold);
}

.product-card .img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1/1;
    background-color: var(--grey-light);
}

.product-card .img-wrap img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card:hover .img-wrap img {
    transform: scale(1.08);
}

.product-card .badge-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.product-card .wishlist-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
}

.wishlist-btn-circle {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.9);
    color: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    transition: all 0.2s ease;
}

.wishlist-btn-circle:hover {
    background-color: var(--gold);
    color: var(--black);
}

.wishlist-btn-circle.active {
    color: #e63946;
}

.product-card .details-wrap {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Category Grid Card */
.category-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 200px;
    display: block;
    background-color: #000;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: all 0.5s ease;
}

.category-card:hover img {
    transform: scale(1.06);
    opacity: 0.5;
}

.category-card .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    z-index: 2;
}

.category-card .overlay h4 {
    color: #ffffff;
    font-weight: 600;
    margin: 0;
}

.category-card .overlay small {
    color: var(--gold);
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.1em;
}

/* Sticky Mobile Buy Bar */
.sticky-buy-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--grey-border);
    padding: 10px 15px;
    z-index: 1000;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.08);
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50px;
    text-align: center;
    font-size: 32px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    color: white;
    transform: scale(1.08);
}

/* Ratings */
.star-rating {
    color: var(--gold);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive styles */
@media (max-width: 768px) {
    .hero-slider .carousel-item {
        height: 50vh;
    }
    .hero-caption h1 {
        font-size: 2.2rem;
    }
    .hero-caption p {
        font-size: 1rem;
    }
}

/* Footer text and links visibility overrides */
footer {
    background-color: #000000 !important;
}
footer, 
footer p, 
footer span, 
footer div, 
footer .text-muted {
    color: #c5c5c5 !important;
    --bs-text-opacity: 1 !important;
}
footer a {
    color: #c5c5c5 !important;
    transition: all 0.2s ease;
}
footer a:hover {
    color: var(--gold) !important;
    text-shadow: 0 0 5px rgba(212, 175, 55, 0.3);
}
footer hr {
    border-color: #444444 !important;
    opacity: 0.5;
}

/* Mobile Header Single Row Layout & Floating WhatsApp repositioning */
@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.1rem !important;
    }
    .navbar-brand span {
        font-size: 0.75rem !important;
    }
    .d-flex.align-items-center.gap-3.ms-auto {
        gap: 0.65rem !important;
    }
    .d-flex.align-items-center.gap-3.ms-auto a {
        font-size: 1.1rem !important;
    }
    /* Adjust floating whatsapp for mobile to prevent overlapping buy bar */
    .whatsapp-float {
        bottom: 85px !important;
        right: 15px !important;
        width: 50px !important;
        height: 50px !important;
        font-size: 26px !important;
    }
    /* Smaller category card height on mobile */
    .category-card {
        height: 150px !important;
    }
}

/* Custom Premium Luxury Toast Notification */
.custom-toast {
    position: relative;
    background: rgba(17, 17, 17, 0.95);
    color: #ffffff;
    border-left: 4px solid var(--gold);
    padding: 16px 24px;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55), opacity 0.3s ease;
    opacity: 0;
    backdrop-filter: blur(10px);
    width: 350px;
}

.custom-toast.show {
    transform: translateX(0);
    opacity: 1;
}

.custom-toast-icon {
    color: var(--gold);
    font-size: 1.5rem;
}

.custom-toast-content {
    flex-grow: 1;
}

.custom-toast-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 2px;
    color: var(--gold);
}

.custom-toast-message {
    font-size: 0.8rem;
    color: #cccccc;
}

.custom-toast-close {
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.custom-toast-close:hover {
    opacity: 1;
}

