/* ===== VARIABLES ===== */
:root {
    --color-obsidian: #121212;
    --color-gold: #d4af37;
    --color-gold-hover: #f3c745;
    --color-gold-subtle: rgba(212, 175, 55, 0.3);
    --color-light: #f8f9fa;
    --color-light-muted: #a0a0a0;
    --color-dark: #1e1e1e;
    --color-darker: #0d0d0d;

    --font-heading: 'Cinzel', serif;
    --font-body: 'Montserrat', sans-serif;

    --transition-fast: 0.3s ease;
    --transition-slow: 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ===== CUSTOM SCROLLBAR ===== */
@media (hover: hover) and (pointer: fine) {
    ::-webkit-scrollbar {
        width: 6px;
    }

    ::-webkit-scrollbar-track {
        background: var(--color-obsidian);
    }

    ::-webkit-scrollbar-thumb {
        background: var(--color-gold-subtle);
        border-radius: 10px;
    }

    ::-webkit-scrollbar-thumb:hover {
        background: var(--color-gold);
    }
}

/* ===== GLOBAL STYLES ===== */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body.dark-theme {
    background: radial-gradient(circle at top right, #1f1f26 0%, var(--color-obsidian) 100%);
    background-attachment: fixed;
    color: var(--color-light);
    font-family: var(--font-body);
    overflow-x: hidden;
    max-width: 100%;
}

/* Prevent overlap with fixed side ads on large screens */
@media (min-width: 1200px) and (max-width: 1440px) {
    .container {
        max-width: 900px !important;
    }
}

.font-playfair {
    font-family: var(--font-heading);
}

.text-gold {
    color: var(--color-gold) !important;
}

.bg-gold {
    background-color: var(--color-gold) !important;
}

.bg-darker {
    background-color: var(--color-darker);
}

.text-gradient-gold {
    background: linear-gradient(135deg, #f3c745 0%, #d4af37 50%, #b5952f 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.text-light-muted {
    color: var(--color-light-muted);
}

.border-gold-subtle {
    border-color: var(--color-gold-subtle) !important;
}

.ls-1 {
    letter-spacing: 1px;
}

.ls-2 {
    letter-spacing: 2px;
}

.py-6 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.max-w-600 {
    max-width: 600px;
}

/* Remove default link styling */
a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--color-gold);
}

/* Buttons */
.btn-gold {
    background-color: var(--color-gold);
    color: var(--color-darker);
    border: 1px solid var(--color-gold);
    transition: all var(--transition-fast);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.15);
}

.btn-gold:hover {
    background-color: transparent;
    color: var(--color-gold);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
    transform: translateY(-2px);
}

.btn-outline-gold {
    background-color: transparent;
    color: var(--color-gold);
    border: 1px solid var(--color-gold);
    transition: var(--transition-fast);
}



.navbar.scrolled {
    background-color: rgba(18, 18, 18, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    padding: 0.5rem 0;
}

.navbar-brand {
    color: var(--color-gold) !important;
    font-size: 1.5rem;
}

.nav-link {
    color: var(--color-light) !important;
    font-weight: 400;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin: 0 0.5rem;
    position: relative;
    width: fit-content;
}

.nav-link::before {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 5px;
    left: 50%;
    background-color: var(--color-gold);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 80%;
}

.nav-icon {
    color: var(--color-light);
    font-size: 1.1rem;
    transition: var(--transition-fast);
}

.nav-icon:hover {
    color: var(--color-gold);
    transform: translateY(-2px);
}

/* Mobile Offcanvas Menu Adjustments */
@media (max-width: 991.98px) {
    .offcanvas-body {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .offcanvas-body .navbar-nav {
        align-items: center;
        width: 100%;
        margin-bottom: 2rem !important;
    }

    .offcanvas-body .nav-item {
        margin-bottom: 1rem;
    }

    .offcanvas-body .dropdown-menu {
        text-align: center;
        background: transparent !important;
        border: none !important;
        box-shadow: none;
        padding-top: 0;
    }

    .offcanvas-body .d-flex.align-items-center {
        justify-content: center;
        gap: 2rem;
    }
}

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background-color: var(--color-obsidian);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(18, 18, 18, 0.4) 0%, rgba(18, 18, 18, 0.9) 100%);
    z-index: 0;
}

/* ===== ADS SECTION ===== */

/* Center horizontal ads on all pages (excluding bottom fixed bar) */
ins.adsbygoogle[data-ad-format="horizontal"] {
    display: block !important;
    margin: 0 auto !important;
    max-width: 728px;
}

/* Bottom fixed bar: keep full width within its constrained container */
.position-fixed ins.adsbygoogle[data-ad-format="horizontal"] {
    max-width: 100% !important;
}

.ad-placeholder {
    background-color: rgba(25, 25, 25, 0.5);
    min-height: 120px;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
}

@media (max-width: 768px) {
    .ad-placeholder {
        height: auto !important;
        min-height: 50px !important;
        padding: 0.5rem !important;
    }

    .ad-placeholder span {
        font-size: 0.6rem !important;
        line-height: 1.1;
    }

    .ad-placeholder i {
        font-size: 1rem !important;
        margin-bottom: 0.25rem !important;
    }

}

/* ===== PAGINATION ===== */
.pagination {
    flex-wrap: wrap;
    gap: 8px;
    /* Increased gap */
    justify-content: center;
}

.pagination .page-item {
    margin: 0 !important;
    /* Reset potential Bootstrap margins */
}

.pagination .page-link {
    transition: all 0.3s ease;
    min-width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 4px !important;
    /* Ensure buttons are separate squares */
    padding: 0;
}

.pagination .page-item.active .page-link {
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

@media (max-width: 576px) {
    .pagination {
        gap: 6px;
    }

    .pagination .page-link {
        min-width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }
}

/* ===== COLLECTIONS ===== */
.image-wrapper {
    position: relative;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 40%);
    opacity: 0.9;
}

.hover-zoom img {
    transition: transform 1.5s ease;
}

.hover-zoom:hover img {
    transform: scale(1.05);
}

.product-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.product-card:hover {
    border-color: rgba(212, 175, 55, 0.4);
    background-color: rgba(212, 175, 55, 0.03);
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.pb-100 {
    padding-bottom: 100%;
    /* forces 1:1 aspect ratio */
}

.placeholder-img {
    background-color: #222;
    color: #444;
}

/* ===== FOOTER ===== */
.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--color-light-muted);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--color-gold);
    padding-left: 5px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--color-dark);
    color: var(--color-light);
    transition: var(--transition-fast);
}

.social-link:hover {
    background-color: var(--color-gold);
    color: var(--color-obsidian);
    border-color: var(--color-gold);
}

/* ===== ANIMATIONS ===== */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-up.active,
.reveal-left.active,
.reveal-right.active {
    opacity: 1;
    transform: translate(0);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom Placeholder Styling */
::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
    opacity: 1;
}

:-ms-input-placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}

::-ms-input-placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Custom Place Order Button Hover */
.place-order-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.place-order-btn:hover::before {
    left: 100%;
}

.place-order-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2) !important;
}

/* ===== ULTRA-MODERN LAYOUT ENHANCEMENTS ===== */

/* Typography */
h1.display-3,
h2.display-5 {
    font-weight: 300 !important;
    letter-spacing: -1px;
}

@media (min-width: 992px) {
    h1.display-3 {
        font-size: 5.5rem;
    }

    h2.display-5 {
        font-size: 4rem;
    }
}

/* Infinte Scrolling Marquee */
.marquee-container {
    width: 100%;
    overflow: hidden;
    background: var(--color-darker);
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding: 1.5rem 0;
    white-space: nowrap;
    position: relative;
    z-index: 10;
    display: flex;
}

.marquee-text {
    flex-shrink: 0;
    display: inline-block;
    padding-left: 0;
    animation: marquee 25s linear infinite;
    font-family: var(--font-heading);
    color: var(--color-gold);
    font-size: 1.25rem;
    letter-spacing: 4px;
    text-transform: uppercase;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Staggered Grids for an Editorial look */
@media (min-width: 768px) {
    .stagger-grid .col-md-4:nth-child(2) {
        transform: translateY(40px);
    }
}

/* Premium Image Hover Hover (Scale + Rotate) */
.product-card .card-img-top img {
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.product-card:hover .card-img-top img {
    transform: scale(1.08) rotate(1.5deg);
}

.product-card .card-img-top::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    filter: blur(20px);
    z-index: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.product-card:hover .card-img-top::after {
    opacity: 1;
}

.product-card .card-img-top img {
    z-index: 1;
    position: relative;
}

/* Sliding Arrow Button */
.btn-arrow-slide {
    position: relative;
    overflow: hidden;
    padding-right: 2.5rem !important;
}

.btn-arrow-slide .arrow {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%) translateX(-10px);
    opacity: 0;
    transition: all 0.3s ease;
}

.btn-arrow-slide:hover .arrow {
    transform: translateY(-50%) translateX(0);
    opacity: 1;
}

/* ===== VIEW DETAILS OVERLAY ===== */
.view-details-btn {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translate(-50%, 20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
    padding: 8px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    z-index: 5;
    border-radius: 4px;
}

.product-card:hover .view-details-btn {
    transform: translate(-50%, 0);
    opacity: 1;
}

.view-details-btn:hover {
    background: var(--color-gold);
    color: var(--color-obsidian);
}

/* ===== PRODUCT GALLERY ===== */
.thumbnail-container {
    width: 100%;
    flex-shrink: 0;
}

.thumbnail-container img {
    width: 45px;
    height: 45px;
    object-fit: cover;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 3px;
    transition: all 0.3s ease;
}

.thumbnail-container img:hover,
.thumbnail-container img.active {
    border-color: var(--color-gold);
}

/* Hidden scrollbars for horizontal sliding on mobile */
.thumbnail-container::-webkit-scrollbar {
    display: none;
}

.thumbnail-container {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

@media (min-width: 992px) {
    .thumbnail-container {
        width: 65px;
    }

    .thumbnail-container img {
        width: 100%;
        height: 65px;
    }
}

.main-image-wrapper {
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--color-dark);
}

@media (min-width: 992px) {
    .main-image-wrapper {
        height: 75vh;
        min-height: 500px;
    }
}

/* Fix Dropdown Hover Background & Styling */
@media (min-width: 992px) {
    .dropdown:hover .dropdown-menu {
        display: block;
        animation: fadeIn 0.3s ease;
    }
}

.dropdown-menu {
    background: rgba(31, 31, 38, 0.95) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.2) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    padding: 1rem 0;
    margin-top: 0;
    border-radius: 8px;
}

.dropdown-item {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus {
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--color-gold) !important;
    padding-left: 2rem;
}

/* ===== SHOP BY CATEGORY SECTION ===== */
.category-block {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    height: 300px;
    text-decoration: none;
    background: var(--color-darker);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.category-block::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    filter: blur(20px);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.category-block:hover::before {
    opacity: 1;
}

.category-icon-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
    z-index: 2;
}

.category-block:hover .category-icon-wrapper {
    transform: translate(-50%, -70%) scale(1.1);
    color: var(--color-gold);
}

.category-content {
    position: absolute;
    bottom: 2rem;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 3;
    transition: transform 0.4s ease;
}

.category-block:hover .category-content {
    transform: translateY(-5px);
}

.category-title {
    color: var(--color-light);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.category-block:hover .category-title {
    color: var(--color-gold);
}

.category-link-text {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-gold);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
    display: block;
}

.category-block:hover .category-link-text {
    opacity: 1;
    transform: translateY(0);
}