/* ==========================================================================
   Antique Silver Jewellery - Luxury Shopify-Style E-commerce Stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --gold: #d4af37;
    --gold-dark: #b8902d;
    --gold-light: #fbf5e6;
    --silver: #9e9e9e;
    --silver-light: #f0f2f5;
    --dark: #121212;
    --dark-muted: #2d2d2d;
    --text-primary: #1a1a1a;
    --text-muted: #666666;
    --bg-light: #faf8f5;
    --border-color: #e5ded4;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.1);
    --shadow-lg: 0 16px 40px rgba(0,0,0,0.15);
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    color: var(--text-primary);
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .section-title h2, .footer-w-title, .heading-title {
    font-family: 'Cinzel', 'Playfair Display', Georgia, serif !important;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   Header & Navigation Enhancements
   ========================================================================== */
.announcement-bar {
    background: #111;
    color: #f7eed8;
    padding: 7px 0;
    font-size: 12px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(212,175,55,0.25);
}
.announcement-bar a {
    color: var(--gold);
    text-decoration: underline;
    font-weight: 600;
}
.announcement-bar .badge-gold {
    background: var(--gold);
    color: #111;
    padding: 2px 7px;
    border-radius: 3px;
    font-weight: 700;
    margin-right: 8px;
}

.header-bottom-luxury {
    background: #ffffff;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    position: relative;
    z-index: 100;
    padding: 14px 0;
}
.header-bottom-luxury.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    animation: slideDown 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.brand-logo-text {
    font-family: 'Cinzel', serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none !important;
    display: inline-block;
    line-height: 1.2;
}
.brand-logo-text span {
    color: var(--gold);
    font-size: 10px;
    display: block;
    letter-spacing: 3px;
    font-weight: 600;
}

/* Live Search Bar */
.search-container {
    position: relative;
    max-width: 320px;
    width: 100%;
}
.search-container input {
    width: 100%;
    height: 38px;
    padding: 0 38px 0 14px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 13px;
    outline: none;
    transition: var(--transition);
    background: #fbf9f6;
}
.search-container input:focus {
    border-color: var(--gold);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(212,175,55,0.15);
}
.search-container .search-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 14px;
}

/* Autocomplete dropdown */
.search-autocomplete-dropdown {
    position: absolute;
    top: 105%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    border: 1px solid #e9e5df;
    max-height: 380px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}
.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid #f2ede4;
    text-decoration: none !important;
    transition: var(--transition);
}
.search-result-item:hover {
    background: #fbf8f2;
}
.search-result-item img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 4px;
}
.search-result-item .item-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--dark);
    margin: 0;
    line-height: 1.3;
}
.search-result-item .item-price {
    font-size: 13px;
    font-weight: 700;
    color: var(--gold-dark);
}

/* Header Action Icons */
.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
}
.action-icon-link {
    position: relative;
    color: var(--dark);
    font-size: 19px;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    transition: var(--transition);
}
.action-icon-link:hover {
    color: var(--gold-dark);
}
.action-icon-link .counter-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #5A0C1A;
    color: #ffffff !important;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* User Account Dropdown */
.user-menu-dropdown {
    position: relative;
}
.user-menu-dropdown:hover .user-dropdown-content {
    display: block;
}
.user-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: #fff;
    min-width: 200px;
    box-shadow: var(--shadow-md);
    border-radius: 8px;
    border: 1px solid #eae5db;
    padding: 10px 0;
    z-index: 1000;
}
.user-dropdown-content a {
    display: block;
    padding: 8px 18px;
    color: #333;
    font-size: 13px;
    text-decoration: none !important;
    transition: var(--transition);
}
.user-dropdown-content a:hover {
    background: #faf6ee;
    color: var(--gold-dark);
    padding-left: 22px;
}

/* ==========================================================================
   Shopify-Style Slide-Out Cart Drawer
   ========================================================================== */
.cart-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 999998;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    backdrop-filter: blur(2px);
}
.cart-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    max-width: 90vw;
    height: 100vh;
    background: #ffffff;
    z-index: 999999;
    box-shadow: -5px 0 30px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    transition: right 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.cart-drawer.active {
    right: 0 !important;
    display: flex !important;
    visibility: visible !important;
}

.cart-drawer-header {
    padding: 20px 22px;
    background: #111;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cart-drawer-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 1px;
}
.cart-drawer-header .close-drawer {
    background: none;
    border: none;
    color: #aaa;
    font-size: 22px;
    cursor: pointer;
    transition: var(--transition);
}
.cart-drawer-header .close-drawer:hover {
    color: #fff;
}

.free-shipping-progress {
    padding: 12px 20px;
    background: #faf6ee;
    border-bottom: 1px solid #ebdcc5;
    font-size: 12px;
    text-align: center;
}
.free-shipping-bar {
    height: 5px;
    background: #e2d9cc;
    border-radius: 3px;
    margin-top: 6px;
    overflow: hidden;
}
.free-shipping-fill {
    height: 100%;
    background: var(--gold);
    transition: width 0.4s ease;
}

.cart-drawer-items {
    flex-grow: 1;
    overflow-y: auto;
    padding: 16px 20px;
}
.drawer-item {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #f2ede5;
}
.drawer-item img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    background: #fdfbf7;
}
.drawer-item-details {
    flex-grow: 1;
}
.drawer-item-title {
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 4px;
    color: var(--dark);
    line-height: 1.3;
}
.drawer-item-purity {
    font-size: 11px;
    color: #888;
    margin-bottom: 6px;
}
.drawer-item-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--gold-dark);
}
.drawer-qty-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-top: 6px;
}
.drawer-qty-control button {
    background: #f7f7f7;
    border: none;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-weight: bold;
}
.drawer-qty-control span {
    padding: 0 10px;
    font-size: 12px;
}

.cart-drawer-footer {
    padding: 18px 20px;
    border-top: 1px solid #eee;
    background: #faf8f5;
}
.drawer-subtotal {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 15px;
    font-weight: 700;
}
.drawer-subtotal span:last-child {
    color: var(--gold-dark);
    font-size: 18px;
}
.btn-drawer-checkout {
    display: block;
    width: 100%;
    padding: 14px 0;
    background: var(--dark);
    color: #fff !important;
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 4px;
    text-decoration: none !important;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}
.btn-drawer-checkout:hover {
    background: var(--gold-dark);
    color: #111 !important;
}
.btn-drawer-cart {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 12px;
    color: #666;
    margin-top: 8px;
    text-decoration: underline;
}

/* ==========================================================================
   Image View on Page Load & Shimmer Skeleton Loading
   ========================================================================== */
.image-loading-skeleton {
    background: linear-gradient(90deg, #f0ede6 25%, #f9f7f2 50%, #f0ede6 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s infinite;
}
@keyframes skeletonShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

img.lazy-load-img {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}
img.lazy-load-img.loaded {
    opacity: 1;
}

/* ==========================================================================
   Product Card Micro-interactions
   ========================================================================== */
.luxury-product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.luxury-product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.luxury-product-card:hover .primary-thumb {
    transform: scale(1.06);
}
.product-hover-actions {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}
.luxury-product-card:hover .product-hover-actions {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Toast Notification System
   ========================================================================== */
#toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.toast-msg {
    background: #111;
    color: #fff;
    padding: 12px 20px;
    border-radius: 6px;
    box-shadow: var(--shadow-lg);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 4px solid var(--gold);
    animation: toastIn 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    max-width: 360px;
}
.toast-msg.toast-success {
    border-left-color: #2e7d32;
}
.toast-msg.toast-error {
    border-left-color: #c62828;
}
@keyframes toastIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes toastOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

/* ==========================================================================
   Trust Badges & Guarantee Bar
   ========================================================================== */
.trust-badges-bar {
    background: #fbf9f5;
    padding: 35px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin: 40px 0;
}
.trust-badge-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 15px;
}
.trust-badge-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e5dccf;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--gold-dark);
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}
.trust-badge-text h4 {
    margin: 0 0 3px;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Outfit', sans-serif !important;
}
.trust-badge-text p {
    margin: 0;
    font-size: 12px;
    color: #777;
}

/* Category Grid Showcase */
.category-showcase-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 220px;
    margin-bottom: 25px;
    background: #000;
    box-shadow: var(--shadow-sm);
}
.category-showcase-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transition: transform 0.6s ease;
}
.category-showcase-card:hover img {
    transform: scale(1.08);
    opacity: 0.75;
}
.category-showcase-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 70%);
}
.category-showcase-overlay h3 {
    color: #fff;
    font-size: 18px;
    margin: 0 0 4px;
}
.category-showcase-overlay span {
    color: var(--gold);
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Responsive tweaks */
@media (max-width: 767px) {
    .header-actions { gap: 12px; }
    .search-container { display: none; }
    .brand-logo-text { font-size: 16px; }
    .category-showcase-card { height: 160px; }
    .cart-drawer { width: 100vw; }
}

/* Wholesale B2B Product Card Actions - Venus Official Logo Palette */
.wholesale-card-actions,
.sf-card-actions {
    display: flex !important;
    gap: 6px !important;
    width: 100% !important;
    margin-top: 8px !important;
}
.wholesale-card-actions .btn-card-add,
.btn-card-add {
    background: #5A0C1A !important; /* Logo Deep Maroon */
    color: #ffffff !important;
    border: none !important;
    border-radius: 5px !important;
}
.wholesale-card-actions .btn-card-details,
.btn-card-details {
    background: #C5A059 !important; /* Logo Warm Gold */
    color: #ffffff !important;
    border: none !important;
    border-radius: 5px !important;
}
.wholesale-card-actions .btn-card-add *,
.wholesale-card-actions .btn-card-details *,
.btn-card-add *,
.btn-card-details * {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

@media (max-width: 991px) {
    .wholesale-card-actions,
    .sf-card-actions {
        flex-direction: column !important;
        gap: 5px !important;
    }
    .wholesale-card-actions .btn-card-add,
    .wholesale-card-actions .btn-card-details,
    .btn-card-add,
    .btn-card-details {
        width: 100% !important;
        flex: none !important;
        height: 32px !important;
        font-size: 11.5px !important;
        justify-content: center !important;
    }
}

