@charset "utf-8";
/* =================================================================at
   1. GLOBAL RESET & BASE STYLES
   ========================================================================= */
   body {
   /* background-color: cream;*/
}
   
*, *::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;
}


/* ==========================================================================
   MODULAR PRODUCT CARDS (Group Page)
   ========================================================================= */
/* ==========================================================================
   TRAMADS GROUP CONFIGURATOR STYLES (group.php)
   ========================================================================= */

body { 
    font-family: Arial, sans-serif; 
    margin: 20px; 
    background: #fdfdfd; 
    color: #333; 
}

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

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

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

@media (min-width: 768px) {
    .product-header-card,
    .option-card {
        padding: 25px; /* Comfortable padding on larger screens */
    }
}


.card-preview {
    text-align: center;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.card-preview .box-title { 
    font-size: 0.8em; 
    font-weight: bold; 
    color: #0056b3; 
    margin-bottom: 6px; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
    text-align: left; 
    border-bottom: 1px solid #eee; 
    padding-bottom: 4px; 
}

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

.preview-desc { 
    font-size: 0.85em; 
    color: #555; 
    text-align: left; 
    border-top: 1px dashed #e0e0e0; 
    padding-top: 6px; 
    margin-top: 4px; 
    line-height: 1.3; 
}

.card-options {
    flex-grow: 1;
}

.section-title { 
    font-weight: bold; 
    margin-bottom: 10px; 
    color: #495057; 
    font-size: 0.95em; 
}

.option-item { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    background: #fff; 
    padding: 10px 12px; 
    border: 1px solid #ced4da; 
    border-radius: 4px; 
    margin-bottom: 8px; 
    cursor: pointer; 
}

.option-item:hover {
    background: #f8f9fa;
}

.price { 
    font-weight: bold; 
    color: #1e3a8a;
}

.btn-basket { 
    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-basket:hover {
    background: #218838;
}

/* Tablet and Laptop Screens: Side-by-side inside each card */
@media (min-width: 768px) {
    .option-card {
        flex-direction: row; 
        align-items: flex-start;
    }
    
    .card-preview {
        width: 280px;
        flex-shrink: 0;
    }
}


/* ==========================================================================
   PRODUCT HEADER CARD STYLING
   ========================================================================= */

.product-header-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.product-header-card h1 {
    font-size: 1.35rem; /* Smaller mobile title to stop awkward wrapping */
    color: #1e3a8a;
    margin: 8px 0 6px 0;
    font-weight: 700;
    line-height: 1.25;
}

@media (min-width: 768px) {
    .product-header-card h1 {
        font-size: 1.75rem; /* Larger title restored for desktop */
    }
}


.product-header-card .pg-badge {
    display: inline-block;
    font-family: monospace;
    background: #e2e8f0;
    color: #334155;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.product-header-card .product-desc {
    color: #475569;
    font-size: 0.95em;
    line-height: 1.5;
    margin-bottom: 20px;
}

.product-header-card .scale-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    background: #f8f9fa;
    padding: 12px 16px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    margin-bottom: 15px;
    font-size: 0.95em;
    color: #334155;
}

.product-header-card .scale-row select {
    padding: 6px 10px;
    border-radius: 4px;
    border: 1px solid #cbd5e1;
    background: #fff;
    font-size: 0.9em;
    color: #1e293b;
    cursor: pointer;
}

.product-header-card .scale-row select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.product-header-card .modal-links-row {
    display: flex;
    gap: 20px;
    font-size: 0.9em;
}

.product-header-card .modal-links-row a {
    color: #2563eb;
    text-decoration: none;
    font-weight: bold;
}

.product-header-card .modal-links-row a:hover {
    text-decoration: underline;
}


/* ==========================================================================
   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;
}
