/* LuxeStone - Premium Tiles & Marble Store Stylesheet */

:root {
    --primary-color: #1a202c;
    --primary-dark: #0f172a;
    --accent-gold: #c59b27;
    --accent-gold-hover: #b0891d;
    --accent-gold-light: #fef9e7;
    --text-main: #2d3748;
    --text-muted: #718096;
    --bg-light: #f8fafc;
    --bg-surface: #ffffff;
    --border-color: #e2e8f0;
    --card-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.06), 0 2px 6px -1px rgba(0, 0, 0, 0.04);
    --card-shadow-hover: 0 14px 30px -4px rgba(0, 0, 0, 0.12), 0 4px 10px -2px rgba(0, 0, 0, 0.06);
    --transition: all 0.25s ease-in-out;
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
}

h1, h2, h3, h4, .font-serif {
    font-family: 'Cinzel', 'Playfair Display', Georgia, serif;
    letter-spacing: -0.01em;
}

/* Luxury Color Accents */
.text-gold {
    color: var(--accent-gold) !important;
}

.bg-gold {
    background-color: var(--accent-gold) !important;
    color: #ffffff !important;
}

.btn-gold {
    background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
    color: #ffffff;
    font-weight: 600;
    border: none;
    padding: 0.65rem 1.4rem;
    border-radius: 0.4rem;
    transition: var(--transition);
}

.btn-gold:hover {
    background: linear-gradient(135deg, #c59b27 0%, #9e7305 100%);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(184, 134, 11, 0.35);
}

.btn-outline-gold {
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold);
    font-weight: 600;
    padding: 0.6rem 1.3rem;
    border-radius: 0.4rem;
    background: transparent;
    transition: var(--transition);
}

.btn-outline-gold:hover {
    background: var(--accent-gold);
    color: #ffffff;
}

/* Header & Navigation Architecture */
.top-bar {
    background-color: #0b111e;
    font-size: 0.82rem;
    color: #94a3b8;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.main-header {
    background-color: #ffffff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.navbar-brand {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-dark);
    white-space: nowrap;
    line-height: 1.1;
    text-decoration: none;
}

.navbar-brand span {
    color: var(--accent-gold);
}

/* Fluid Header Search Bar */
.header-search-bar {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.header-search-bar input {
    width: 100%;
    height: 40px;
    border-radius: 50rem;
    border: 1.5px solid #e2e8f0;
    padding: 0.4rem 5.5rem 0.4rem 2.4rem;
    font-size: 0.86rem;
    background: #f8fafc;
    color: #1e293b;
    transition: var(--transition);
}

.header-search-bar input:focus {
    background: #ffffff;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
    outline: none;
}

.header-search-bar .search-icon {
    position: absolute;
    left: 0.95rem;
    color: #94a3b8;
    font-size: 0.85rem;
    pointer-events: none;
}

.header-search-bar .search-btn {
    position: absolute;
    right: 4px;
    top: 4px;
    bottom: 4px;
    border-radius: 50rem;
    border: none;
    background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0 1rem;
    transition: var(--transition);
}

.header-search-bar .search-btn:hover {
    background: linear-gradient(135deg, #c59b27 0%, #9e7305 100%);
}

/* Header Action Buttons */
.btn-calc-header {
    background: #fef9e7;
    border: 1.5px solid #f9e29a;
    color: #b8860b !important;
    border-radius: 50rem;
    padding: 0.4rem 0.9rem;
    font-weight: 700;
    font-size: 0.85rem;
    white-space: nowrap;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition);
}

.btn-calc-header:hover {
    background: #fce8a6;
    color: #8c6504 !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.2);
}

.btn-header-action {
    border: 1.5px solid #e2e8f0;
    background: #ffffff;
    color: #334155;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.4rem 0.95rem;
    border-radius: 50rem;
    white-space: nowrap;
    transition: var(--transition);
}

.btn-header-action:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}

.btn-header-cart {
    background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.4rem 1.05rem;
    border-radius: 50rem;
    border: none;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(184, 134, 11, 0.25);
    transition: var(--transition);
}

.btn-header-cart:hover {
    background: linear-gradient(135deg, #c59b27 0%, #9e7305 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(184, 134, 11, 0.35);
}

/* Category Navigation Strip */
.category-strip {
    background-color: #ffffff;
    border-top: 1px solid #edf2f7;
    border-bottom: 1px solid #e2e8f0;
}

.category-nav .nav-link {
    font-size: 0.86rem;
    font-weight: 600;
    color: #475569;
    padding: 0.5rem 0.75rem !important;
    white-space: nowrap;
    transition: var(--transition);
}

.category-nav .nav-link:hover, .category-nav .nav-link.active {
    color: var(--accent-gold);
}

.badge-cart {
    font-size: 0.7rem;
    padding: 0.25em 0.55em;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    padding: 4.5rem 0 5rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

/* Cards & Products */
.product-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
    border-color: #cbd5e1;
}

.product-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 80%; /* 4:3 Aspect Ratio */
    background-color: #f1f5f9;
    overflow: hidden;
}

.product-img-wrapper img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-img-wrapper img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
}

.product-spec-pill {
    font-size: 0.78rem;
    background: #f1f5f9;
    color: #475569;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
    margin-right: 0.25rem;
    margin-bottom: 0.25rem;
}

.price-main {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
}

.price-box-calc {
    font-size: 0.85rem;
    color: #64748b;
}

/* Category Card */
.category-card {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    height: 220px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.category-card:hover img {
    transform: scale(1.08);
}

.category-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.2) 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.25rem;
    color: #ffffff;
}

/* Calculator Box Component */
.calculator-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    box-shadow: var(--card-shadow);
    padding: 1.5rem;
}

.calc-result-box {
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 0.5rem;
    padding: 1rem;
}

.calc-highlight {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--accent-gold);
}

/* Specifications Table */
.table-specs th {
    background-color: #f8fafc;
    width: 35%;
    font-weight: 600;
    color: #475569;
}

/* Toast Notification */
#toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

/* Footer */
footer {
    background-color: #0b111e;
    color: #94a3b8;
    padding-top: 4rem;
    padding-bottom: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

footer h5 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
}

footer a {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--transition);
}

footer a:hover {
    color: var(--accent-gold);
}
