@charset "utf-8";
/* =================================================================at
   1. GLOBAL RESET & BASE STYLES
   ========================================================================= */
   
   
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f9;
}
img, svg, video {
  max-width: 100%;
  height: auto;
}


/* ==========================================================================
   GROUP PAGE LAYOUT & STICKY PREVIEW
   ========================================================================= */
.layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 980px;
    margin: 0 auto;
    background: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    align-items: start; /* Crucial: allows sticky positioning to work inside grid */
}

.media-col {
    width: 100%;
    position: sticky;
    top: 15px;          /* Sticks 15px from the top of the screen as you scroll */
    z-index: 10;
    background: #fff;   /* Solid background so content doesn't bleed underneath */
    padding-bottom: 10px;
}

/* Tablet and Laptop Screens */
@media (min-width: 768px) {
    .layout {
        grid-template-columns: 320px minmax(0, 1fr);
        padding: 25px;
    }
    
    .media-col {
        width: 320px;
        top: 20px;      /* Sticky offset for desktop viewports too */
    }
}



/* ==========================================================================
   3. HEADERS & NAVIGATION
   ========================================================================= */
.main-header {
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.site-title {
    text-align: center;
    color: #1e3a8a;
    margin-bottom: 10px;
}

/* Flexbox Navigation (Standard) */
.main-nav ul {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    list-style: none;
}

.main-nav a {
    text-decoration: none;
    color: #1e3a8a;
    font-weight: bold;
}

.main-nav a:hover {
    text-decoration: underline;
}

/* Compact Header & Navigation Includes */
.site-header-compact {
    background-color: #ffffff;
    border-bottom: 2px solid #0056b3;
    padding: 10px 0;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo-link {
    display: inline-block;
    text-decoration: none;
}

.compact-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;       
    justify-content: center;
    gap: 8px;              /* Clean gap between the button cards */
    align-items: center;
}

.compact-nav a {
    text-decoration: none;
    color: #495057;
    font-weight: 600;
    font-size: 0.85em;     
    padding: 6px 12px;
    background-color: #f8f9fa;  /* Light button background fill */
    border: 1px solid #dee2e6;  /* Soft boundary outline */
    border-radius: 4px;
    transition: all 0.15s ease-in-out;
}

.compact-nav a:hover {
    background-color: #e9ecef;
    color: #0056b3;
    border-color: #ced4da;
}

.compact-nav a.active {
    background-color: #0056b3;
    color: #ffffff;
    border-color: #004085;
}

/* Tablet and Laptop Screens */
@media (min-width: 768px) {
    .compact-nav ul {
        flex-wrap: nowrap; 
        gap: 8px;
    }
    
    .compact-nav a {
        font-size: 0.9em;
        padding: 6px 14px;
    }
}

/* ==========================================================================
   4. LOGO & SVG STYLING
   ========================================================================= */
.gold-leaf-logo {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 5px auto;
}

.gold-leaf-logo-compact {
  display: block;
  width: 100%;
  max-width: 260px;
  height: auto;
  overflow: visible;
}

/* Compact Logo Shadow Layer */
.logo-text-shadow-compact {
  font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 900;
  font-size: 60px;
  letter-spacing: 4px;
  text-anchor: middle;
  fill: #0F2D59;
  stroke: none;
}

/* Compact Logo Front Gold Layer */
.logo-text-gold-compact {
  font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 900;
  font-size: 60px;
  letter-spacing: 4px;
  text-anchor: middle;
  fill: url(#goldGradCompact);
  stroke: #4A3502;
  stroke-width: 0.75px;
  paint-order: stroke fill;
}


/* ==========================================================================
   5. BANNERS & HERO IMAGES
   ========================================================================= */
.status-banner {
    background-color: #d97706;
    color: white;
    text-align: center;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.hero-image {
    width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
}

/* ==========================================================================
   6. SCALE SELECTOR BAR
   ========================================================================= */
.scale-selector-bar {
    margin: 20px auto;
    padding: 12px 16px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    font-family: Arial, sans-serif;
    font-size: 0.95em;
}

.scale-selector-bar a {
    text-decoration: none;
    color: #0056b3;
    padding: 6px 12px;
    margin: 0 4px;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}

.scale-selector-bar a:hover {
    background: #e2e6ea;
}

.scale-selector-bar a.active {
    background: #0056b3;
    color: #ffffff;
    font-weight: bold;
}

/* ==========================================================================
   7. PRODUCT GRIDS, CARDS & PREVIEWS
   ========================================================================= */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.category-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    background: #fafafa;
}

.category-card h3 {
    margin-bottom: 10px;
    color: #1e3a8a;
}

.item-title a {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.item-title a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.preview-box a {
    display: block;
    width: 100%;
}

.preview-box img {
    width: 100%;
    max-height: 180px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.preview-box a img {
    cursor: zoom-in;
}

/* ==========================================================================
   8. HERO SHOWCASE & LAYOUT WRAPPERS (Restoring index.php formatting)
   ========================================================================= */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}

.hero-showcase {
    background: #ffffff;
    padding: 30px 0;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 20px;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 30px;
    align-items: center;
}

.hero-image-wrapper {
    text-align: center;
}

.hero-img {
    width: 100%;
    max-width: 450px;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.hero-caption {
    display: block;
    font-size: 0.85em;
    color: #666;
    margin-top: 8px;
}

.hero-text-content h1 {
    font-size: 1.8rem;
    color: #1e3a8a;
    margin-bottom: 12px;
}

.hero-text-content p {
    font-size: 1.05em;
    margin-bottom: 20px;
    color: #4b5563;
}

.hero-cta-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Main Layout Wrapper (Sidebar + Content Grid) */
.layout-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 30px;
    margin-top: 20px;
    margin-bottom: 40px;
}

/* Product Range Grid Cards */
.range-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.range-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.range-card h3 {
    color: #1e3a8a;
    margin-bottom: 10px;
}

.range-card ul {
    margin-top: 10px;
    padding-left: 20px;
    font-size: 0.95em;
}

.range-card li {
    margin-bottom: 6px;
}

.sidebar-box {
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
}

.sidebar-box h3 {
    font-size: 1.1rem;
    color: #1e3a8a;
    margin-bottom: 12px;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 6px;
}

.sidebar-box ul {
    list-style: none;
    padding: 0;
}

.sidebar-box li {
    margin-bottom: 8px;
}

.sidebar-box a {
    color: #0056b3;
    text-decoration: none;
}

.sidebar-box a:hover {
    text-decoration: underline;
}
/* ==========================================================================
   9. SVG LOGO STYLING (Restoring index.php header logo)
   ========================================================================= */
.gold-leaf-logo {
    width: 100%;
   /* max-width: 650px; */
    height: auto;
    display: block;
    margin: 0 auto 5px auto;
}

.logo-text-gold {
    font-family: 'Impact', 'Arial Black', sans-serif;
    font-size: 82px;
    font-weight: 900;
    text-anchor: middle;
    fill: url(#goldGradient);
    stroke: #2A1A00;
    stroke-width: 1.5px;
}

.logo-text-glint {
    font-family: 'Impact', 'Arial Black', sans-serif;
    font-size: 82px;
    font-weight: 900;
    text-anchor: middle;
    fill: none;
    stroke: url(#blueBlockGlint);
    stroke-width: 2px;
    opacity: 0.6;
}

.site-tagline {
    text-align: center;
    font-size: 0.95em;
    color: #555;
    margin-bottom: 20px;
}
/* ==========================================================================
   CHECKOUT PAGE STYLING (chkt.php)
   ========================================================================= */

.checkout-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 8px; /* Tighter padding to screen edge on mobile */
}

@media (min-width: 768px) {
    .checkout-container {
        padding: 15px; /* Comfortable padding on desktop */
    }
}

.checkout-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 16px; /* Compact padding on mobile */
    margin-bottom: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

@media (min-width: 768px) {
    .checkout-card {
        padding: 25px; /* Full padding on larger screens */
    }
}

.checkout-card h2, 
.checkout-card h3 {
    font-size: 1.25rem; /* Scaled down for mobile to prevent awkward wrapping */
    color: #1e3a8a;
    margin-top: 0;
    margin-bottom: 12px;
}

@media (min-width: 768px) {
    .checkout-card h2 { font-size: 1.6rem; }
    .checkout-card h3 { font-size: 1.3rem; }
}

/* Form Fields & Touch Targets */
.checkout-form label {
    display: block;
    font-weight: bold;
    font-size: 0.9em;
    color: #334155;
    margin-bottom: 4px;
}

.checkout-form input[type="text"],
.checkout-form input[type="email"],
.checkout-form select,
.checkout-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 16px; /* 16px crucial on iOS to prevent automatic zoom on focus */
    background: #fff;
    color: #1e293b;
    box-sizing: border-box;
    margin-bottom: 15px;
}

.checkout-form input:focus,
.checkout-form select:focus,
.checkout-form textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.btn-submit-order {
    width: 100%;
    padding: 14px;
    background: #28a745;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-submit-order:hover {
    background: #218838;
}