/* Base Design System - Luxury Theme */
:root {
    /* ... existing vars ... */
    --color-gold-light: #F2D56F;
    --color-gold: #D4AF37;
    --color-gold-dark: #AA8C2C;
    --color-black: #050505;
    --color-dark-gray: #121212;
    --color-gray: #2A2A2A;
    --color-text-light: #F5F5F5;
    --color-text-muted: #A0A0A0;
    --color-white: #FFFFFF;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;

    --transition-speed: 0.3s;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.3);
    --shadow-gold: 0 4px 20px rgba(212, 175, 55, 0.15);
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    /* Accessibility: Allow OS text scaling */
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    background: url('../assets/jerusalem-bg.jpg') no-repeat center center fixed;
    background-size: cover;
    position: relative;
    color: var(--color-text-light);
    font-family: var(--font-body);
    line-height: 1.6;
    min-height: 100vh;
    font-size: 1rem;
    /* Base relative size */
}

/* ... (Mobile BG Fix omitted for brevity, keeping existing) ... */

/* Forced Input Styles - Scalable */
input,
select,
textarea {
    width: 100%;
    padding: 0.9rem !important;
    /* rem for scaling */
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2) !important;
    color: var(--color-white) !important;
    font-family: var(--font-body) !important;
    font-size: 1rem !important;
    /* Scalable font */
    border-radius: 4px !important;
    transition: all var(--transition-speed);
}


/* Mobile Background Fix: 'fixed' causes stretching/zoom issues on mobile browsers */
@media (max-width: 768px) {
    body {
        background-attachment: scroll;
        background-position: center top;
        background-size: cover;
        /* or 100% auto if they want to see the whole width, but cover is usually best */
    }

    .metal-ticker .metal-prices {
        gap: 40px;
        /* Reduce gap on mobile */
    }
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 5, 5, 0.85);
    /* Slightly darker overlay for better text readability on mobile */
    z-index: -1;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-gold);
    margin-bottom: 1rem;
    font-weight: 400;
}

a {
    text-decoration: none;
    color: inherit;
    color: inherit;
    transition: color var(--transition-speed);
}

/* Header & Nav */
@media (max-width: 768px) {
    .header-main nav {
        display: flex !important;
        flex-wrap: wrap;
        /* Wrap items to next line */
        justify-content: center;
        /* Center align them */
        gap: 8px;
        /* Space between chips */
        padding-bottom: 15px;
        overflow: visible;
        /* No scrolling */
        white-space: normal;
        /* Allow normal flow */
    }

    .header-main nav a {
        font-size: 0.8rem;
        padding: 6px 12px;
        background: rgba(255, 255, 255, 0.08);
        /* Subtle chip background */
        border: 1px solid rgba(212, 175, 55, 0.3);
        /* Faint gold border */
        border-radius: 20px;
        /* Rounded pill shape */
        white-space: nowrap;
    }
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Typography Utilities */
.text-gold {
    color: var(--color-gold);
}

.text-white {
    color: var(--color-white);
}

.text-muted {
    color: var(--color-text-muted);
}

.text-center {
    text-align: center;
}

.text-uppercase {
    text-transform: uppercase;
    letter-spacing: 2px;
}

.text-sm {
    font-size: 0.875rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-5 {
    margin-bottom: 1.5rem;
}

.mt-3 {
    margin-top: 0.75rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-5 {
    margin-top: 1.5rem;
}

.block {
    display: block;
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.grid {
    display: grid;
    gap: 20px;
}

.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.grid-cols-5 {
    grid-template-columns: repeat(5, 1fr);
}

@media (max-width: 1024px) {
    .grid-cols-5 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-cols-2 {
        grid-template-columns: 1fr !important;
        /* Force stack on mobile */
    }

    .grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .hidden-mobile {
        display: none;
    }

    .header-main .container {
        flex-wrap: wrap;
        /* Allow wrapping */
        position: relative;
        /* Context for absolute positioning */
    }

    /* Keep cart visible and accessible on mobile */
    .header-actions {
        position: absolute;
        top: 5px;
        /* Adjust vertical alignment closer to logo center */
        right: 20px;
        z-index: 101;
        /* Ensure above other elements */
    }

    /* Adjust Logo size */
    .logo a {
        font-size: 1.4rem !important;
        display: block;
        padding-top: 5px;
        /* Give space for alignment */
    }

    /* Ensure search input doesn't overlap or break layout too much */
    .header-actions input {
        width: 80px !important;
        /* Smaller search on mobile */
    }
}

@media (max-width: 480px) {
    .grid-cols-2 {
        grid-template-columns: 1fr;
    }

    .grid-cols-4 {
        grid-template-columns: 1fr;
    }
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.gap-4 {
    gap: 1rem;
}

.relative {
    position: relative;
}

/* Components */

/* Button */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
    background: transparent;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all var(--transition-speed);
    font-size: 0.9rem;
}

.btn:hover {
    background: var(--color-gold);
    color: var(--color-black);
    box-shadow: var(--shadow-gold);
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--color-gold);
    color: var(--color-black);
}

.btn-primary:hover {
    background: var(--color-white);
    border-color: var(--color-white);
}

/* Header */
.header-main {
    background-color: rgba(5, 5, 5, 0.95);
    border-bottom: 1px solid var(--color-gray);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
    backdrop-filter: blur(10px);
}

.nav-link {
    font-size: 1.0rem;
    color: var(--color-text-light);
    margin: 0 15px;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -5px;
    left: 0;
    background-color: var(--color-gold);
    transition: width var(--transition-speed);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--color-gold);
}

.nav-link:hover,
.hover-gold:hover {
    color: var(--color-gold);
}

/* Social Media Icons */
.social-link {
    color: var(--color-text-light);
    font-size: 1.5rem;
    transition: all var(--transition-speed);
    display: inline-block;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.social-link i {
    transition: transform var(--transition-speed);
}

/* TikTok Brand Colors */
.social-tiktok {
    background: #000000;
    color: #00f2ea;
}

.social-tiktok:hover {
    background: linear-gradient(135deg, #00f2ea 0%, #ff0050 100%);
    color: white;
}

/* Instagram Brand Colors */
.social-instagram {
    background: linear-gradient(135deg, #833AB4 0%, #FD1D1D 50%, #FCB045 100%);
    color: white;
}

.social-instagram:hover {
    background: linear-gradient(135deg, #9b4fc9 0%, #ff3939 50%, #ffc35e 100%);
    box-shadow: 0 4px 15px rgba(253, 29, 29, 0.4);
}

/* Facebook Brand Colors */
.social-facebook {
    background: #1877F2;
    color: white;
}

.social-facebook:hover {
    background: #0d65d9;
    box-shadow: 0 4px 15px rgba(24, 119, 242, 0.4);
}

/* Hero Section */
.hero {
    height: 80vh;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    background: linear-gradient(to top, var(--color-black), transparent);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--color-white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--color-text-light);
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }
}

/* Product Card */
.product-card {
    background: var(--color-dark-gray);
    border: 1px solid var(--color-gray);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    overflow: hidden;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-gold);
    box-shadow: var(--shadow-gold);
}

.product-image {
    width: 100%;
    height: 300px;
    object-fit: contain;
    background: #111;
    /* Dark background for transparent PNGs */
    transition: transform 0.5s ease;
}

@media (max-width: 768px) {
    .product-image {
        height: 180px;
        /* Smaller height for mobile */
    }
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
    text-align: center;
}

.product-title {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--color-text-light);
}

.product-meta {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 10px;
}

.product-price {
    color: var(--color-gold);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Footer */
footer {
    background: var(--color-dark-gray);
    border-top: 1px solid var(--color-gray);
    padding: 60px 0 20px;
    margin-top: 60px;
}

.footer-col h3,
.footer-col h4 {
    color: var(--color-gold);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a:hover {
    color: var(--color-gold);
}

.copyright {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--color-gray);
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Styling */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--color-text-light);
    font-size: 0.9rem;
}

/* Forced Input Styles */
input,
select,
textarea {
    width: 100%;
    padding: 15px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2) !important;
    color: var(--color-white) !important;
    font-family: var(--font-body) !important;
    font-size: 1rem !important;
    border-radius: 4px !important;
    transition: all var(--transition-speed);
}

input:focus,
select:focus,
textarea:focus {
    outline: none !important;
    background: rgba(0, 0, 0, 0.3) !important;
    border-color: var(--color-gold) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3) !important;
}

input::placeholder {
    color: rgba(255, 255, 255, 0.3) !important;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
}

@media (max-width: 768px) {
    .checkout-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {

    /* Gain space on small screens */
    .checkout-step-content {
        padding: 15px !important;
    }

    /* Override inline padding of the inner payment/shipping boxes */
    .checkout-grid>div {
        padding: 15px !important;
    }
}

.order-summary {
    background: var(--color-dark-gray);
    padding: 30px;
    border: 1px solid var(--color-gold);
    border-radius: 8px;
}

.payment-icons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.payment-icon {
    font-size: 2rem;
    color: var(--color-text-muted);
    transition: color 0.3s;
}

.payment-icon:hover {
    color: var(--color-white);
}

.payment-icon.fa-cc-visa {
    color: #1a1f71;
    background: white;
    border-radius: 2px;
}

.payment-icon.fa-cc-mastercard {
    color: #eb001b;
    background: white;
    border-radius: 2px;
}

.payment-icon.fa-cc-paypal {
    color: #003087;
    background: white;
    border-radius: 2px;
}

.payment-icon.fa-cc-amex {
    color: #006fcf;
    background: white;
    border-radius: 2px;
}

/* Revert background for dark mode aesthetics if preferred, or keep colored */
/* Revert background for dark mode aesthetics if preferred, or keep colored */
.payment-icon {
    background: transparent !important;
    color: var(--color-text-muted) !important;
}

/* Payment Icons Container - Fix Stretching */
.payment-icons {
    display: flex;
    flex-wrap: wrap;
    /* CRITICAL: Allow icons to wrap on mobile */
    gap: 10px;
}

.payment-icons img {
    height: 45px;
    /* Increased from 30px */
    width: auto;
    object-fit: contain;
    margin-right: 0;
    /* Handled by gap in parent */
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .payment-icons img {
        height: 50px;
        /* Even bigger on mobile for easier tapping */
    }
}

/* Payment Buttons */
/* Payment Buttons */
.payment-btn {
    background: transparent;
    border: 1px solid transparent;
    /* Invisible border by default prevents jump */
    padding: 5px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    /* Flex to center image */
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    /* Fixed button height for alignment */
    width: 80px;
    /* Fixed button width for alignment */
}

/* Constrain image within button */
.payment-btn img {
    max-height: 100%;
    max-width: 100%;
    width: auto !important;
    /* Override previous rules */
    height: auto !important;
}

@media (max-width: 480px) {
    .payment-btn {
        width: 55px;
        height: 40px;
        padding: 3px;
    }

    /* Override the previous mobile rule that made them huge */
    .payment-icons img {
        height: auto;
    }
}

.payment-btn:hover,
.payment-btn.selected {
    border-color: var(--color-gold);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

/* Checkout Steps Layout */
.checkout-step {
    margin-bottom: 50px;
    /* Increased separation */
    background: rgba(0, 0, 0, 0.6);
    /* Slightly Darker background for contrast */
    border: 1px solid var(--color-gray);
    border-top: 3px solid var(--color-gold);
    /* Top separation line "Like 1" concept */
    overflow: hidden;
    position: relative;
}

/* Add a visual divider before step 2 and 3 if needed, but margin is cleaner. 
   User asked for a line "between 1 and 2". 
   Let's add a pseudo element for distinct line separation */
.checkout-step:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: -25px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
    opacity: 0.5;
}

.checkout-step-header {
    background: var(--color-gold) !important;
    /* Force Gold */
    color: var(--color-black) !important;
    padding: 15px 20px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkout-step-number {
    background: var(--color-black);
    color: var(--color-gold);
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.checkout-step-content {
    padding: 30px;
}

.shipping-method-box {
    border: 1px solid var(--color-gold);
    background: rgba(212, 175, 55, 0.1);
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.shipping-method-box:hover {
    background: rgba(212, 175, 55, 0.2);
}

.radio-gold {
    accent-color: var(--color-gold);
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
}

/* Category Card Styling (Popular Collections Style) */
.category-card-container {
    border: 4px solid var(--color-gold);
    background: #f0f0f0;
    position: relative;
    min-height: 350px;
    /* Allow expansion */
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}

.category-card-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.category-card-image {
    max-width: 90%;
    max-height: 70%;
    object-fit: contain;
    /* Ensure the jewelry item is visible */
    transition: transform 0.5s;
}

.category-card-container:hover .category-card-image {
    transform: scale(1.1);
}

.category-card-label {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-gold);
    color: var(--color-black);
    padding: 8px 20px;
    font-family: var(--font-heading);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    white-space: nowrap;
    width: auto;
    min-width: 60%;
    text-align: center;
}

/* Specific Search Input Override */
#site-search {
    padding: 2px 8px !important;
    font-size: 0.8rem !important;
    height: 30px !important;
    border-bottom: none !important;
    background: white !important;
    color: #333 !important;
}

#site-search::placeholder {
    color: #888 !important;
}

/* Mini Cart Dropdown */
.cart-wrapper {
    position: relative;
    display: inline-block;
    height: 100%;
    display: flex;
    align-items: center;
}

.mini-cart {
    position: absolute;
    top: 100%;
    right: 0;
    width: 320px;
    background: rgba(10, 10, 10, 0.98);
    border: 1px solid var(--color-gold);
    border-radius: 4px;
    padding: 15px;
    display: none;
    z-index: 9999;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.cart-wrapper:hover .mini-cart,
.mini-cart:hover {
    display: block;
    animation: fadeIn 0.3s ease;
}

.mini-cart-header {
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
    margin-bottom: 10px;
    font-family: var(--font-heading);
    color: var(--color-gold);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mini-cart-items {
    max-height: 300px;
    overflow-y: auto;
}

.mini-cart-item {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mini-cart-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.mini-cart-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #333;
}

.mini-cart-details {
    flex: 1;
}

.mini-cart-title {
    font-size: 0.9rem;
    color: white;
    margin-bottom: 4px;
    line-height: 1.2;
}

.mini-cart-price {
    font-size: 0.9rem;
    color: var(--color-gold);
    font-weight: bold;
}

.mini-cart-footer {
    border-top: 1px solid var(--color-gold);
    padding-top: 15px;
    margin-top: 15px;
    text-align: center;
}

.mini-cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: white;
    color: white;
}

/* Price Filter Widget */
.price-filter-container {
    padding: 20px 0;
    background: none;
    border: none;
    max-width: 300px;
}

.price-slider-wrapper {
    position: relative;
    width: 100%;
    height: 40px;
    margin-top: 15px;
}

.slider-track {
    width: calc(100% - 20px);
    height: 6px;
    background: #222;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 10px;
    margin: 0 10px;
    border: 1px solid #333;
}

.slider-track-active {
    height: 6px;
    background: linear-gradient(90deg, #b8860b, var(--color-gold), #b8860b);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    left: 10px;
    right: 10px;
    border-radius: 10px;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
}

.range-input {
    width: 100%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    pointer-events: none;
    -webkit-appearance: none;
    z-index: 2;
    margin: 0;
}

.range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--color-gold);
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
    border: 2px solid #111;
    transition: transform 0.2s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.2s ease, background-color 0.2s ease;
}

.range-input::-webkit-slider-thumb:hover {
    transform: scale(1.3);
    box-shadow: 0 0 15px var(--color-gold);
    background: #fff;
}

.range-input::-webkit-slider-thumb:active {
    transform: scale(1.4);
    box-shadow: 0 0 20px var(--color-gold);
}

.range-input::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--color-gold);
    border: 2px solid #111;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
    transition: transform 0.2s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.2s ease, background-color 0.2s ease;
}

.range-input::-moz-range-thumb:hover {
    transform: scale(1.3);
    box-shadow: 0 0 15px var(--color-gold);
    background: #fff;
}

.range-input::-moz-range-thumb:active {
    transform: scale(1.4);
    box-shadow: 0 0 20px var(--color-gold);
}

.price-values {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    font-size: 0.95rem;
    color: #ccc;
    font-family: var(--font-body);
    transition: color 0.3s ease;
}

.price-values.filtering {
    color: var(--color-gold);
    animation: pulse-price-text 0.8s ease-in-out;
}

@keyframes pulse-price-text {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

.btn-filter {
    display: none !important;
}
    cursor: pointer;
    text-transform: uppercase;
}


/* Scrollbar for mini cart */
.mini-cart-items::-webkit-scrollbar {
    width: 5px;
}

.mini-cart-items::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}

.mini-cart-items::-webkit-scrollbar-thumb:hover {
    background: var(--color-gold);
}

/* Out of Stock Utilities */
.out-of-stock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    pointer-events: none;
    /* Allow clicks to pass through to link if needed, but usually we block */
}

.badge-out-of-stock {
    background: #e74c3c;
    color: white;
    padding: 5px 10px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 4px;
    letter-spacing: 1px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.btn-disabled {
    background: #555 !important;
    color: #999 !important;
    border-color: #555 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    opacity: 0.7;
}

.btn-disabled:hover {
    transform: none !important;
    background: #555 !important;
}

.product-card.out-of-stock .product-image {
    /* Removed grayscale filter - keep image in full color */
}

/* Product Card "Add to Cart" Button */
.add-to-cart-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gold);
    transition: transform 0.2s, background 0.2s;
}

.add-to-cart-btn:hover {
    transform: scale(1.1);
    background: var(--color-gold);
    color: black;
}

.add-to-cart-btn.btn-disabled {
    background: #ccc;
    color: #666;
    cursor: not-allowed;
    transform: none !important;
}

/* Product Detail Responsive Styles */
/* Centered Product Detail Layout */
#product-detail-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    width: 100%;
}

.pd-image-col {
    width: 100%;
    max-width: 900px;
    /* Increased size */
    margin: 0 auto;
}

.pd-info-col {
    width: 100%;
    max-width: 800px;
    padding-left: 0;
}

/* Standardized Product Detail Image */
.pd-main-image {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid #333;
    border-radius: 4px;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.pd-main-image:hover {
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .pd-main-image {
        height: 350px;
        /* Smaller fixed height for mobile */
    }
}

.pd-title {
    font-size: 2rem;
    color: white;
    margin-bottom: 15px;
    line-height: 1.2;
}

.pd-price {
    font-size: 2rem;
    color: var(--color-gold);
    margin-bottom: 30px;
    font-weight: bold;
}

@media (max-width: 768px) {
    #product-detail-container {
        flex-direction: column !important;
    }

    .pd-image-col {
        max-width: 100%;
        width: 100%;
    }

    .pd-info-col {
        padding-left: 0 !important;
        margin-top: 25px;
        width: 100%;
    }

    .pd-title {
        font-size: 1.5rem;
        /* Smaller title on mobile */
    }

    .pd-price {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
}

/* Lightbox Styles */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-image {
    max-width: 95%;
    max-height: 95vh;
    object-fit: contain;
    border: 1px solid var(--color-gold);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lightbox-overlay.active .lightbox-image {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: var(--color-gold);
    background: transparent;
    border: none;
    font-size: 3rem;
    cursor: pointer;
    line-height: 1;
    z-index: 10001;
    transition: transform 0.2s;
}

.lightbox-close:hover {
    transform: scale(1.1);
    color: white;
}

/* Name Plates Modal */
.np-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    /* Flex to center content */
    justify-content: center;
    align-items: center;
    /* Start slightly higher */
    opacity: 0;
    pointer-events: none;
    /* Click-through when hidden */
    transition: opacity 0.5s ease;
}

.np-modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.np-modal-content {
    background: var(--color-dark-gray);
    border: 2px solid var(--color-gold);
    padding: 40px;
    max-width: 600px;
    width: 90%;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
    transform: translateY(-50px);
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
}

.np-modal-overlay.active .np-modal-content {
    transform: translateY(0);
}

.np-modal-title {
    color: var(--color-gold);
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--color-gray);
    padding-bottom: 15px;
    letter-spacing: 1px;
}

.np-modal-text {
    font-size: 1.1rem;
    color: var(--color-white);
    margin-bottom: 25px;
    line-height: 1.6;
}

.np-modal-arabic {
    font-family: 'Tahoma', 'Arial', sans-serif;
    direction: rtl;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--color-white);
}

/* Phone link styling */
.np-phone-link {
    color: var(--color-gold);
    font-weight: bold;
    text-decoration: none;
    border-bottom: 1px dashed var(--color-gold);
    transition: all 0.3s;
    display: inline-block;
    direction: ltr;
    /* Ensure phone number flows LTR */
    unicode-bidi: embed;
}

.np-phone-link:hover {
    color: #fff;
    border-bottom: 1px solid #fff;
}

.np-btn-ok {
    display: inline-block;
    margin-top: 30px;
    padding: 12px 40px;
    background: var(--color-gold);
    color: var(--color-black);
    font-weight: bold;
    text-transform: uppercase;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.np-btn-ok:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

/* Header & Footer Logo Image Styling */
.logo-img {
    height: 70px;
    width: auto;
    display: block;
    object-fit: contain;
    transition: height 0.3s ease;
}

.footer-logo-img {
    height: 45px;
    width: auto;
    margin-bottom: 15px;
    display: block;
    object-fit: contain;
}

@media (max-width: 768px) {
    .logo-img {
        height: 50px; /* Scaling down for mobile headers */
    }
}

/* Sort By Dropdown Styling */
.catalog-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 15px;
}

.sort-by-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.sort-by-label {
    color: #bbb;
    font-size: 0.9rem;
    font-family: var(--font-body);
    white-space: nowrap;
}

.sort-by-select {
    background-color: rgba(18, 18, 18, 0.95);
    color: #fff;
    border: 1px solid var(--color-gold);
    padding: 8px 32px 8px 14px;
    font-size: 0.85rem;
    font-family: var(--font-body);
    border-radius: 4px;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23d4af37' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.sort-by-select:hover, .sort-by-select:focus {
    border-color: #fff;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
    background-color: rgba(28, 28, 28, 0.98);
}

.sort-by-select option {
    background-color: #111;
    color: #fff;
    padding: 10px;
}

@media (max-width: 768px) {
    .catalog-header-bar {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .sort-by-container {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }
}