/* ============================================
   FELTTIST DENTAL STUDIO - Shop Page Styles
   ============================================ */

:root {
    --accent-cyan: #22d3ee;
    --accent-blue: #3b82f6;
    --border-dark: #27272a;
    --bg-surface: #121212;
}

/* ========== PAGE HEADER ========== */
.page-header {
    background: transparent;
    padding: var(--space-xl) 0;
    border-bottom: 1px solid var(--border-dark);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.breadcrumb a {
    color: var(--text-muted);
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--text-primary);
}

.breadcrumb .separator {
    color: var(--border-light);
}

.breadcrumb .current {
    color: var(--accent-cyan);
}

.page-header-content {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.page-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
}

.authorized-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
    border: 1px solid var(--border-dark);
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(34, 211, 238, 0.05);
}

.authorized-badge i {
    color: var(--accent-cyan);
}

/* ========== SHOP CONTENT ========== */
.shop-content {
    padding: 40px 0;
    background: var(--bg-primary);
}

.shop-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
    align-items: start;
}

/* ========== SIDEBAR ========== */
.shop-sidebar {
    position: sticky;
    top: 100px;
    padding-right: 20px;
    border-right: 1px solid var(--border-dark);
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.sidebar-header h3 {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-header h3::before {
    content: '';
    display: block;
    width: 3px;
    height: 16px;
    background: var(--accent-cyan);
}

.reset-btn {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.reset-btn:hover {
    color: var(--accent-cyan);
}

/* Filter Groups */
.filter-group {
    margin-bottom: 30px;
}

.filter-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

/* Filter Options */
.filter-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-secondary);
    transition: all 0.2s;
}

/* Radio & Checkbox Styling */
.filter-option input {
    display: none;
}

.radio-mark,
.checkbox-mark {
    width: 16px;
    height: 16px;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    /* Soft square */
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s;
}

.radio-mark {
    border-radius: 50%;
    /* Circle for radio */
}

/* Checked States */
.filter-option input:checked+.radio-mark {
    border-color: var(--accent-cyan);
}

.filter-option input:checked+.radio-mark::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: var(--accent-cyan);
    border-radius: 50%;
}

.filter-option input:checked+.checkbox-mark {
    background: var(--accent-cyan);
    border-color: var(--accent-cyan);
}

.filter-option input:checked+.checkbox-mark::after {
    content: '';
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 4px;
    height: 8px;
    border: solid black;
    border-width: 0 2px 2px 0;
}

.option-label {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    flex: 1;
    transition: color var(--transition-fast);
}

/* Option count badge */
.option-count {
    margin-left: auto;
    font-size: 10px;
    background: #27272a;
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--text-muted);
}

.filter-option input:checked~.option-count {
    color: var(--accent-cyan);
    background: rgba(34, 211, 238, 0.1);
}

/* Price Range */
.price-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.price-field {
    flex: 1;
}

.price-field input {
    width: 100%;
    background: #18181b;
    border: 1px solid var(--border-dark);
    padding: 8px;
    color: #fff;
    font-size: 12px;
    border-radius: 4px;
    transition: all var(--transition-fast);
}

.price-field input::placeholder {
    color: var(--text-muted);
}

.price-field input:focus {
    border-color: var(--accent-cyan);
    outline: none;
}

.price-separator {
    color: var(--text-muted);
    font-weight: 500;
}

.apply-price-btn {
    width: 100%;
    background: #27272a;
    color: #fff;
    border: none;
    padding: 8px;
    font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.apply-price-btn:hover {
    background: var(--accent-cyan);
    color: #000;
}

/* Sidebar Promo */
.sidebar-promo {
    background: linear-gradient(145deg, #2d0a0a, #1a0505);
    border: 1px solid #7f1d1d;
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
}

.sidebar-promo .promo-badge {
    font-size: 10px;
    font-weight: 800;
    color: #ef4444;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    padding: 0;
    background: none;
    border-radius: 0;
    margin-bottom: 0;
}

.sidebar-promo p {
    font-size: 14px;
    margin-top: 8px;
    line-height: 1.4;
    color: #ffdce0;
}

/* ========== PRODUCTS AREA ========== */
.shop-products {
    min-width: 0;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-dark);
    flex-wrap: wrap;
    gap: var(--space-md);
}

.results-count {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.results-count strong {
    color: var(--accent);
}

.sort-options {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.sort-options label {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.sort-select {
    background: transparent;
    border: 1px solid var(--border-dark);
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23a1a1aa' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 20px;
    transition: all var(--transition-fast);
}

.sort-select:focus {
    outline: none;
    border-color: var(--accent);
}

/* Mobile Filter Toggle */
.mobile-filter-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    border: 1px solid var(--border-dark);
    border-radius: 4px;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

/* Shop Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Updated Product Card */
.products-grid .product-card {
    background: #18181b;
    border: 1px solid #27272a;
    border-radius: 0;
    /* Boxy look */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.2s;
    height: 100%;
}

.products-grid .product-card:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.products-grid .product-image {
    position: relative;
    height: 240px;
    background: #fff;
    /* White background for product */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
}

.products-grid .product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.products-grid .product-card:hover .product-image img {
    transform: scale(1.05);
}

/* Action Buttons Overlay */
.products-grid .product-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
}

.products-grid .product-card:hover .product-actions {
    opacity: 1;
    transform: translateX(0);
}

.products-grid .action-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: white;
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.2s;
    text-decoration: none;
}

.products-grid .action-btn:hover {
    background: var(--accent);
    color: #000;
}

.products-grid .product-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #18181b;
}

.products-grid .product-category {
    font-size: 10px;
    text-transform: uppercase;
    color: #71717a;
    margin-bottom: 6px;
    letter-spacing: 0.05em;
}

.products-grid .product-name {
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.products-grid .product-name a {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 40px;
    text-decoration: none;
    transition: color 0.2s;
}

.products-grid .product-name a:hover {
    color: var(--accent);
}

.products-grid .product-footer {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0;
    border-top: none;
}

.products-grid .product-price {
    display: flex;
    flex-direction: column;
}

.price-current {
    font-size: 15px;
    font-weight: 700;
    color: var(--accent-cyan);
    /* Cyan Price */
}

.price-original {
    font-size: 12px;
    text-decoration: line-through;
    color: #666;
    margin-bottom: 2px;
}

/* Action Button: Square/Rounded */
.products-grid .add-to-cart-btn {
    width: 32px;
    height: 32px;
    background: #27272a;
    border: 1px solid #3f3f46;
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
    cursor: pointer;
}

.products-grid .add-to-cart-btn:hover {
    background: var(--accent-cyan);
    color: #000;
    border-color: var(--accent-cyan);
}

.add-to-cart-btn.preorder {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border-color: #3b82f6;
}

.add-to-cart-btn.preorder:hover {
    background: #3b82f6;
    color: #fff;
}

/* Discount Styles & Badges */
.product-labels {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
    z-index: 2;
}

.product-label {
    font-size: 9px;
    font-weight: 700;
    padding: 4px 8px;
    background: #000;
    color: #fff;
    text-transform: uppercase;
    border-radius: 0;
}

.product-label.discount {
    background: #ef4444;
}

.product-label.best-seller {
    background: #fbbf24;
    color: #000;
}

.product-label.new {
    background: #3b82f6;
}

/* Wrapper to fix original code context */

/* ========== PAGINATION ========== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--panel-border);
}

.page-btn {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.page-btn:hover:not(:disabled):not(.active) {
    border-color: var(--accent);
    color: var(--accent);
}

.page-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--text-dark);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-dots {
    color: var(--text-muted);
    padding: 0 var(--space-sm);
}

/* ========== WHATSAPP FLOAT ========== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #25D366;
    border-radius: var(--radius-full);
    color: white;
    font-size: 28px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all var(--transition-fast);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
}

/* Mobile Filter Close */
.mobile-filter-close {
    display: none;
    width: 100%;
    padding: var(--space-md);
    background: var(--accent);
    color: var(--text-dark);
    font-weight: 600;
    border-radius: var(--radius-md);
    margin-top: var(--space-lg);
}

.sidebar-close {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .shop-layout {
        grid-template-columns: 240px 1fr;
    }
}

@media (max-width: 768px) {
    .shop-layout {
        display: block;
        /* Remove grid */
    }

    .shop-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 300px;
        height: 100vh;
        background: #121212;
        padding: 24px;
        z-index: 1000;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        border-right: none;
    }

    .shop-sidebar.show {
        transform: translateX(0);
    }

    .sidebar-close {
        display: block;
    }

    .mobile-filter-toggle {
        display: flex;
    }

    .results-count {
        display: none;
    }

    .page-header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .products-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .page-title {
        font-size: var(--font-size-2xl);
    }

    .pagination {
        flex-wrap: wrap;
    }
}

/* Sidebar Overlay for Mobile */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
}