/* ============================================
   EXPO3D - PROFESSIONAL REFINED THEME
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --gold: #D4AF37;
    --gold-light: #F4D03F;
    --gold-dark: #B8941F;
    --black: #0a0a0a;
    --dark-bg: #121212;
    --dark-card: #1a1a1a;
    --dark-border: #2a2a2a;
    --dark-text: #e0e0e0;
    --dark-text-secondary: #b0b0b0;
    
    --admin-bg: #f5f7fa;
    --admin-card: #ffffff;
    --admin-border: #e1e8ed;
    --admin-text: #2c3e50;
    
    --success: #2ecc71;
    --danger: #e74c3c;
    --warning: #f39c12;
    --info: #3498db;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: var(--dark-text);
    background: var(--dark-bg);
    letter-spacing: 0.2px;
}

body.admin-page {
    background: var(--admin-bg);
    color: var(--admin-text);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ============================================
   HEADER - REFINED
   ============================================ */
header {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gold);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(212, 175, 55, 0.1);
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand h1 {
    font-size: 1.25rem;
    color: var(--gold);
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.nav-brand a {
    text-decoration: none;
    color: inherit;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--gold);
}

.nav-menu a:hover::after {
    width: 100%;
}

.cart-link {
    background: var(--gold);
    color: var(--black);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8125rem;
}

.cart-link:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
}

.cart-link::after {
    display: none;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--danger);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6875rem;
    font-weight: bold;
    border: 2px solid var(--black);
}

/* ============================================
   HERO - REFINED
   ============================================ */
.hero {
    background: linear-gradient(135deg, var(--black) 0%, #1a1a1a 50%, var(--black) 100%);
    position: relative;
    padding: 4rem 0;
    text-align: center;
    overflow: hidden;
}

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

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    letter-spacing: 2px;
}

.hero-content p {
    font-size: 1rem;
    margin-bottom: 2rem;
    color: var(--dark-text-secondary);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
}

/* ============================================
   BUTTONS - REFINED
   ============================================ */
.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--black);
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
    background: var(--dark-card);
    color: var(--gold);
    border: 1px solid var(--gold);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
}

.btn-outline:hover {
    background: var(--gold);
    color: var(--black);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 0.9375rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-warning {
    background: var(--warning);
    color: white;
}

.btn-info {
    background: var(--info);
    color: white;
}

/* ============================================
   FEATURE CARDS - REFINED
   ============================================ */
.features {
    padding: 3rem 0;
    background: var(--dark-bg);
}

.features h2 {
    text-align: center;
    font-size: 1.75rem;
    margin-bottom: 2rem;
    color: var(--gold);
    font-weight: 600;
    letter-spacing: 1px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 12px;
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.15);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.feature-card h3 {
    color: var(--gold);
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.feature-card p {
    color: var(--dark-text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
}

/* ============================================
   PRODUCTS SECTION - PROFESSIONAL FILTERS
   ============================================ */
.products-section {
    padding: 3rem 0;
}

.products-header {
    margin-bottom: 2rem;
}

.products-header h1 {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 2rem;
    font-weight: 600;
}

.products-controls {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 2rem;
}

.search-container {
    position: relative;
}

.search-form {
    display: flex;
    gap: 0;
}

.search-form input {
    flex: 1;
    padding: 0.75rem 1.25rem;
    border: 1px solid var(--dark-border);
    border-radius: 8px 0 0 8px;
    font-size: 0.875rem;
    background: var(--dark-card);
    color: var(--dark-text);
    transition: all 0.3s ease;
}

.search-form input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.1);
}

.search-form button {
    border-radius: 0 8px 8px 0;
    padding: 0.75rem 1.5rem;
}

.category-filter {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.category-filter label {
    font-size: 0.875rem;
    color: var(--dark-text);
    font-weight: 500;
    white-space: nowrap;
}

.category-filter select {
    padding: 0.75rem 1.25rem;
    border: 1px solid var(--dark-border);
    border-radius: 8px;
    background: var(--dark-card);
    color: var(--dark-text);
    font-size: 0.875rem;
    min-width: 200px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-filter select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.1);
}

/* ============================================
   PRODUCTS GRID - REFINED
   ============================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: var(--dark-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--dark-border);
    transition: all 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow: 0 10px 35px rgba(212, 175, 55, 0.15);
}

.product-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.product-card .no-image {
    width: 100%;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark-border);
    color: var(--dark-text-secondary);
    font-size: 0.8125rem;
}

.badge-overlay {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 0.375rem 0.875rem;
    border-radius: 15px;
    font-size: 0.6875rem;
    font-weight: 600;
    color: white;
    backdrop-filter: blur(8px);
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-danger {
    background: rgba(231, 76, 60, 0.9);
}

.badge-warning {
    background: rgba(243, 156, 18, 0.9);
}

.product-info {
    padding: 1.25rem;
}

.product-info h3 {
    font-size: 0.9375rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.product-info h3 a {
    text-decoration: none;
    color: var(--dark-text);
    transition: color 0.3s ease;
}

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

.category-tag {
    font-size: 0.75rem;
    color: var(--gold);
    margin-bottom: 0.75rem;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
    margin: 0.75rem 0;
    display: block;
}

/* ============================================
   PRODUCT DETAIL - REFINED
   ============================================ */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 2rem 0;
}

.product-gallery {
    position: sticky;
    top: 100px;
    align-self: start;
}

.gallery-tabs {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.tab-btn {
    flex: 1;
    padding: 0.75rem;
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--dark-text);
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: var(--gold);
    color: var(--black);
    border-color: var(--gold);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.product-image {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--dark-border);
}

.viewer-3d {
    width: 100%;
    height: 450px;
    background: var(--dark-card);
    border-radius: 12px;
    border: 1px solid var(--dark-border);
}

.viewer-controls {
    display: flex;
    gap: 1rem;
    margin-top: 1.25rem;
    align-items: center;
}

.product-details h1 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    color: var(--gold);
    font-weight: 600;
}

.price-large {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold);
    margin: 1.25rem 0;
}

.stock-info {
    padding: 0.875rem 1.25rem;
    border-radius: 8px;
    margin: 1.25rem 0;
    font-weight: 600;
    border: 1px solid;
    font-size: 0.875rem;
}

.stock-available {
    background: rgba(46, 204, 113, 0.1);
    color: var(--success);
    border-color: var(--success);
}

.stock-unavailable {
    background: rgba(231, 76, 60, 0.1);
    color: var(--danger);
    border-color: var(--danger);
}

.product-description {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: var(--dark-card);
    border-radius: 8px;
    border: 1px solid var(--dark-border);
}

.product-description h3 {
    color: var(--gold);
    margin-bottom: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
}

.product-description p {
    color: var(--dark-text-secondary);
    line-height: 1.6;
    font-size: 0.875rem;
}

.quantity-selector {
    margin: 1.5rem 0;
}

.quantity-selector label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-text);
    font-size: 0.875rem;
}

.quantity-selector input {
    width: 100px;
    padding: 0.625rem;
    font-size: 1rem;
    border: 1px solid var(--dark-border);
    border-radius: 6px;
    background: var(--dark-card);
    color: var(--dark-text);
}

/* ============================================
   CART - REFINED
   ============================================ */
.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr 100px 100px 50px;
    gap: 1.25rem;
    align-items: center;
    background: var(--dark-card);
    padding: 1.25rem;
    border-radius: 10px;
    margin-bottom: 1.25rem;
    border: 1px solid var(--dark-border);
}

.cart-item:hover {
    border-color: var(--gold);
}

.cart-item-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--dark-border);
}

.cart-item-info h3 {
    font-size: 0.9375rem;
    color: var(--dark-text);
    margin-bottom: 0.25rem;
}

.cart-item-quantity input {
    width: 60px;
    padding: 0.5rem;
    text-align: center;
    border: 1px solid var(--dark-border);
    border-radius: 6px;
    background: var(--dark-bg);
    color: var(--dark-text);
    font-weight: 600;
    font-size: 0.875rem;
}

.cart-summary {
    background: var(--dark-card);
    padding: 2rem;
    border-radius: 12px;
    margin-top: 1.5rem;
    border: 1px solid var(--gold);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--dark-border);
    color: var(--dark-text);
    font-size: 0.9375rem;
}

.summary-row.total {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
    border-bottom: none;
    margin-top: 0.75rem;
    padding-top: 1.25rem;
    border-top: 2px solid var(--gold);
}

/* ============================================
   CHECKOUT - REFINED
   ============================================ */
.checkout-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2.5rem;
    padding: 2.5rem 0;
}

.checkout-form,
.checkout-summary {
    background: var(--dark-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--dark-border);
}

.checkout-summary {
    position: sticky;
    top: 100px;
    align-self: start;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-text);
    font-size: 0.875rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid var(--dark-border);
    border-radius: 6px;
    font-size: 0.875rem;
    background: var(--dark-bg);
    color: var(--dark-text);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.checkout-item {
    display: flex;
    justify-content: space-between;
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--dark-border);
    color: var(--dark-text);
    font-size: 0.875rem;
}

/* ============================================
   ADMIN - REFINED LIGHT THEME
   ============================================ */
.admin-page header {
    background: white;
    border-bottom: 1px solid var(--admin-border);
}

.admin-page .nav-brand h1 {
    color: var(--admin-text);
}

.admin-page .nav-menu a {
    color: var(--admin-text);
}

.admin-page .cart-link {
    background: var(--gold);
    color: var(--black);
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2rem 0;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--admin-border);
}

.page-header h1 {
    color: var(--admin-text);
    font-size: 1.75rem;
    font-weight: 600;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-card {
    background: var(--admin-card);
    padding: 1.75rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 1px 5px rgba(0,0,0,0.05);
    border: 1px solid var(--admin-border);
}

.stat-card h3 {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.stat-card p {
    color: var(--admin-text);
    font-weight: 500;
    font-size: 0.875rem;
}

.admin-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.25rem;
}

.admin-link {
    display: block;
    padding: 1.75rem;
    background: var(--admin-card);
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    color: var(--admin-text);
    font-weight: 600;
    font-size: 0.9375rem;
    border: 1px solid var(--admin-border);
    transition: all 0.3s ease;
}

.admin-link:hover {
    transform: translateY(-3px);
    border-color: var(--gold);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.1);
    color: var(--gold);
}

.table-responsive {
    overflow-x: auto;
    background: var(--admin-card);
    border-radius: 10px;
    padding: 1.25rem;
    box-shadow: 0 1px 5px rgba(0,0,0,0.05);
    border: 1px solid var(--admin-border);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.admin-table thead {
    background: var(--admin-bg);
}

.admin-table th,
.admin-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--admin-border);
}

.admin-table th {
    font-weight: 600;
    color: var(--admin-text);
}

.product-thumb,
.feature-icon-thumb {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--admin-border);
}

.badge {
    display: inline-block;
    padding: 0.3125rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success {
    background: rgba(46, 204, 113, 0.15);
    color: var(--success);
}

.badge-secondary {
    background: rgba(149, 165, 166, 0.15);
    color: #7f8c8d;
}

.badge-info {
    background: rgba(52, 152, 219, 0.15);
    color: var(--info);
}

.badge-warning {
    background: rgba(243, 156, 18, 0.15);
    color: var(--warning);
}

.actions {
    display: flex;
    gap: 0.5rem;
}

/* ============================================
   LOGIN - REFINED
   ============================================ */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
}

.login-box {
    background: var(--admin-card);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    width: 100%;
    max-width: 420px;
    border: 1px solid var(--admin-border);
}

.login-box h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--admin-text);
    font-size: 1.5rem;
    font-weight: 600;
}

/* ============================================
   ALERTS - REFINED
   ============================================ */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin: 1.25rem 0;
    border-left: 3px solid;
    font-size: 0.875rem;
}

.alert-success {
    background: rgba(46, 204, 113, 0.1);
    color: var(--success);
    border-color: var(--success);
}

.alert-danger {
    background: rgba(231, 76, 60, 0.1);
    color: var(--danger);
    border-color: var(--danger);
}

.alert-warning {
    background: rgba(243, 156, 18, 0.1);
    color: var(--warning);
    border-color: var(--warning);
}

/* ============================================
   SUCCESS/ERROR PAGES - REFINED
   ============================================ */
.success-container,
.error-container {
    max-width: 650px;
    margin: 3rem auto;
    text-align: center;
    background: var(--dark-card);
    padding: 3rem 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--gold);
}

.success-icon,
.error-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.order-details {
    background: var(--dark-bg);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    text-align: left;
    border: 1px solid var(--dark-border);
}

.order-details h2,
.order-details h3 {
    color: var(--gold);
    margin-bottom: 1.25rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.order-info p {
    color: var(--dark-text);
    margin-bottom: 0.625rem;
    font-size: 0.875rem;
}

.order-item {
    display: flex;
    justify-content: space-between;
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--dark-border);
    color: var(--dark-text);
    font-size: 0.875rem;
}

/* ============================================
   FOOTER - REFINED
   ============================================ */
footer {
    background: var(--black);
    color: var(--dark-text);
    padding: 2.5rem 0;
    text-align: center;
    margin-top: 4rem;
    border-top: 1px solid var(--gold);
}

footer p {
    margin: 0.375rem 0;
    font-size: 0.875rem;
}

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state p {
    font-size: 1.125rem;
    color: var(--dark-text-secondary);
    margin-bottom: 2rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .product-detail,
    .checkout-container {
        grid-template-columns: 1fr;
    }
    
    .products-controls {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .cart-item {
        grid-template-columns: 70px 1fr;
        gap: 1rem;
    }
    
    .cart-item-quantity,
    .cart-item-subtotal,
    .cart-item-remove {
        grid-column: 1 / -1;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.25rem;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 13px;
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .price-large {
        font-size: 2rem;
    }
}

/* ============================================
   CATEGORIES GRID - REFINED
   ============================================ */
.categories {
    padding: 3rem 0;
    background: var(--dark-bg);
}

.categories h2 {
    text-align: center;
    font-size: 1.75rem;
    margin-bottom: 2rem;
    color: var(--gold);
    font-weight: 600;
    letter-spacing: 1px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: var(--dark-card);
    padding: 2.5rem 1.75rem;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    color: var(--dark-text);
    border: 1px solid var(--dark-border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.5s ease;
}

.category-card:hover::before {
    transform: scale(1);
}

.category-card:hover {
    transform: translateY(-8px);
    border-color: var(--gold);
    box-shadow: 0 10px 35px rgba(212, 175, 55, 0.15);
}

.category-card h3 {
    color: var(--gold);
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
    font-weight: 600;
}

.category-card p {
    color: var(--dark-text-secondary);
    font-size: 0.875rem;
    position: relative;
    z-index: 1;
}

/* ============================================
   RELATED PRODUCTS
   ============================================ */
.related-products {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--dark-border);
}

.related-products h2 {
    color: var(--gold);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

/* ============================================
   SITE LOGO
   ============================================ */
.site-logo {
    max-height: 50px;
    width: auto;
    display: block;
}

.nav-brand a {
    display: flex;
    align-items: center;
}

/* Admin logo */
.admin-page .site-logo {
    max-height: 45px;
}

/* ============================================
   HERO CAROUSEL
   ============================================ */
.hero-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: var(--black);
}

.carousel-container {
    position: relative;
    width: 100%;
}

.carousel-slide {
    display: none;
    position: relative;
    width: 100%;
    min-height: 500px;
}

.carousel-slide.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
    display: flex;
    align-items: center;
}

.hero-overlay .hero-content {
    position: relative;
    z-index: 1;
}

.hero-overlay .hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--gold);
    font-weight: 800;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-overlay .hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    color: var(--dark-text);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(212, 175, 55, 0.8);
    color: var(--black);
    border: none;
    font-size: 3rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    font-weight: bold;
    line-height: 1;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: var(--gold);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-indicators .indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: 2px solid var(--gold);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-indicators .indicator.active {
    background: var(--gold);
    width: 40px;
    border-radius: 6px;
}

.carousel-indicators .indicator:hover {
    background: rgba(212, 175, 55, 0.7);
}

/* Responsive carousel */
@media (max-width: 768px) {
    .carousel-slide {
        min-height: 400px;
    }
    
    .hero-image {
        height: 400px;
    }
    
    .hero-overlay .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-overlay .hero-content p {
        font-size: 1rem;
    }
    
    .carousel-prev,
    .carousel-next {
        width: 40px;
        height: 40px;
        font-size: 2rem;
    }
}

/* ============================================
   PRODUCT GALLERY - MÚLTIPLES IMÁGENES
   ============================================ */
.main-image-container {
    width: 100%;
    background: var(--dark-card);
    border-radius: 12px;
    border: 1px solid var(--dark-border);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.main-product-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    display: block;
}

.thumbnails-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.thumbnail {
    cursor: pointer;
    border: 2px solid var(--dark-border);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: var(--dark-card);
    aspect-ratio: 1;
}

.thumbnail:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.thumbnail.active {
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.no-image-large {
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark-border);
    color: var(--dark-text-secondary);
    font-size: 1rem;
    border-radius: 12px;
}

.viewer-3d-toggle {
    margin-top: 1.25rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .main-image-container {
        min-height: 300px;
    }
    
    .main-product-image {
        max-height: 350px;
    }
    
    .thumbnails-container {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .main-image-container {
        min-height: 250px;
    }
    
    .main-product-image {
        max-height: 300px;
    }
}

/* ============================================
   FIX: Product Gallery Sticky en Móviles
   ============================================ */
@media (max-width: 1024px) {
    .product-gallery {
        position: relative !important;
        top: auto !important;
        align-self: auto !important;
    }
}

/* ============================================
   CONTACT PAGE STYLES
   ============================================ */

.contact-page {
    padding: 3rem 0;
    min-height: calc(100vh - 200px);
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 0.75rem;
}

.page-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Contact Form */
.contact-form-section .card {
    padding: 2rem;
}

.contact-form-section h2 {
    color: var(--gold);
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.875rem;
    background: var(--dark-bg);
    border: 1px solid var(--dark-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-large {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
}

/* Contact Info */
.contact-info-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-info {
    padding: 2rem;
}

.contact-info h3 {
    color: var(--gold);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.info-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--dark-border);
}

.info-item:last-child {
    border-bottom: none;
}

.info-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.info-content {
    flex: 1;
}

.info-content strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.info-content p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.info-content a {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-content a:hover {
    color: #f4d03f;
}

.whatsapp-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Map Container */
.map-container {
    padding: 2rem;
}

.map-container h3 {
    color: var(--gold);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

#map {
    border: 2px solid var(--dark-border);
}

/* Responsive */
@media (max-width: 968px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .contact-page {
        padding: 2rem 0;
    }
    
    .page-header h1 {
        font-size: 1.75rem;
    }
    
    .contact-form-section .card,
    .contact-info,
    .map-container {
        padding: 1.5rem;
    }
}

/* ============================================
   WHATSAPP FLOATING BUTTON
   ============================================ */

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
    overflow: hidden;
}

.whatsapp-float:hover {
    background: #20BA5A;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    transform: translateY(-3px) scale(1.05);
    width: 180px;
    border-radius: 30px;
}

.whatsapp-icon {
    width: 32px;
    height: 32px;
    color: white;
    transition: all 0.3s ease;
}

.whatsapp-float:hover .whatsapp-icon {
    width: 28px;
    height: 28px;
}

.whatsapp-text {
    color: white;
    font-weight: 600;
    font-size: 1rem;
    margin-left: 8px;
    opacity: 0;
    width: 0;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.whatsapp-float:hover .whatsapp-text {
    opacity: 1;
    width: auto;
}

/* Animación de pulso */
@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.7);
    }
    100% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }
}

.whatsapp-float {
    animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float:hover {
    animation: none;
}

/* Responsive */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
    }
    
    .whatsapp-icon {
        width: 28px;
        height: 28px;
    }
    
    .whatsapp-float:hover {
        width: 56px;
        border-radius: 50%;
    }
    
    .whatsapp-float:hover .whatsapp-icon {
        width: 28px;
        height: 28px;
    }
    
    .whatsapp-text {
        display: none;
    }
}
