/* ==========================================================================
   The Recess - Tienda & Catálogo Virtual Interactivo
   Design System & Stylesheet
   ========================================================================== */

:root {
    --bg-main: #07060c;
    --bg-surface: #0f0d19;
    --bg-card: rgba(18, 16, 30, 0.75);
    --bg-card-hover: rgba(28, 24, 46, 0.88);
    --bg-glass: rgba(15, 13, 25, 0.82);
    --bg-modal: rgba(14, 12, 24, 0.95);
    
    --primary: #e11d48;
    --primary-hover: #f43f5e;
    --accent-purple: #9333ea;
    --accent-magenta: #c026d3;
    --accent-emerald: #10b981;
    --accent-amber: #f59e0b;
    --accent-rose: #f43f5e;
    
    --gradient-primary: linear-gradient(135deg, #e11d48 0%, #c026d3 50%, #7e22ce 100%);
    --gradient-whatsapp: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
    
    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --text-accent: #fda4af;
    
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(225, 29, 72, 0.4);
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 35px rgba(225, 29, 72, 0.25);
    --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.6);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: auto;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Background Ambient Glows (GPU Accelerated) */
.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    z-index: 0;
    transform: translate3d(0, 0, 0);
    will-change: transform;
    opacity: 0.85;
}

.bg-glow-1 {
    top: -120px;
    left: -120px;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(225, 29, 72, 0.18) 0%, transparent 70%);
}

.bg-glow-2 {
    bottom: 50px;
    right: -150px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.15) 0%, transparent 70%);
}

/* Top Announcement Bar */
.announcement-bar {
    background: linear-gradient(90deg, rgba(225, 29, 72, 0.2) 0%, rgba(147, 51, 234, 0.2) 100%);
    border-bottom: 1px solid rgba(225, 29, 72, 0.3);
    padding: 0.45rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    color: #fecdd3;
    letter-spacing: 0.02em;
    z-index: 60;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    background: var(--bg-glass);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0.75rem 1.5rem;
}

.header-container {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

.brand-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
    gap: 0.2rem;
}

.brand-logo-img {
    height: 38px;
    width: auto;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(225, 29, 72, 0.3));
    transition: var(--transition);
}

.brand-logo:hover .brand-logo-img {
    transform: scale(1.03);
}

.footer-logo-img {
    height: 36px;
    width: auto;
    display: block;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 2px 8px rgba(225, 29, 72, 0.3));
}

.brand-subtitle {
    font-size: 0.725rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 600;
}

/* Global Search Box */
.search-box {
    flex: 1;
    max-width: 460px;
    position: relative;
    display: flex;
    align-items: center;
}

.search-box input {
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    padding: 0.6rem 2.5rem 0.6rem 2.6rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.875rem;
    transition: var(--transition);
    outline: none;
}

.search-box input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    box-shadow: 0 0 16px rgba(225, 29, 72, 0.35);
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.search-icon {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
    width: 16px;
    height: 16px;
    pointer-events: none;
}

.btn-clear-search {
    position: absolute;
    right: 0.75rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem;
}

.btn-clear-search:hover {
    color: white;
}

/* Header Action Buttons */
.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.15rem;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition);
    white-space: nowrap;
}

.btn svg,
.btn .bi {
    font-size: 1rem;
    line-height: 1;
}

/* Bootstrap Icons Global Styling */
.bi {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    vertical-align: middle;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(225, 29, 72, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(225, 29, 72, 0.45);
    filter: brightness(1.1);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    border-color: var(--border-subtle);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.btn-sm {
    padding: 0.4rem 0.85rem;
    font-size: 0.8rem;
    border-radius: var(--radius-sm);
}

.btn-block {
    width: 100%;
}

.btn-danger {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.35);
    color: white;
}

/* Cart Button */
.btn-cart {
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    padding: 0.45rem 1.1rem 0.45rem 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(225, 29, 72, 0.35);
    transition: var(--transition);
}

.btn-cart:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 24px rgba(225, 29, 72, 0.5);
}

.cart-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-icon-wrapper svg {
    width: 20px;
    height: 20px;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #ffffff;
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.cart-btn-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
}

.cart-btn-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    opacity: 0.85;
    font-weight: 600;
}

.cart-btn-total {
    font-size: 0.9rem;
    font-weight: 700;
}

/* Hero Section */
.hero-section {
    padding: 2.8rem 1.5rem 2rem;
    text-align: center;
    max-width: 1020px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(225, 29, 72, 0.12);
    border: 1px solid rgba(225, 29, 72, 0.3);
    color: var(--text-accent);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.825rem;
    font-weight: 600;
    margin-bottom: 1.15rem;
}

.badge-icon {
    width: 15px;
    height: 15px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 2.45rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    background: linear-gradient(135deg, #ffffff 30%, #fda4af 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.95rem;
}

.hero-subtitle {
    font-size: 0.975rem;
    color: var(--text-muted);
    line-height: 1.65;
    max-width: 680px;
    margin: 0 auto;
}

/* Room Ordering Steps Banner */
.room-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    max-width: 1080px;
    margin: 2rem auto 0 auto;
}

.room-step-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.15rem 1.35rem;
    display: flex;
    align-items: center;
    gap: 1.1rem;
    text-align: left;
    transition: var(--transition);
}

.room-step-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.room-step-card.highlight {
    background: rgba(225, 29, 72, 0.14);
    border-color: rgba(225, 29, 72, 0.45);
    box-shadow: 0 0 25px rgba(225, 29, 72, 0.25);
}

.step-number {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    font-weight: 800;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 15px rgba(225, 29, 72, 0.4);
}

.step-info h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.2rem;
}

.step-info p {
    font-size: 0.825rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin: 0;
}

/* Room Order Instruction Box in Modal */
.room-order-instruction-box {
    background: rgba(225, 29, 72, 0.12);
    border: 1px solid rgba(225, 29, 72, 0.35);
    border-radius: var(--radius-sm);
    padding: 0.9rem 1.15rem;
    display: flex;
    align-items: center;
    gap: 0.95rem;
    margin: 0.75rem 0;
}

.room-order-instruction-box svg {
    width: 22px;
    height: 22px;
    color: var(--primary);
    flex-shrink: 0;
}

.room-order-instruction-box strong {
    color: white;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 0.15rem;
}

.room-order-instruction-box p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.35;
    margin: 0;
}

/* Room Dial Alert in Cart */
.room-dial-alert {
    background: rgba(225, 29, 72, 0.12);
    border: 1px solid rgba(225, 29, 72, 0.35);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.dial-badge {
    font-size: 0.85rem;
    font-weight: 800;
    color: #fda4af;
}

.room-dial-alert p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.35;
    margin: 0;
}

/* Categories Navigation */
.categories-nav {
    position: sticky;
    top: 65px;
    z-index: 40;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(10, 8, 18, 0.85);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0.65rem 1.5rem;
}

.categories-container {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 2px;
}

.categories-container::-webkit-scrollbar {
    display: none;
}

.category-chip {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
    padding: 0.45rem 1rem;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: 0.825rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: var(--transition);
}

.category-chip:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
}

.category-chip.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    box-shadow: 0 2px 10px rgba(225, 29, 72, 0.35);
}

/* Main Content Area */
.main-content {
    flex: 1;
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    z-index: 1;
}

/* Controls & Filters Bar */
.controls-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 0.75rem 1.25rem;
}

.controls-left {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.results-counter {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.active-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(225, 29, 72, 0.15);
    border: 1px solid rgba(225, 29, 72, 0.35);
    color: #fecdd3;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
}

.active-filter-tag button {
    background: transparent;
    border: none;
    color: #fecdd3;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.controls-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

/* Switch */
.filter-switch {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
}

.filter-switch input {
    display: none;
}

.switch-slider {
    width: 36px;
    height: 20px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    position: relative;
    transition: var(--transition);
}

.switch-slider::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    transition: var(--transition);
}

.filter-switch input:checked + .switch-slider {
    background: var(--primary);
}

.filter-switch input:checked + .switch-slider::after {
    transform: translateX(16px);
}

.switch-label {
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Sort Select */
.sort-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.sort-icon {
    position: absolute;
    left: 0.75rem;
    color: var(--text-muted);
    width: 14px;
    height: 14px;
    pointer-events: none;
}

.sort-wrapper select {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.45rem 1rem 0.45rem 2.2rem;
    cursor: pointer;
    outline: none;
    transition: var(--transition);
}

.sort-wrapper select:focus {
    border-color: var(--primary);
}

.sort-wrapper select option {
    background: var(--bg-surface);
    color: white;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.loading-grid {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 4rem 1rem;
    color: var(--text-muted);
}

/* Product Card */
.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    position: relative;
    box-shadow: var(--shadow-card);
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-highlight);
    box-shadow: 0 15px 35px -5px rgba(225, 29, 72, 0.25);
    background: var(--bg-card-hover);
}

.product-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 85%;
    background: #141222;
    overflow: hidden;
}

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

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

/* Stock Badges */
.card-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 2;
}

.card-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-full);
    backdrop-filter: blur(8px);
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.badge-in-stock {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #6ee7b7;
}

.badge-low-stock {
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fcd34d;
}

.badge-out-stock {
    background: rgba(239, 68, 68, 0.25);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}

.badge-featured {
    background: var(--gradient-primary);
    color: white;
}

/* Card Body */
.product-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.85rem;
}

.product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.product-category {
    color: var(--accent-magenta);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.product-sku {
    font-family: monospace;
    opacity: 0.75;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
}

.product-name {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8rem;
    margin: 0.15rem 0;
}

.product-desc-short {
    font-size: 0.825rem;
    color: var(--text-muted);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.4rem;
}

.product-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.product-price-wrapper {
    display: flex;
    flex-direction: column;
}

.price-label {
    font-size: 0.68rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 2px;
}

.product-price {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
}

.card-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-icon-view {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.btn-icon-view:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.btn-add-cart {
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.55rem 0.95rem;
    font-size: 0.825rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transition: var(--transition);
}

.btn-add-cart:hover {
    filter: brightness(1.15);
    transform: scale(1.03);
}

.btn-add-cart:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
}

.empty-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(225, 29, 72, 0.12);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-icon svg {
    width: 32px;
    height: 32px;
}

.empty-state h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    color: #ffffff;
}

.empty-state p {
    font-size: 0.875rem;
    color: var(--text-muted);
    max-width: 400px;
}

/* Perks Grid */
.perks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 1rem;
}

.perk-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.4rem;
    transition: var(--transition);
}

.perk-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.perk-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    background: rgba(225, 29, 72, 0.1);
    color: #fb7185;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.85rem;
}

.perk-icon svg {
    width: 22px;
    height: 22px;
}

.perk-card h3 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: #ffffff;
}

.perk-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ==========================================================================
   MODALS & DRAWERS
   ========================================================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 3, 8, 0.8);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-dialog {
    background: var(--bg-modal);
    border: 1px solid var(--border-highlight);
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.94);
    transition: var(--transition);
    width: 100%;
}

.modal-overlay.show .modal-dialog {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.modal-close:hover {
    background: var(--primary);
    color: white;
}

/* 1. Product Detail Modal */
.modal-product {
    max-width: 820px;
    padding: 1.75rem;
}

.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 2rem;
    align-items: start;
}

.modal-product-img {
    width: 100%;
    border-radius: var(--radius-md);
    object-fit: cover;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    background: #141222;
}

.modal-product-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-product-category {
    color: var(--accent-magenta);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.modal-product-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.25;
}

.modal-product-price {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 800;
    color: #ffffff;
}

.modal-features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin: 0.5rem 0;
}

.modal-features-list li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-features-list li svg {
    color: var(--accent-emerald);
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.modal-quantity-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.quantity-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
}

.quantity-btn {
    background: transparent;
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.quantity-value {
    padding: 0 0.75rem;
    font-weight: 700;
    font-size: 0.9rem;
}

.modal-actions-stack {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 0.5rem;
}

.btn-whatsapp-direct {
    background: var(--gradient-whatsapp);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    transition: var(--transition);
}

.btn-whatsapp-direct:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

/* 2. Shopping Bag Drawer */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 120;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.drawer-overlay.show {
    opacity: 1;
    visibility: visible;
}

.drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 440px;
    height: 100%;
    background: var(--bg-surface);
    border-left: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.8);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.drawer-overlay.show .drawer-panel {
    transform: translateX(0);
}

.drawer-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.drawer-title {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.drawer-title svg {
    color: var(--primary);
    width: 22px;
    height: 22px;
}

.drawer-title h2 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.drawer-count {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.drawer-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.drawer-close:hover {
    color: white;
}

.drawer-items {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Cart Item */
.cart-item {
    display: flex;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 0.85rem;
    align-items: center;
}

.cart-item-img {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: #141222;
}

.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cart-item-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    line-height: 1.3;
}

.cart-item-sku {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-family: monospace;
}

.cart-item-price {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-accent);
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.btn-remove-item {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
}

.btn-remove-item:hover {
    color: #f87171;
}

.drawer-footer {
    border-top: 1px solid var(--border-subtle);
    padding: 1.25rem 1.5rem;
    background: rgba(10, 8, 18, 0.95);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.drawer-totals {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.total-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.total-highlight {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: white;
    border-top: 1px solid var(--border-subtle);
    padding-top: 0.5rem;
    margin-top: 0.25rem;
}

.whatsapp-note {
    background: rgba(37, 211, 102, 0.08);
    border: 1px solid rgba(37, 211, 102, 0.25);
    border-radius: var(--radius-sm);
    padding: 0.65rem 0.85rem;
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
}

.whatsapp-note svg {
    color: #4ade80;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

.whatsapp-note p {
    font-size: 0.75rem;
    color: #bbf7d0;
    line-height: 1.35;
}

.btn-whatsapp-checkout {
    background: var(--gradient-whatsapp);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    padding: 0.85rem;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
}

.btn-whatsapp-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.55);
}

.btn-clear-cart {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.75rem;
    cursor: pointer;
    text-align: center;
}

.btn-clear-cart:hover {
    color: #f87171;
    text-decoration: underline;
}

/* 3. Admin Modal */
.modal-admin {
    max-width: 1080px;
    padding: 1.75rem;
}

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

.admin-header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modal-close-static {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close-static:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.admin-title {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.admin-title svg,
.admin-title .bi {
    color: var(--primary);
    font-size: 1.35rem;
}

.admin-title h2, .admin-title h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    color: white;
}

/* Login Screen */
.admin-login-screen {
    padding: 3.5rem 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-card {
    max-width: 420px;
    width: 100%;
    text-align: center;
    background: rgba(18, 14, 28, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(225, 29, 72, 0.25);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(225, 29, 72, 0.15);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.login-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 0 25px rgba(225, 29, 72, 0.5);
}

.login-icon svg {
    width: 28px;
    height: 28px;
}

.login-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: white;
    margin: 0;
}

.login-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.45;
    margin: 0;
}

.login-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 0.5rem;
}

.login-input-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.login-input-icon {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
    width: 18px;
    height: 18px;
    pointer-events: none;
    transition: var(--transition);
}

.login-pin-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 0.85rem 1rem 0.85rem 2.8rem;
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    letter-spacing: 2px;
    outline: none;
    transition: var(--transition);
    text-align: left;
}

/* View Mode Selector in Admin Login Screen */
.admin-viewmode-selector {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
    margin-top: 0.25rem;
}

.admin-viewmode-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.admin-viewmode-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.btn-mode-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 600;
    padding: 0.55rem 0.5rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    transition: var(--transition);
}

.btn-mode-pill:hover {
    border-color: rgba(225, 29, 72, 0.4);
    color: white;
}

.btn-mode-pill.active {
    background: var(--gradient-primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 0 12px rgba(225, 29, 72, 0.35);
}

.admin-viewmode-status {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin: 0;
}

.admin-viewmode-status strong {
    color: var(--primary);
}

/* PDF Storefront Section & Canvas Viewer */
.pdf-storefront-section {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto 2.5rem;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pdf-storefront-header {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.pdf-header-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.badge-pdf-live {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(225, 29, 72, 0.15);
    border: 1px solid rgba(225, 29, 72, 0.35);
    color: #fda4af;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    width: fit-content;
}

.pdf-header-info p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin: 0;
}

.pdf-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.65rem;
}

/* PDF Embed Viewer Container (High Performance & Responsive) */
.pdf-embed-container {
    width: 100%;
    height: 80vh;
    min-height: 520px;
    background: #110d1c;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    position: relative;
}

.pdf-facade {
    width: 100%;
    height: 100%;
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: radial-gradient(circle at center, rgba(225, 29, 72, 0.12) 0%, #110d1c 80%);
    text-align: center;
}

.pdf-facade-card {
    max-width: 480px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.pdf-facade-icon {
    font-size: 3.5rem;
    color: var(--primary);
    filter: drop-shadow(0 0 15px rgba(225, 29, 72, 0.4));
}

.pdf-facade-card h3 {
    font-size: 1.35rem;
    color: white;
    font-weight: 700;
}

.pdf-facade-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.pdf-facade-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 0.5rem;
}

.pdf-embed-container.modal-embed {
    min-height: 480px;
    height: 72vh;
}

.main-pdf-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    background: #110d1c;
}

.btn-icon-only {
    padding: 0.45rem 0.65rem !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.login-pin-input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(225, 29, 72, 0.4);
}

.login-input-wrapper:focus-within .login-input-icon {
    color: var(--primary);
}

.btn-login-submit {
    width: 100%;
    padding: 0.9rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 20px rgba(225, 29, 72, 0.4);
    cursor: pointer;
    transition: var(--transition);
}

.btn-login-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(225, 29, 72, 0.6);
}

.pin-error {
    font-size: 0.8rem;
    color: #fda4af;
    background: rgba(225, 29, 72, 0.15);
    border: 1px solid rgba(225, 29, 72, 0.35);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin: 0;
}

.pin-hint-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.85rem;
    width: 100%;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Admin Dashboard */
.admin-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.kpi-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.kpi-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
}

.kpi-value {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: white;
}

.kpi-success { color: var(--accent-emerald); }
.kpi-warning { color: var(--accent-amber); }

/* Admin Tabs */
.admin-tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 1.25rem;
}

.admin-tab-btn {
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-muted);
    padding: 0.65rem 1.2rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.admin-tab-btn:hover {
    color: white;
}

.admin-tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.admin-tab-pane {
    display: none;
}

.admin-tab-pane.active {
    display: block;
}

/* Admin Table */
.admin-actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.admin-search-field {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.85rem;
    color: white;
    font-family: var(--font-body);
    font-size: 0.85rem;
    max-width: 320px;
    width: 100%;
}

.admin-table-wrapper {
    overflow-x: auto;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    text-align: left;
}

.admin-table th {
    background: rgba(255, 255, 255, 0.04);
    padding: 0.75rem 1rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.725rem;
    letter-spacing: 0.04em;
    border-bottom: 1px solid var(--border-subtle);
}

.admin-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    vertical-align: middle;
}

.admin-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.tbl-img {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: #141222;
}

.tbl-sku {
    font-family: monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
}

.tbl-name {
    font-weight: 600;
    color: white;
}

.tbl-stock-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-full);
    transition: var(--transition);
}

.tbl-actions {
    display: flex;
    gap: 0.4rem;
}

.tbl-star-btn {
    background: transparent;
    border: none;
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    padding: 0.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.tbl-star-btn.active,
.tbl-star-btn:hover {
    color: #eab308;
    transform: scale(1.2);
    filter: drop-shadow(0 0 8px rgba(234, 179, 8, 0.6));
}

.card-badge.badge-featured {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.25) 0%, rgba(202, 138, 4, 0.3) 100%);
    border: 1px solid rgba(234, 179, 8, 0.5);
    color: #fef08a;
    font-weight: 800;
}

.tbl-pill-cat {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full);
    padding: 0.2rem 0.6rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.tbl-price-tag {
    font-size: 0.9rem;
    font-weight: 700;
    color: white;
}

.tbl-qty-tag {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.tbl-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.tbl-btn span {
    display: none;
}

.tbl-btn:hover {
    background: var(--primary);
}

.tbl-btn.danger:hover {
    background: #ef4444;
}

/* Settings Cards (Harmonized Layout) */
.settings-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.4rem 1.6rem;
    margin-bottom: 1.25rem;
    transition: var(--transition);
}

.settings-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.045);
}

.settings-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.settings-card-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: rgba(225, 29, 72, 0.12);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.settings-card-header h4 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.15rem;
}

.settings-card-header p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

.settings-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.btn-save-settings {
    padding: 0.75rem 1.75rem;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    gap: 0.65rem;
    box-shadow: 0 4px 18px rgba(225, 29, 72, 0.4);
}

/* Featured Product Toggle Component */
.featured-toggle-card {
    background: rgba(234, 179, 8, 0.08);
    border: 1px solid rgba(234, 179, 8, 0.3);
    border-radius: var(--radius-sm);
    padding: 0.95rem 1.2rem;
    transition: var(--transition);
}

.featured-toggle-card:hover {
    background: rgba(234, 179, 8, 0.12);
    border-color: rgba(234, 179, 8, 0.5);
}

.switch-control-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    user-select: none;
    width: 100%;
}

.switch-toggle-wrapper {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.switch-toggle-wrapper input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    transition: .3s;
    border-radius: 24px;
}

.switch-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

.switch-toggle-wrapper input:checked + .switch-toggle-slider {
    background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
    box-shadow: 0 0 12px rgba(234, 179, 8, 0.4);
}

.switch-toggle-wrapper input:checked + .switch-toggle-slider:before {
    transform: translateX(20px);
}

.switch-info-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.switch-title {
    font-weight: 700;
    font-size: 0.925rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.switch-subtitle {
    font-size: 0.775rem;
    color: var(--text-muted);
    line-height: 1.35;
    display: block;
}

.text-gold {
    color: #eab308 !important;
}

.tbl-btn.danger:hover {
    background: #ef4444;
}

/* Forms */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 0.6rem 0.85rem;
    color: white;
    font-family: var(--font-body);
    font-size: 0.875rem;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 12px rgba(225, 29, 72, 0.3);
}

.form-group select option {
    background: var(--bg-surface);
    color: white;
}

/* Vercel Blob Image Upload Styles */
.image-upload-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.upload-dropzone {
    border: 2px dashed rgba(225, 29, 72, 0.4);
    background: rgba(225, 29, 72, 0.04);
    border-radius: var(--radius-md);
    padding: 1.75rem 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
}

.upload-dropzone:hover, .upload-dropzone.dragover {
    border-color: var(--primary);
    background: rgba(225, 29, 72, 0.1);
    transform: scale(1.01);
}

.dropzone-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(225, 29, 72, 0.15);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dropzone-icon svg {
    width: 24px;
    height: 24px;
}

.dropzone-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.dropzone-primary {
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff;
}

.dropzone-secondary {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.upload-loading {
    border: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.upload-preview {
    display: flex;
    gap: 1.25rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1rem;
    align-items: center;
}

.preview-thumbnail {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    border: 1px solid var(--border-subtle);
    background: #141222;
}

.preview-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    overflow: hidden;
}

.preview-badge {
    font-size: 0.7rem;
    font-weight: 700;
    color: #6ee7b7;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.35);
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
    align-self: flex-start;
}

.preview-url-text {
    font-family: monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.url-manual-toggle {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 0.25rem;
}

.btn-text-link {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.75rem;
    cursor: pointer;
    text-align: left;
    padding: 0;
    transition: var(--transition);
}

.btn-text-link:hover {
    color: var(--text-accent);
    text-decoration: underline;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.5rem;
    border-top: 1px solid var(--border-subtle);
    padding-top: 1rem;
}

/* Sync Grid */
.sync-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.sync-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sync-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: rgba(225, 29, 72, 0.12);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sync-icon.danger {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.sync-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: white;
}

.sync-card p {
    font-size: 0.825rem;
    color: var(--text-muted);
    line-height: 1.45;
    flex: 1;
}

/* 4. Product Edit Modal */
.modal-form {
    max-width: 680px;
    padding: 1.75rem;
}

/* 5. PDF Modal */
.modal-pdf {
    max-width: 1100px;
    height: 88vh;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
}

.pdf-modal-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pdf-modal-body {
    flex: 1;
    background: #12101e;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
}

.pdf-frame {
    width: 100%;
    height: 100%;
    border: none;
}

/* Toast Message */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(18, 16, 30, 0.95);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(225, 29, 72, 0.5);
    color: #ffffff;
    padding: 0.75rem 1.4rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 200;
}

.toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.toast-icon {
    color: var(--accent-emerald);
    width: 18px;
    height: 18px;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-subtle);
    background: rgba(8, 6, 16, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 3.5rem 1.5rem 2.5rem;
    margin-top: auto;
    z-index: 1;
}

.footer-container {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2.5rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 680px;
}

.footer-logo-img {
    height: 44px;
    width: auto;
    display: block;
    margin-bottom: 0.85rem;
    filter: drop-shadow(0 2px 10px rgba(225, 29, 72, 0.4));
}

.footer-slogan {
    font-size: 0.925rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1.15rem;
    font-style: italic;
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1.35rem;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.contact-row svg {
    color: var(--primary);
    width: 17px;
    height: 17px;
    flex-shrink: 0;
}

.footer-links-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem;
}

.footer-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.825rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: rgba(255, 255, 255, 0.06);
    padding: 0.55rem 1.1rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-subtle);
    transition: var(--transition);
}

.footer-link svg {
    width: 17px;
    height: 17px;
    color: var(--text-accent);
    transition: var(--transition);
}

.footer-link:hover {
    background: var(--primary);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(225, 29, 72, 0.4);
}

.footer-link:hover svg {
    color: white;
}

.footer-link-whatsapp:hover {
    background: #25d366;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
}

.footer-link-instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(225, 48, 108, 0.45);
}

.footer-info {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    align-self: center;
}

.footer-info .copyright {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.footer-info .disclaimer {
    font-size: 0.775rem;
    color: #fda4af;
}

/* Utilities */
.hidden {
    display: none !important;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   RESPONSIVE DESIGN (Full Mobile, Tablet & Desktop Support)
   ========================================================================== */

@media (max-width: 1024px) {
    .header-container {
        gap: 0.85rem;
    }
    
    .search-box {
        max-width: 320px;
    }
}

@media (max-width: 900px) {
    .product-detail-layout {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .modal-img-container {
        max-height: 280px;
    }

    .modal-product-img {
        max-height: 260px;
        object-fit: contain;
    }
}

@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }

    /* Announcement Bar */
    .announcement-bar {
        padding: 0.4rem 0.75rem;
    }

    .announcement-text {
        font-size: 0.75rem;
        line-height: 1.35;
        text-align: center;
    }

    /* Header */
    .header {
        padding: 0.5rem 0.75rem;
        position: sticky;
        top: 0;
        z-index: 50;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .header-container {
        flex-wrap: wrap;
        gap: 0.4rem;
        width: 100%;
    }

    .brand {
        flex: 0 0 130px;
        min-width: 0;
    }

    .brand-logo-img {
        height: 30px;
        max-width: 130px;
    }

    .brand-subtitle {
        display: none;
    }

    .header-actions {
        flex: 1 1 auto;
        min-width: 0;
        max-width: calc(100% - 140px);
        gap: 0.35rem;
        justify-content: flex-end;
    }

    .header-actions .btn {
        padding: 0.45rem 0.6rem;
        font-size: 0.8rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .header-actions .btn-text {
        display: none;
    }

    .btn-cart {
        padding: 0.45rem 0.75rem;
        gap: 0.4rem;
    }

    .btn-cart .cart-btn-info {
        display: none;
    }

    .search-box {
        order: 3;
        max-width: 100%;
        width: 100%;
        margin-top: 0.3rem;
    }

    .search-box input {
        padding: 0.5rem 2.2rem 0.5rem 2.4rem;
        font-size: 0.825rem;
    }

    .bg-glow {
        filter: blur(55px);
        opacity: 0.55;
    }

    .pdf-storefront-section {
        padding: 0 0.65rem;
    }

    .pdf-header-actions {
        width: 100%;
        justify-content: stretch;
    }

    .pdf-header-actions .btn {
        flex: 1 1 auto;
        min-width: 0;
    }

    .pdf-embed-container {
        height: 72vh;
        min-height: 420px;
        border-radius: var(--radius-md);
    }

    /* Hero Section */
    .hero-section {
        padding: 1.5rem 0.85rem 1rem;
        width: 100%;
    }

    .hero-badge {
        font-size: 0.725rem;
        padding: 0.35rem 0.75rem;
        line-height: 1.3;
        margin-bottom: 0.75rem;
    }

    .hero-title {
        font-size: 1.55rem;
        line-height: 1.25;
        margin-bottom: 0.65rem;
    }

    .hero-subtitle {
        font-size: 0.875rem;
        line-height: 1.5;
        margin-bottom: 1.25rem;
    }

    /* 3 Room Steps */
    .room-steps-grid {
        grid-template-columns: 1fr;
        gap: 0.65rem;
        width: 100%;
        margin-top: 1.25rem;
    }

    .room-step-card {
        padding: 0.85rem 1rem;
        gap: 0.85rem;
    }

    .step-number {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .step-info h4 {
        font-size: 0.925rem;
    }

    .step-info p {
        font-size: 0.78rem;
    }

    /* Categories Bar */
    .categories-nav {
        position: relative;
        top: auto;
        padding: 0.5rem 0.75rem;
        width: 100%;
    }

    .categories-container {
        gap: 0.4rem;
        padding-bottom: 4px;
    }

    .category-chip {
        padding: 0.4rem 0.85rem;
        font-size: 0.78rem;
        white-space: nowrap;
    }

    /* Catalog Content */
    .main-content {
        padding: 1rem 0.65rem;
        width: 100%;
        max-width: 100%;
    }

    .controls-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.65rem;
        width: 100%;
    }

    .controls-left, .controls-right {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
    }

    .results-counter {
        font-size: 0.78rem;
    }

    .filter-switch .switch-label {
        font-size: 0.78rem;
    }

    .sort-wrapper select {
        font-size: 0.78rem;
        padding: 0.4rem 1.6rem 0.4rem 0.65rem;
    }

    /* Products Grid (2 columns on mobile) */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.65rem;
        width: 100%;
    }

    .product-card {
        border-radius: var(--radius-md);
        min-width: 0;
        width: 100%;
    }

    .product-img-wrapper {
        height: 155px;
        padding-top: 0;
        position: relative;
        overflow: hidden;
        background: #141222;
    }

    .card-badges {
        top: 6px;
        left: 6px;
        right: 6px;
        gap: 4px;
    }

    .card-badge {
        font-size: 0.65rem;
        padding: 0.2rem 0.45rem;
    }

    .product-body {
        padding: 0.65rem;
        gap: 0.35rem;
    }

    .product-meta {
        font-size: 0.68rem;
    }

    .product-sku {
        font-size: 0.65rem;
        padding: 0.1rem 0.3rem;
    }

    .product-name {
        font-size: 0.825rem;
        min-height: 2.2rem;
        line-height: 1.3;
        -webkit-line-clamp: 2;
        margin: 0;
    }

    .product-desc-short {
        display: none;
    }

    .product-footer {
        padding-top: 0.5rem;
        margin-top: auto;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0.45rem;
    }

    .price-label {
        font-size: 0.62rem;
    }

    .product-price {
        font-size: 1.05rem;
    }

    .card-actions {
        display: flex;
        gap: 0.35rem;
        width: 100%;
    }

    .btn-icon-view {
        width: 32px;
        height: 32px;
        flex-shrink: 0;
        font-size: 0.9rem;
    }

    .btn-add-cart {
        flex: 1;
        padding: 0.45rem 0.5rem;
        font-size: 0.75rem;
        justify-content: center;
    }

    .btn-add-cart span {
        display: inline !important;
        font-size: 0.75rem;
    }

    /* Perks */
    .perks-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        margin-top: 1.5rem;
        width: 100%;
    }

    .perk-card {
        padding: 1.25rem 1rem;
    }

    /* Footer */
    .footer {
        padding: 2.5rem 1rem 2rem;
        width: 100%;
    }

    .footer-container {
        flex-direction: column;
        align-items: stretch;
        gap: 1.75rem;
        width: 100%;
    }

    .footer-brand {
        width: 100%;
        max-width: 100%;
    }

    .footer-logo-img {
        height: 36px;
    }

    .footer-slogan {
        font-size: 0.85rem;
    }

    .contact-row {
        font-size: 0.8rem;
        line-height: 1.35;
    }

    .footer-links-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
        width: 100%;
    }

    .footer-link {
        justify-content: center;
        padding: 0.55rem 0.65rem;
        font-size: 0.75rem;
        text-align: center;
    }

    .footer-info {
        text-align: left;
        width: 100%;
    }

    .footer-info .copyright {
        font-size: 0.8rem;
    }

    .footer-info .disclaimer {
        font-size: 0.725rem;
    }

    /* Modals & Dialogs on Mobile */
    .modal-overlay {
        padding: 0.75rem;
        align-items: flex-end;
    }

    .modal-dialog {
        width: 100%;
        max-width: 100%;
        max-height: 90vh;
        overflow-y: auto;
        padding: 1.25rem 1rem;
        border-radius: var(--radius-md);
        margin: 0 auto;
    }

    .modal-admin {
        max-height: 94vh;
        padding: 1.15rem 0.85rem;
    }

    .admin-kpis {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .kpi-card {
        padding: 0.75rem 0.85rem;
    }

    .kpi-value {
        font-size: 1.2rem;
    }

    .admin-tabs {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 0.35rem;
        width: 100%;
        margin-bottom: 1.25rem;
        padding-bottom: 0.25rem;
        scrollbar-width: none;
    }

    .admin-tabs::-webkit-scrollbar {
        display: none;
    }

    .admin-tab-btn {
        padding: 0.55rem 0.85rem;
        font-size: 0.78rem;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .admin-actions-bar {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0.65rem;
        margin-bottom: 1rem;
    }

    .admin-search-field {
        max-width: 100%;
        width: 100%;
        padding: 0.65rem 0.85rem;
    }

    #btnOpenNewProductModal {
        width: 100%;
        justify-content: center;
        padding: 0.65rem 1rem;
        font-size: 0.9rem;
    }

    /* Admin Products & Stock Mobile Card Grid (Flows Downward) */
    .admin-table-wrapper {
        border: none;
        overflow: visible;
        background: transparent;
        width: 100%;
    }

    .admin-table {
        display: block;
        width: 100%;
    }

    .admin-table thead {
        display: none;
    }

    .admin-table tbody {
        display: flex;
        flex-direction: column;
        gap: 0.85rem;
        width: 100%;
    }

    .admin-table td[colspan] {
        display: block;
        width: 100%;
        text-align: center;
        padding: 2.5rem 1rem;
        background: rgba(255, 255, 255, 0.02);
        border: 1px dashed var(--border-subtle);
        border-radius: var(--radius-md);
    }

    .admin-prod-row {
        display: grid;
        grid-template-columns: 52px 1fr auto;
        gap: 0.6rem 0.65rem;
        background: rgba(22, 18, 36, 0.85);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: var(--radius-md);
        padding: 0.85rem;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
        position: relative;
        transition: border-color 0.2s ease, background 0.2s ease;
    }

    .admin-prod-row:hover {
        border-color: rgba(225, 29, 72, 0.4);
        background: rgba(28, 22, 46, 0.95);
    }

    .admin-prod-row td {
        padding: 0 !important;
        border: none !important;
        background: transparent !important;
    }

    /* Row 1: Image, Info, Star */
    .admin-prod-row .col-img {
        grid-column: 1;
        grid-row: 1;
        align-self: flex-start;
    }

    .admin-prod-row .col-img .tbl-img {
        width: 52px;
        height: 52px;
        border-radius: var(--radius-sm);
        border: 1px solid rgba(255, 255, 255, 0.1);
        object-fit: cover;
        background: #141222;
    }

    .admin-prod-row .col-info {
        grid-column: 2;
        grid-row: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 0.2rem;
        min-width: 0;
        padding-left: 0.15rem;
    }

    .admin-prod-row .col-info .tbl-sku {
        font-family: monospace;
        font-size: 0.72rem;
        color: var(--text-muted);
        letter-spacing: 0.03em;
    }

    .admin-prod-row .col-info .tbl-name {
        font-size: 0.95rem;
        font-weight: 700;
        color: #ffffff;
        line-height: 1.25;
        word-break: break-word;
    }

    .admin-prod-row .col-featured {
        grid-column: 3;
        grid-row: 1;
        align-self: flex-start;
        justify-self: end;
    }

    .admin-prod-row .col-featured .tbl-star-btn {
        width: 36px;
        height: 36px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: var(--radius-sm);
        font-size: 1.15rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .admin-prod-row .col-featured .tbl-star-btn.active {
        background: rgba(234, 179, 8, 0.18);
        border-color: rgba(234, 179, 8, 0.5);
        color: #eab308;
    }

    /* Row 2: Category (Left) & Price (Right) */
    .admin-prod-row .col-category {
        grid-column: 1 / 3;
        grid-row: 2;
        display: flex;
        align-items: center;
        min-width: 0;
    }

    .admin-prod-row .col-category .tbl-pill-cat {
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: var(--radius-full);
        padding: 0.2rem 0.55rem;
        font-size: 0.72rem;
        color: var(--text-secondary);
        display: inline-flex;
        align-items: center;
        gap: 0.3rem;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .admin-prod-row .col-price {
        grid-column: 3;
        grid-row: 2;
        justify-self: end;
        align-self: center;
    }

    .admin-prod-row .col-price .tbl-price-tag {
        font-size: 1.05rem;
        font-weight: 800;
        color: #fb7185;
        text-shadow: 0 0 10px rgba(225, 29, 72, 0.35);
    }

    /* Row 3: Stock Quantity (Left) & Stock Status Toggle (Right) */
    .admin-prod-row .col-stock-qty {
        grid-column: 1 / 3;
        grid-row: 3;
        display: flex;
        align-items: center;
    }

    .admin-prod-row .col-stock-qty .tbl-qty-tag {
        font-size: 0.75rem;
        color: var(--text-muted);
        background: rgba(255, 255, 255, 0.04);
        padding: 0.2rem 0.55rem;
        border-radius: var(--radius-sm);
        border: 1px solid rgba(255, 255, 255, 0.05);
        display: inline-flex;
        align-items: center;
        gap: 0.3rem;
    }

    .admin-prod-row .col-status {
        grid-column: 3;
        grid-row: 3;
        justify-self: end;
        align-self: center;
    }

    .admin-prod-row .col-status .tbl-stock-toggle {
        font-size: 0.72rem;
        padding: 0.25rem 0.65rem;
        white-space: nowrap;
    }

    /* Row 4: Actions Footer */
    .admin-prod-row .col-actions {
        grid-column: 1 / -1;
        grid-row: 4;
        border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
        padding-top: 0.65rem !important;
        margin-top: 0.15rem;
    }

    .admin-prod-row .col-actions .tbl-actions {
        display: flex;
        width: 100%;
        gap: 0.6rem;
    }

    .admin-prod-row .col-actions .tbl-actions .tbl-btn {
        flex: 1;
        width: auto;
        height: 38px;
        padding: 0 0.85rem;
        font-size: 0.85rem;
        gap: 0.45rem;
        border-radius: var(--radius-sm);
        justify-content: center;
    }

    .admin-prod-row .col-actions .tbl-actions .tbl-btn span {
        display: inline;
        font-weight: 600;
    }

    .settings-card {
        padding: 1rem 0.85rem;
    }

    .form-grid {
        grid-template-columns: 1fr !important;
        gap: 0.85rem;
    }

    .settings-actions {
        justify-content: stretch;
    }

    .btn-save-settings {
        width: 100%;
        justify-content: center;
    }

    /* Modal Form / Edit Product responsiveness */
    .modal-form .form-actions {
        flex-direction: column-reverse;
        gap: 0.6rem;
    }

    .modal-form .form-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .upload-preview {
        flex-direction: column;
        align-items: flex-start;
    }

    .upload-preview .preview-thumbnail {
        width: 100%;
        height: 140px;
    }

    .sync-grid {
        grid-template-columns: 1fr;
    }

    .sync-card .btn {
        width: 100%;
        justify-content: center;
    }

    .drawer-panel {
        max-width: 100vw;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .admin-prod-row {
        grid-template-columns: 48px 1fr auto;
        padding: 0.75rem;
        gap: 0.5rem 0.5rem;
    }

    .admin-prod-row .col-img .tbl-img {
        width: 48px;
        height: 48px;
    }

    .admin-prod-row .col-info .tbl-name {
        font-size: 0.9rem;
    }

    .admin-prod-row .col-price .tbl-price-tag {
        font-size: 0.95rem;
    }

    .admin-prod-row .col-actions .tbl-actions .tbl-btn {
        height: 36px;
        font-size: 0.8rem;
    }
}

@media (max-width: 400px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-img-wrapper {
        height: 190px;
    }

    .footer-links-row {
        grid-template-columns: 1fr;
    }
}
