/* ==========================================
   GLORY GROUP E-COMMERCE PRODUCTS STYLESHEET
   ========================================== */

/* Main Variables & Color overrides matching black luxury theme */
:root {
    --color-gold: #fdbe33;
    --color-gold-hover: #e5a91c;
    --color-dark-bg: #020617;
    --color-surface: #0b1329;
    --color-surface-hover: #152244;
    --color-border: rgba(255, 255, 255, 0.08);
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-premium: 0 15px 35px rgba(0, 0, 0, 0.4);
    --shadow-gold-glow: 0 0 20px rgba(253, 190, 51, 0.25);
}

html.light-mode {
    --color-gold: #d4a017;
    --color-gold-hover: #b8890f;
    --color-dark-bg: #f5f7fa;
    --color-surface: #ffffff;
    --color-surface-hover: #eef1f6;
    --color-border: rgba(0, 0, 0, 0.08);
    --text-primary: #1a1a2e;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --shadow-premium: 0 10px 30px rgba(0, 0, 0, 0.06);
    --shadow-gold-glow: 0 0 20px rgba(212, 160, 23, 0.15);
}

/* Reset and Core Page Layout */
.products-wrapper {
    background: var(--color-dark-bg);
    color: var(--text-secondary);
    padding: 60px 0;
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* 1. Hero Product Showcase Section */
.hero-product-section {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow-premium);
    margin-bottom: 60px;
    transition: background-color 0.4s ease, border-color 0.4s ease;
}

/* Image Gallery Style */
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-image-container {
    position: relative;
    width: 100%;
    height: 480px;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--color-border);
    cursor: zoom-in;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image-container img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.main-image-container:hover img {
    transform: scale(1.15);
}

.thumbnail-row {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.thumbnail-row::-webkit-scrollbar {
    height: 4px;
}

.thumbnail-row::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 4px;
}

.thumb-item {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    border: 2px solid transparent;
    cursor: pointer;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.thumb-item img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.thumb-item:hover, .thumb-item.active {
    border-color: var(--color-gold);
    background: rgba(253, 190, 51, 0.05);
}

/* Product Info Block */
.product-info-pane {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-breadcrumbs {
    font-size: 13px;
    color: var(--text-muted);
}

.product-breadcrumbs a {
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.product-breadcrumbs a:hover {
    color: var(--color-gold);
}

.product-main-title {
    font-size: 38px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
    margin: 0;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.rating-stars {
    color: var(--color-gold);
}

.rating-count {
    color: var(--text-muted);
}

.price-box {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.current-price {
    font-size: 28px;
    font-weight: 800;
    color: var(--color-gold);
}

.strike-price {
    font-size: 18px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.discount-badge {
    background: rgba(253, 190, 51, 0.15);
    color: var(--color-gold);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse 1.6s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.product-desc-short {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Actions panel */
.product-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}

.quantity-picker-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.quantity-picker {
    display: flex;
    align-items: center;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
}

.qty-btn {
    background: transparent;
    border: none;
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-gold);
}

.qty-input {
    width: 50px;
    height: 40px;
    border: none;
    background: transparent;
    text-align: center;
    color: var(--text-primary);
    font-weight: 600;
}

.action-buttons-row {
    display: flex;
    gap: 15px;
}

.btn-add-cart {
    flex-grow: 1;
    background: var(--color-gold);
    color: var(--color-dark-bg);
    font-weight: 700;
    border-radius: 12px;
    padding: 14px 28px;
    border: none;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-gold-glow);
}

.btn-add-cart:hover {
    background: var(--color-gold-hover);
    transform: translateY(-2px);
}

.btn-buy-now {
    flex-grow: 1;
    background: transparent;
    color: var(--text-primary);
    font-weight: 700;
    border-radius: 12px;
    padding: 14px 28px;
    border: 1px solid var(--color-border);
    transition: var(--transition-smooth);
}

.btn-buy-now:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--color-gold);
    color: var(--color-gold);
}

/* Tabs Accordion Section */
.product-tabs-wrapper {
    margin-top: 40px;
    border-top: 1px solid var(--color-border);
    padding-top: 30px;
}

.tabs-nav {
    display: flex;
    gap: 30px;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.tab-nav-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 16px;
    font-weight: 600;
    padding-bottom: 8px;
    position: relative;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.tab-nav-btn.active {
    color: var(--color-gold);
}

.tab-nav-btn.active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -11px;
    width: 100%;
    height: 3px;
    background: var(--color-gold);
    border-radius: 2px;
}

.tab-pane-content {
    display: none;
    line-height: 1.7;
    font-size: 15px;
    color: var(--text-secondary);
}

.tab-pane-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
}

.spec-table tr {
    border-bottom: 1px solid var(--color-border);
}

.spec-table td {
    padding: 12px 15px;
}

.spec-label {
    font-weight: 700;
    color: var(--text-primary);
    width: 30%;
}

/* 2. Catalog & Filters Grid Section */
.catalog-section {
    margin-top: 80px;
}

.catalog-header {
    margin-bottom: 40px;
}

.catalog-header h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-primary);
}

.catalog-header p {
    color: var(--color-gold);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* Category Slider Nav */
.category-filter-bar {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 15px;
    margin-bottom: 40px;
}

.category-filter-bar::-webkit-scrollbar {
    height: 5px;
}

.category-filter-bar::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 10px;
}

.filter-btn-modern {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--text-secondary);
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition-smooth);
}

.filter-btn-modern:hover, .filter-btn-modern.active, .filter-btn-modern.filter-active {
    background: var(--color-gold);
    color: var(--color-dark-bg);
    border-color: var(--color-gold);
    box-shadow: var(--shadow-gold-glow);
}

/* Premium E-Commerce Card Styling */
.ecommerce-product-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ecommerce-product-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-gold);
    box-shadow: var(--shadow-premium);
}

.card-img-wrap {
    position: relative;
    width: 100%;
    height: 280px;
    background: rgba(255, 255, 255, 0.01);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
}

.card-img-wrap img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.ecommerce-product-card:hover .card-img-wrap img {
    transform: scale(1.08);
}

.card-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(2, 6, 23, 0.7);
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
}

.card-content-pane {
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.4;
    transition: var(--transition-smooth);
}

.ecommerce-product-card:hover .card-title {
    color: var(--color-gold);
}

.card-desc-peek {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
    flex-grow: 1;
}

.card-footer-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--color-border);
    padding-top: 15px;
    margin-top: 5px;
}

.card-price {
    font-weight: 800;
    color: var(--color-gold);
    font-size: 18px;
}

.card-action-trigger {
    background: rgba(253, 190, 51, 0.1);
    border: none;
    color: var(--color-gold);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: var(--transition-smooth);
}

.ecommerce-product-card:hover .card-action-trigger {
    background: var(--color-gold);
    color: var(--color-dark-bg);
}

/* Responsive Overrides */
@media (max-width: 991.98px) {
    .hero-product-section {
        padding: 25px;
    }
    .main-image-container {
        height: 360px;
    }
    .product-main-title {
        font-size: 30px;
    }
}

/* ==========================================
   ADDED FOR CLEAN PRODUCT CATALOG SHOWCASE
   ========================================== */

/* Card image modifications for hover swap */
.card-img-wrap {
    position: relative;
    overflow: hidden;
}

.card-img-wrap .hover-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    padding: 20px;
}

.ecommerce-product-card:hover .card-img-wrap .hover-img {
    opacity: 1;
    transform: scale(1.08);
}

.ecommerce-product-card:hover .card-img-wrap .main-img {
    opacity: 0.15;
}

/* Card Badge positioning */
.card-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 3;
}

.badge-tag {
    background: rgba(2, 6, 23, 0.75);
    border: 1px solid var(--color-border);
    color: var(--text-secondary);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

/* Modern Card Layout Styling */
.card-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--color-gold);
    font-size: 12px;
    margin-bottom: 8px;
}

.card-actions-row {
    display: flex;
    gap: 10px;
    width: 100%;
    margin-top: auto;
}

.btn-card-primary {
    flex: 1.2;
    background: var(--color-gold);
    color: var(--color-dark-bg);
    border: none;
    border-radius: 10px;
    padding: 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
}

.btn-card-primary:hover {
    background: var(--color-gold-hover);
    color: var(--color-dark-bg);
    transform: translateY(-2px);
    text-decoration: none;
}

.btn-card-secondary {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border);
    color: var(--text-primary);
    border-radius: 10px;
    padding: 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
}

.btn-card-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--color-gold);
    color: var(--color-gold);
    transform: translateY(-2px);
    text-decoration: none;
}

/* Quick View Modal Styles (No Prices/Cart) */
.quickview-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 6, 23, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    padding: 20px;
}

.quickview-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.quickview-modal-content {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 24px;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

.quickview-modal.active .quickview-modal-content {
    transform: scale(1) translateY(0);
}

.quickview-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    z-index: 10;
    transition: var(--transition-smooth);
}

.quickview-close-btn:hover {
    background: var(--color-gold);
    color: var(--color-dark-bg);
    border-color: var(--color-gold);
    transform: rotate(90deg);
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px;
}

@media (max-width: 768px) {
    .modal-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 45px 20px 20px;
    }
}

.modal-gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-img-container {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 20px;
}

.modal-img-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.modal-img-container img:hover {
    transform: scale(1.1);
}

.modal-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
}

.modal-meta {
    display: flex;
    gap: 15px;
    align-items: center;
    font-size: 13px;
    color: var(--text-muted);
}

.modal-category {
    text-transform: uppercase;
    font-weight: 700;
    color: var(--color-gold);
    letter-spacing: 0.5px;
}

.modal-desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.modal-specs {
    font-size: 13px;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 15px;
}

.modal-specs-title {
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1px;
}

.modal-spec-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.modal-spec-list li {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
    padding-bottom: 4px;
}

.modal-spec-list span.lbl {
    color: var(--text-muted);
}

.modal-spec-list span.val {
    font-weight: 600;
    color: var(--text-primary);
    text-align: right;
}

/* Category count pill style */
.category-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    font-size: 10px;
    padding: 2px 6px;
    margin-left: 6px;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.filter-btn-modern.active .category-count,
.filter-btn-modern.filter-active .category-count,
.filter-btn-modern:hover .category-count {
    background: rgba(2, 6, 23, 0.2);
    color: var(--color-dark-bg);
}

/* Custom Edge-to-Edge hero styles */
.products-hero-banner {
    position: relative;
    padding: 100px 0 80px 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(253, 190, 51, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(253, 190, 51, 0.05) 0%, transparent 40%),
        linear-gradient(180deg, #030816 0%, #020617 100%);
    text-align: center;
    border-bottom: 1px solid var(--color-border);
    overflow: hidden;
}

.products-hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(253, 190, 51, 0.15) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.15;
    pointer-events: none;
}

.products-hero-banner h1 {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--color-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.products-hero-banner p {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}
