/*
Theme Name: LauDieCast
Theme URI: https://laudiecast.az
Author: LauDieCast
Author URI: https://laudiecast.az
Description: Premium Diecast Model Avtomobillər — LauDieCast mağaza teması. Modern, responsive, dark tema dizaynı ilə diecast model avtomobil satış mağazası.
Version: 1.4.0
Requires at least: 5.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: laudiecast
Tags: e-commerce, dark, modern, responsive, custom-colors, one-column, two-columns
*/

/* ============================================================
   LauDieCast — WordPress Theme Design System
   Colors: Orange (#FF6B00), Black (#111), White (#FAFAFA)
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
    --orange: #FF6B00;
    --orange-light: #FF8C33;
    --orange-dark: #CC5500;
    --orange-glow: rgba(255, 107, 0, 0.35);
    --black: #111111;
    --black-light: #1A1A1A;
    --black-card: #1E1E1E;
    --black-hover: #252525;
    --white: #FAFAFA;
    --white-muted: #B0B0B0;
    --gray: #888;
    --danger: #e74c3c;
    --success: #27ae60;
    --radius: 14px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 30px var(--orange-glow);
    --transition: 0.3s cubic-bezier(.4, 0, .2, 1);
    --font-main: 'Inter', -apple-system, system-ui, sans-serif;
    --font-display: 'Outfit', 'Inter', sans-serif;
}

/* ---------- WordPress Global Overrides ---------- */
body {
    font-family: var(--font-main);
    background: var(--black);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
}

img {
    display: block;
    max-width: 100%;
}

input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
}

/* ---------- WordPress Admin Bar Fix ---------- */
body.admin-bar .header {
    top: 32px;
}

@media (max-width: 782px) {
    body.admin-bar .header {
        top: 46px;
    }
}

/* ---------- WordPress Default Class Resets ---------- */
.wp-block-post-content,
.entry-content,
.site-content {
    background: var(--black);
    color: var(--white);
}

/* Hide WP default post navigation & meta if not needed */
.post-navigation,
.entry-meta,
.entry-footer {
    display: none;
}

/* ========= SCROLLBAR ========= */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--black);
}

::-webkit-scrollbar-thumb {
    background: var(--orange-dark);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--orange);
}

/* ========= HEADER ========= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(17, 17, 17, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 107, 0, 0.15);
    padding: 0 24px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.header-logo img {
    height: 48px;
    width: auto;
    border-radius: 8px;
    flex-shrink: 0;
}

.header-logo span {
    display: none;
}

/* ========= HEADER CATEGORY DROPDOWN ========= */
.header-cat-dropdown {
    margin-left: 8px;
}

.header-cat-select {
    background: rgba(255, 255, 255, 0.05);
    color: var(--white-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 0.85rem;
    font-weight: 500;
    outline: none;
    cursor: pointer;
    transition: var(--transition);
}

.header-cat-select:hover,
.header-cat-select:focus {
    color: var(--orange);
    border-color: rgba(255, 107, 0, 0.3);
    background: rgba(255, 107, 0, 0.05);
}

/* ========= SCROLL LINK ========= */
.scroll-link {
    cursor: pointer;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-nav-btn {
    background: transparent;
    color: var(--white-muted);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.header-nav-btn:hover,
.header-nav-btn.active {
    color: var(--orange);
    background: rgba(255, 107, 0, 0.08);
}

/* ========= HEADER SEARCH (NEW CENTERED) ========= */
.header-search-container {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 0 20px;
    max-width: 600px;
}

.header-search {
    display: flex;
    align-items: center;
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 107, 0, 0.2);
    border-radius: 30px;
    padding: 4px;
    transition: var(--transition);
}

.header-search:focus-within {
    border-color: var(--orange);
    background: rgba(255, 107, 0, 0.05);
    box-shadow: 0 0 15px rgba(255, 107, 0, 0.15);
}

.header-search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--white);
    padding: 8px 16px;
    font-size: 0.95rem;
    outline: none;
    min-width: 0;
}

.header-search-btn {
    background: var(--orange);
    color: var(--black);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.header-search-btn:hover {
    background: var(--orange-light);
    transform: scale(1.05);
}

.cart-btn {
    position: relative;
    background: rgba(255, 107, 0, 0.1);
    color: var(--orange);
    font-size: 1.2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.cart-btn:hover {
    background: rgba(255, 107, 0, 0.2);
    transform: scale(1.08);
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--orange);
    color: var(--black);
    font-size: 0.7rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: popIn 0.3s ease;
}

@keyframes popIn {
    0% {
        transform: scale(0);
    }

    70% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

/* ========= HERO ========= */
.hero {
    padding: 100px 24px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--orange-glow) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 12px;
}

.hero h1 .orange {
    color: var(--orange);
}

.hero p {
    color: var(--white-muted);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto 32px;
}

/* ========= SECTION ========= */
.section {
    padding: 48px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title .accent-bar {
    width: 4px;
    height: 28px;
    background: var(--orange);
    border-radius: 2px;
}

/* ========= SCALE FILTER ========= */
.scale-filter-section {
    margin-top: 20px;
    margin-bottom: 8px;
}

.section-subtitle {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--white-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.scale-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding-bottom: 16px;
}

.scale-chip {
    flex-shrink: 0;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    background: var(--black-card);
    color: var(--white-muted);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: var(--transition);
    white-space: nowrap;
}

.scale-chip:hover {
    background: var(--black-hover);
    color: var(--white);
    border-color: rgba(255, 107, 0, 0.3);
}

.scale-chip.active {
    background: var(--orange);
    color: var(--black);
    border-color: var(--orange);
    box-shadow: var(--shadow-glow);
}

/* ========= FEATURED GRID ========= */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

/* ========= CATEGORIES ========= */
.categories-bar {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    padding: 4px 0 16px;
}

.cat-chip {
    flex-shrink: 0;
    padding: 8px 14px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    background: var(--black-card);
    color: var(--white-muted);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: var(--transition);
    white-space: nowrap;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.cat-chip:hover {
    background: var(--black-hover);
    color: var(--white);
    border-color: rgba(255, 107, 0, 0.3);
}

.cat-chip.active {
    background: var(--orange);
    color: var(--black);
    border-color: var(--orange);
    box-shadow: var(--shadow-glow);
}

.cat-chip.sub-cat {
    margin-left: 12px;
    font-size: 0.85rem;
    padding: 8px 18px;
    border-style: dashed;
}

.cat-chip.parent-active {
    border-color: var(--orange);
    color: var(--orange);
    background: rgba(255, 107, 0, 0.05);
}

/* ========= PRODUCT CARD ========= */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.product-card {
    background: var(--black-card);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 107, 0, 0.3);
    box-shadow: var(--shadow-glow);
}

.product-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    background: #161616;
    overflow: hidden;
    display: block;
}

.product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-img-wrap img {
    transform: scale(1.06);
}

/* ========= QUICK VIEW BUTTON ========= */
.quick-view-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: rgba(255, 107, 0, 0.9);
    color: var(--white);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s cubic-bezier(.4, 0, .2, 1);
    box-shadow: 0 4px 16px rgba(255, 107, 0, 0.4);
    opacity: 0;
}

.product-card:hover .quick-view-btn {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.quick-view-btn:hover {
    background: var(--orange);
    transform: translate(-50%, -50%) scale(1.15) !important;
    box-shadow: 0 6px 24px rgba(255, 107, 0, 0.6);
}

.product-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--orange);
    background: linear-gradient(135deg, #161616 0%, #1e1e1e 100%);
}

.product-info {
    padding: 14px 16px 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    color: inherit;
}

.product-card-actions {
    padding: 0 16px 16px;
}

.product-name {
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--white);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-subtitle {
    font-size: 0.78rem;
    font-style: italic;
    color: var(--orange-light);
    margin-top: -4px;
    margin-bottom: 8px;
}

.product-subtitle {
    font-size: 0.78rem;
    font-style: italic;
    color: var(--orange-light);
    margin-top: -4px;
    margin-bottom: 8px;
}

.product-subtitle {
    font-size: 0.78rem;
    font-style: italic;
    color: var(--orange-light);
    margin-top: -4px;
    margin-bottom: 8px;
}

.product-price {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--orange);
}

.product-price span {
    font-size: 0.8rem;
    color: var(--white-muted);
    font-weight: 400;
}

.add-to-cart-btn {
    width: 100%;
    padding: 10px;
    border-radius: var(--radius-sm);
    background: rgba(255, 107, 0, 0.1);
    color: var(--orange);
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: auto;
}

.add-to-cart-btn:hover {
    background: var(--orange);
    color: var(--black);
}

.add-to-cart-btn.added {
    background: var(--success);
    color: var(--white);
}

/* ========= QUICK VIEW MODAL ========= */
.quickview-overlay {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.quickview-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
}

.quickview-modal {
    position: relative;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    background: var(--black-light);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 107, 0, 0.2);
    overflow: hidden;
    animation: quickviewSlideIn 0.35s cubic-bezier(.4, 0, .2, 1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), var(--shadow-glow);
}

@keyframes quickviewSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(30px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.quickview-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--white-muted);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
    z-index: 10;
}

.quickview-close:hover {
    background: rgba(255, 107, 0, 0.2);
    color: var(--orange);
}

.quickview-body {
    display: flex;
    gap: 0;
    max-height: 90vh;
}

.quickview-gallery {
    flex: 1;
    background: #161616;
    display: flex;
    flex-direction: column;
}

.quickview-main-img {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    min-height: 300px;
}

.quickview-main-img img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.quickview-thumbs {
    display: flex;
    gap: 8px;
    padding: 12px 24px 20px;
    overflow-x: auto;
    scrollbar-width: none;
}

.quickview-thumbs::-webkit-scrollbar {
    display: none;
}

.quickview-thumb {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    flex-shrink: 0;
    transition: var(--transition);
}

.quickview-thumb:hover,
.quickview-thumb.active {
    border-color: var(--orange);
}

.quickview-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.quickview-info {
    flex: 0 0 280px;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: center;
}

.quickview-info h2 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.3;
}

.quickview-price {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--orange);
}

.quickview-cart-btn {
    margin-top: 8px;
}

/* ========= CART OVERLAY ========= */
.cart-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    justify-content: flex-end;
    animation: fadeIn 0.2s ease;
}

.cart-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.cart-panel {
    position: relative;
    width: 450px;
    max-width: 90vw;
    height: 100%;
    background: var(--black-light);
    border-left: 1px solid rgba(255, 107, 0, 0.15);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    animation: slideIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

.cart-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-header h2 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
}

.cart-close {
    background: rgba(255, 255, 255, 0.06);
    color: var(--white-muted);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

.cart-close:hover {
    background: rgba(255, 107, 0, 0.15);
    color: var(--orange);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 16px 24px;
}

.cart-empty {
    text-align: center;
    color: var(--white-muted);
    padding: 60px 20px;
}

.cart-empty .icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.cart-item {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.cart-item-img {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    background: #161616;
    overflow: hidden;
    flex-shrink: 0;
}

.cart-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cart-item-name {
    font-size: 0.85rem;
    font-weight: 600;
}

.cart-item-price {
    font-size: 0.8rem;
    color: var(--orange);
    font-weight: 600;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--white);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.qty-btn:hover {
    background: rgba(255, 107, 0, 0.2);
    color: var(--orange);
}

.qty-num {
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 18px;
    text-align: center;
}

.cart-item-remove {
    background: none;
    color: var(--danger);
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
    transition: var(--transition);
}

.cart-item-remove:hover {
    background: rgba(231, 76, 60, 0.1);
}

/* Cart Footer & Delivery */
.cart-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.delivery-section label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--white-muted);
}

.delivery-select {
    width: 100%;
    padding: 10px 14px;
    background: var(--black-card);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    transition: var(--transition);
}

.delivery-select:focus {
    border-color: var(--orange);
    outline: none;
}

.delivery-note {
    font-size: 0.78rem;
    color: var(--orange-light);
    margin-top: 4px;
    font-style: italic;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 700;
}

.cart-total .price {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--orange);
}

.checkout-btn {
    width: 100%;
    padding: 14px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
    color: var(--white);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    transition: var(--transition);
    box-shadow: 0 4px 20px var(--orange-glow);
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px var(--orange-glow);
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--orange);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: var(--transition);
}

.back-to-top:hover {
    background: var(--orange-dark);
    transform: scale(1.1);
}

.back-to-top.show {
    display: flex;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 480px) {
    .cart-panel {
        width: 100%;
        border-left: none;
    }
}

.checkout-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ========== ADMIN PANEL ========== */
.admin-layout {
    padding-top: 88px;
    max-width: 1000px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
    padding-bottom: 60px;
}

.admin-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-title .accent-bar {
    width: 5px;
    height: 32px;
    background: var(--orange);
    border-radius: 3px;
}

.admin-form {
    background: var(--black-card);
    border-radius: var(--radius-lg);
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 40px;
}

.admin-form h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--orange);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group.full {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--white-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select {
    padding: 10px 14px;
    background: var(--black);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--orange);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
}

.admin-submit-btn {
    margin-top: 20px;
    padding: 12px 32px;
    border-radius: var(--radius);
    background: var(--orange);
    color: var(--black);
    font-size: 0.95rem;
    font-weight: 700;
    transition: var(--transition);
}

.admin-submit-btn:hover {
    background: var(--orange-light);
    transform: translateY(-1px);
}

/* Admin Product List */
.admin-products-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-product-row {
    background: var(--black-card);
    border-radius: var(--radius);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: var(--transition);
}

.admin-product-row:hover {
    border-color: rgba(255, 107, 0, 0.15);
}

.admin-product-img {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    background: #161616;
    overflow: hidden;
    flex-shrink: 0;
}

.admin-product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-product-info {
    flex: 1;
}

.admin-product-info .name {
    font-size: 0.9rem;
    font-weight: 600;
}

.admin-product-info .meta {
    font-size: 0.8rem;
    color: var(--white-muted);
    margin-top: 2px;
}

.admin-product-info .price-tag {
    color: var(--orange);
    font-weight: 600;
}

.admin-actions {
    display: flex;
    gap: 8px;
}

.admin-edit-btn,
.admin-delete-btn {
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: var(--transition);
}

.admin-edit-btn {
    background: rgba(255, 107, 0, 0.1);
    color: var(--orange);
}

.admin-edit-btn:hover {
    background: rgba(255, 107, 0, 0.2);
}

.admin-delete-btn {
    background: rgba(231, 76, 60, 0.1);
    color: var(--danger);
}

.admin-delete-btn:hover {
    background: rgba(231, 76, 60, 0.2);
}

/* ========= SITE FOOTER (NEW) ========= */
.site-footer {
    background: #0d0d0d;
    padding: 80px 24px 40px;
    border-top: 1px solid rgba(255, 107, 0, 0.15);
    color: var(--white-muted);
    text-align: left;
    /* Reset from center */
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--orange);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--orange);
    border-radius: 2px;
}

.footer-section p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #cecece;
}

.social-btn {
    position: relative !important;
    z-index: 999999 !important;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.08);
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* Ensure nothing blocks the footer interaction */
.site-footer,
.footer-container,
.footer-grid,
.footer-section {
    pointer-events: auto !important;
}

.footer-social {
    position: relative !important;
    z-index: 99999 !important;
    display: flex;
    gap: 16px;
    margin-top: 24px;
    pointer-events: auto !important;
}

.social-btn svg {
    width: 24px;
    height: 24px;
}

.social-btn.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: transparent;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(220, 39, 67, 0.3);
}

.social-btn.email:hover {
    background: #007bff;
    border-color: transparent;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 123, 255, 0.3);
}

.social-btn.whatsapp:hover {
    background: #25D366;
    border-color: transparent;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    font-size: 0.9rem;
    color: #888;
}

/* Response Fix for Mobile */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .site-footer {
        padding: 40px 24px 30px;
    }
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    width: 45px;
    height: 45px;
    background: var(--orange);
    color: var(--black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    pointer-events: auto !important;
}

/* ========= RESPONSIVE ========= */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .featured-grid,
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .cart-panel {
        width: 100%;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .admin-product-row {
        flex-wrap: wrap;
    }

    .header-logo span {
        display: none;
    }

    /* Quick view responsive */
    .quickview-body {
        flex-direction: column;
    }

    .quickview-info {
        flex: none;
        padding: 20px;
    }

    .quickview-main-img {
        min-height: 200px;
    }

    .quickview-main-img img {
        max-height: 280px;
    }

    /* Search responsive (Centered row) */
    .header-search-container {
        order: 3;
        flex: 0 0 70%;
        width: 70%;
        max-width: 70%;
        margin: 0 auto;
        padding: 10px 0 0;
    }

    .header-search {
        padding: 4px;
    }

    .header-search-input {
        padding: 8px 12px;
        font-size: 0.9rem;
    }

    .header-search-btn {
        width: 36px;
        height: 36px;
    }

    .header {
        height: auto;
        padding: 12px 20px;
        flex-wrap: wrap;
    }

    .header-nav {
        gap: 6px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 0 8px;
    }

    .header-nav {
        gap: 2px;
    }

    .header-cat-dropdown {
        margin-left: 2px;
    }

    .header-cat-select {
        padding: 4px 6px;
        font-size: 0.75rem;
        border-radius: 14px;
    }

    .header-search-toggle {
        width: 34px;
        height: 34px;
    }

    .cart-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .featured-grid,
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .section {
        padding: 32px 16px;
    }

    .product-info {
        padding: 10px 12px 4px;
    }

    .product-card-actions {
        padding: 0 12px 12px;
    }

    .product-name {
        font-size: 0.8rem;
    }

    .product-price {
        font-size: 1rem;
    }

    .quick-view-btn {
        width: 38px;
        height: 38px;
    }

    .quick-view-btn svg {
        width: 16px;
        height: 16px;
    }

    .header-logo img {
        height: 52px;
        width: auto;
        object-fit: contain;
        flex-shrink: 0;
    }

    .header-search-container {
        width: 70%;
        max-width: 70%;
        padding: 8px 0 0;
    }

    .header-search-input {
        font-size: 0.82rem;
        padding: 6px 10px;
    }
}

/* ========= ADMIN ADDITIONS ========= */
.admin-login-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: 40px 24px;
}

.admin-login-form {
    background: var(--black-card);
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 107, 0, 0.2);
    width: 100%;
    max-width: 360px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: center;
    box-shadow: var(--shadow-glow);
}

.admin-login-form h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
}

.admin-login-form input {
    padding: 12px 16px;
    background: var(--black);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--white);
    font-size: 1rem;
    transition: var(--transition);
}

.admin-login-form input:focus {
    border-color: var(--orange);
    outline: none;
}

.admin-login-form button {
    padding: 12px;
    background: var(--orange);
    color: var(--black);
    font-weight: 700;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.admin-login-form button:hover {
    background: var(--orange-light);
    transform: translateY(-2px);
}

.error-msg {
    color: var(--danger);
    font-size: 0.85rem;
    font-weight: 600;
}

.admin-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.admin-nav-tabs {
    display: flex;
    gap: 12px;
    align-items: center;
}

.tab-btn {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--white-muted);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.tab-btn.active {
    background: var(--orange);
    color: var(--black);
}

.logout-btn-link {
    background: none;
    color: var(--danger);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.logout-btn-link:hover {
    background: rgba(231, 76, 60, 0.1);
}

/* Orders */
.admin-order-card {
    background: var(--black-card);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.order-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 8px;
}

.order-date {
    font-size: 0.8rem;
    color: var(--white-muted);
}

.order-id {
    font-size: 0.8rem;
    color: var(--gray);
}

.order-customer {
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.order-customer a {
    color: var(--orange);
}

.order-items {
    background: rgba(0, 0, 0, 0.2);
    padding: 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}

.order-items p {
    font-size: 0.85rem;
    margin-bottom: 6px;
}

.order-items ul {
    list-style: none;
    padding-left: 4px;
}

.order-items li {
    font-size: 0.8rem;
    color: var(--white-muted);
    margin-bottom: 4px;
}

.order-footer {
    text-align: right;
    color: var(--orange);
    font-size: 1.1rem;
}

/* Stock Status */
.out-of-stock {
    opacity: 0.7;
}

.status-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-left: 8px;
}

.status-badge.error {
    background: var(--danger);
    color: var(--white);
}

.no-data {
    text-align: center;
    color: var(--white-muted);
    padding: 40px;
}

/* ========= WordPress Gutenberg Block Overrides ========= */
.wp-block-group,
.wp-block-columns {
    max-width: 1200px;
    margin: 0 auto;
}

.has-background {
    padding: 20px;
}

/* WordPress Pagination */
.pagination {
    text-align: center;
    padding: 40px 0;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 4px;
    background: var(--black-card);
    color: var(--white-muted);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: var(--transition);
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background: var(--orange);
    color: var(--black);
    border-color: var(--orange);
}

/* ========= QUICK VIEW NAV ARROWS ========= */
.quickview-main-img {
    position: relative;
    padding: 0 !important;
}

.quickview-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 15;
    backdrop-filter: blur(4px);
}

.quickview-nav-btn:hover {
    background: var(--orange);
    color: var(--white);
}

.quickview-nav-btn.prev {
    left: 10px;
}

.quickview-nav-btn.next {
    right: 10px;
}

.quickview-info {
    padding-top: 50px !important;
}

/* Single Product WooCommerce styling adjustment */
.single-product .summary,
.single-product .product_title {
    margin-top: 30px;
}

.single-product .woocommerce-product-gallery {
    position: relative !important;
    overflow: visible !important;
    z-index: 10;
}

.sp-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6) !important;
    color: #ffffff !important;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 99 !important;
    /* Lowered from 9999 to avoid masking issues */
    transition: 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    pointer-events: auto !important;
}

.sp-nav-btn:hover {
    background: #FF6B00 !important;
}

.sp-nav-btn.prev {
    left: 10px;
}

.sp-nav-btn.next {
    right: 10px;
}

/* Ensure gallery elements are clickable */
.flex-control-thumbs li,
.flex-control-nav li,
.thumbnails .thumb,
.woocommerce-product-gallery__image {
    pointer-events: auto !important;
    cursor: pointer !important;
}

.single-product .summary {
    padding-left: 40px !important;
}

@media (max-width: 768px) {
    .single-product .summary {
        padding-left: 0 !important;
    }
}

.flex-control-thumbs,
.thumbnails {
    padding-left: 40px !important;
}

.quickview-thumbs {
    padding-left: 40px !important;
}