/* ═══════════════════════════════════════════════
   SHOP — Botanical Luxury E-Commerce
   Talking Plants Hardware Store
   ═══════════════════════════════════════════════ */

/* ─── Keyframes ─── */
@keyframes shop-fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes shop-scaleIn {
    from { opacity: 0; transform: scale(0.92); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes shop-slideRight {
    from { opacity: 0; transform: translateX(-16px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes shop-pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.06); }
}
@keyframes shop-cartBounce {
    0%   { transform: scale(1) rotate(0); }
    30%  { transform: scale(1.2) rotate(-4deg); }
    50%  { transform: scale(0.95) rotate(2deg); }
    100% { transform: scale(1) rotate(0); }
}
@keyframes shop-shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
@keyframes shop-checkmark {
    0%   { stroke-dashoffset: 24; }
    100% { stroke-dashoffset: 0; }
}

/* ─── Shop Page (standalone) ─── */
#page-shop {
    min-height: 100vh;
    background: var(--color-surface);
}

/* ─── Shop Navigation ─── */
.shop-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-3) var(--space-5);
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-outline-subtle);
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: color-mix(in srgb, var(--color-surface) 85%, transparent);
}
.shop-nav-brand {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    text-decoration: none;
    color: var(--color-primary);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.125rem;
    letter-spacing: -0.01em;
}
.shop-nav-brand svg {
    color: var(--color-primary);
}
.shop-nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}
.shop-nav-link {
    text-decoration: none;
    color: var(--color-on-surface-muted);
    font-size: 0.875rem;
    font-weight: 500;
    transition: color var(--duration-fast) var(--ease-smooth);
    white-space: nowrap;
}
.shop-nav-link:hover {
    color: var(--color-primary);
}
.shop-nav-cart {
    position: relative;
    font-size: 1.125rem;
}
.shop-cart-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    background: var(--color-primary);
    color: var(--color-on-primary);
    font-size: 0.625rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

@media (max-width: 480px) {
    .shop-nav {
        padding: var(--space-2) var(--space-3);
    }
    .shop-nav-brand {
        font-size: 0;
    }
    .shop-nav-brand svg {
        width: 24px;
        height: 24px;
    }
    .shop-nav-links {
        gap: var(--space-3);
    }
}

/* ─── Shop Layout ─── */
.shop-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: var(--space-5) var(--space-4) var(--space-8);
    animation: shop-fadeUp 0.5s var(--ease-out) both;
}

/* ─── Shop Header ─── */
.shop-header {
    text-align: center;
    margin-bottom: var(--space-7);
    padding: var(--space-8) var(--space-4) var(--space-6);
    position: relative;
    overflow: hidden;
}
.shop-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--leaf-pattern);
    opacity: 0.6;
    pointer-events: none;
}
.shop-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 120%, var(--color-primary-surface) 0%, transparent 70%);
    pointer-events: none;
}
.shop-header h1 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 700;
    color: var(--color-on-surface);
    position: relative;
    z-index: 1;
    letter-spacing: -0.02em;
}
.shop-header p {
    color: var(--color-on-surface-muted);
    margin-top: var(--space-2);
    font-size: 1rem;
    position: relative;
    z-index: 1;
    max-width: 420px;
    margin-inline: auto;
    line-height: 1.6;
}

/* ─── Product Grid ─── */
.shop-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-5);
}

/* ─── Product Card ─── */
.shop-product-card {
    background: var(--color-surface);
    border: 1px solid var(--color-outline-subtle);
    border-radius: var(--radius-xl);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--duration-normal) var(--ease-smooth),
                transform var(--duration-normal) var(--ease-spring),
                border-color var(--duration-normal) var(--ease-smooth);
    animation: shop-fadeUp 0.6s var(--ease-out) both;
    cursor: pointer;
    position: relative;
}
.shop-product-card:nth-child(1) { animation-delay: 0.05s; }
.shop-product-card:nth-child(2) { animation-delay: 0.15s; }
.shop-product-card:nth-child(3) { animation-delay: 0.25s; }
.shop-product-card:nth-child(4) { animation-delay: 0.35s; }

.shop-product-card:hover {
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    transform: translateY(-4px);
    border-color: var(--color-primary-surface);
}
.shop-product-card:active {
    transform: translateY(-1px);
    transition-duration: var(--duration-fast);
}

/* Product Image */
.shop-product-image {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    background: var(--color-surface-dim);
    transition: transform 0.6s var(--ease-smooth);
}
.shop-product-card:hover .shop-product-image {
    transform: scale(1.04);
}
.shop-product-image-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--color-primary-surface) 0%, var(--color-surface-dim) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    overflow: hidden;
}
/* Clip the image zoom to card bounds */
.shop-product-card > .shop-product-image,
.shop-product-card > .shop-product-image-placeholder {
    overflow: hidden;
}

/* Product Body */
.shop-product-body {
    padding: var(--space-4) var(--space-5) var(--space-5);
    display: flex;
    flex-direction: column;
    flex: 1;
}
.shop-product-name {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: var(--space-2);
    color: var(--color-on-surface);
    letter-spacing: -0.01em;
    line-height: 1.3;
}
.shop-product-desc {
    color: var(--color-on-surface-muted);
    font-size: 0.875rem;
    line-height: 1.6;
    flex: 1;
}
.shop-product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid var(--color-outline-subtle);
    gap: var(--space-3);
}
.shop-product-price {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: -0.02em;
}
.shop-product-price-compare {
    text-decoration: line-through;
    color: var(--color-on-surface-faint);
    font-size: 0.875rem;
    margin-left: var(--space-2);
}

/* Add to cart button */
.btn-add-to-cart {
    white-space: nowrap;
    transition: all var(--duration-normal) var(--ease-spring) !important;
}
.btn-add-to-cart:not(:disabled):active {
    animation: shop-cartBounce 0.4s var(--ease-spring);
}

/* ─── Badges ─── */
.shop-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 12px;
    border-radius: var(--radius-full);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    line-height: 1.5;
}
.shop-badge-new {
    background: var(--color-primary);
    color: var(--color-on-primary);
}
.shop-badge-refurbished {
    background: var(--color-secondary);
    color: var(--color-on-secondary);
}
.shop-badge-soldout {
    background: var(--color-error);
    color: #fff;
}
.shop-badge-includes {
    background: var(--color-primary-surface);
    color: var(--color-on-primary-surface);
    border: 1px solid var(--color-primary);
}
.shop-badge-stock-low {
    background: #fff3cd;
    color: #856404;
}

/* ─── Product Detail ─── */
.shop-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-7);
    margin-bottom: var(--space-6);
    animation: shop-fadeUp 0.5s var(--ease-out) 0.1s both;
}
@media (max-width: 768px) {
    .shop-detail {
        grid-template-columns: 1fr;
        gap: var(--space-5);
    }
}

/* Gallery */
.shop-gallery {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
}
.shop-gallery-main {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: var(--radius-xl);
    background: var(--color-surface-dim);
    transition: opacity 0.3s var(--ease-smooth);
}
.shop-gallery-thumbs {
    display: flex;
    gap: var(--space-2);
    margin-top: var(--space-3);
    overflow-x: auto;
    padding-bottom: var(--space-1);
    scrollbar-width: thin;
}
.shop-gallery-thumb {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    flex-shrink: 0;
    opacity: 0.6;
    transition: all var(--duration-normal) var(--ease-smooth);
}
.shop-gallery-thumb:hover {
    opacity: 0.9;
    border-color: var(--color-outline);
}
.shop-gallery-thumb.active {
    border-color: var(--color-primary);
    opacity: 1;
    box-shadow: 0 0 0 2px var(--color-primary-surface);
}

/* Detail Info */
.shop-detail-info {
    animation: shop-slideRight 0.5s var(--ease-out) 0.2s both;
}
.shop-detail-info h1 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: var(--space-3);
    color: var(--color-on-surface);
    letter-spacing: -0.02em;
    line-height: 1.2;
}
.shop-detail-price {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--space-4);
    letter-spacing: -0.02em;
}
.shop-detail-shipping {
    color: var(--color-on-surface-muted);
    font-size: 0.875rem;
    margin-bottom: var(--space-5);
    padding: var(--space-3) var(--space-4);
    background: var(--color-surface-container);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--color-primary);
}
.shop-detail-description {
    line-height: 1.7;
    color: var(--color-on-surface);
    margin-top: var(--space-5);
}
.shop-detail-description h3 {
    font-family: var(--font-display);
    margin: var(--space-4) 0 var(--space-2);
    font-weight: 700;
}
.shop-detail-description ul {
    padding-left: var(--space-5);
    list-style: none;
}
.shop-detail-description li {
    margin-bottom: var(--space-2);
    position: relative;
    padding-left: var(--space-3);
}
.shop-detail-description li::before {
    content: '🌿';
    position: absolute;
    left: calc(-1 * var(--space-4));
    font-size: 0.75rem;
}

/* ─── Cart ─── */
.shop-cart-empty {
    text-align: center;
    padding: var(--space-9) var(--space-4);
    color: var(--color-on-surface-muted);
    animation: shop-scaleIn 0.4s var(--ease-spring) both;
}

.shop-cart-items {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}
.shop-cart-item {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4);
    background: var(--color-surface);
    border: 1px solid var(--color-outline-subtle);
    border-radius: var(--radius-lg);
    transition: border-color var(--duration-fast) var(--ease-smooth),
                box-shadow var(--duration-fast) var(--ease-smooth);
    animation: shop-slideRight 0.4s var(--ease-out) both;
}
.shop-cart-item:nth-child(1) { animation-delay: 0.05s; }
.shop-cart-item:nth-child(2) { animation-delay: 0.1s; }
.shop-cart-item:nth-child(3) { animation-delay: 0.15s; }

.shop-cart-item:hover {
    border-color: var(--color-outline);
    box-shadow: var(--shadow-sm);
}
.shop-cart-item-image {
    width: 80px;
    height: 64px;
    object-fit: cover;
    border-radius: var(--radius-md);
    background: var(--color-surface-dim);
    flex-shrink: 0;
}
.shop-cart-item-info {
    flex: 1;
    min-width: 0;
}
.shop-cart-item-name {
    font-weight: 600;
    color: var(--color-on-surface);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.shop-cart-item-price {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 0.9375rem;
    margin-top: 2px;
}
.shop-cart-item-remove {
    background: none;
    border: none;
    color: var(--color-error);
    cursor: pointer;
    padding: var(--space-2) var(--space-3);
    font-size: 0.8125rem;
    border-radius: var(--radius-sm);
    transition: background var(--duration-fast) var(--ease-smooth);
    white-space: nowrap;
}
.shop-cart-item-remove:hover {
    background: var(--color-error-surface);
}

.shop-qty-select {
    font-size: 0.875rem !important;
}

/* Cart Summary */
.shop-cart-summary {
    margin-top: var(--space-5);
    padding: var(--space-5);
    background: var(--color-surface-container);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-outline-subtle);
    position: relative;
    overflow: hidden;
    animation: shop-fadeUp 0.4s var(--ease-out) 0.2s both;
}
.shop-cart-summary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-lighter));
}
.shop-cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-3);
    color: var(--color-on-surface);
}
.shop-cart-shipping {
    color: var(--color-on-surface-muted);
    font-size: 0.8125rem;
}

/* ─── Floating Cart Button ─── */
.shop-floating-cart {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 100;
    animation: shop-scaleIn 0.4s var(--ease-spring) both;
}
.shop-floating-cart .btn {
    border-radius: var(--radius-full) !important;
    padding: var(--space-3) var(--space-5) !important;
    box-shadow: var(--shadow-lg), 0 0 0 0 var(--color-primary);
    transition: box-shadow var(--duration-normal) var(--ease-smooth),
                transform var(--duration-fast) var(--ease-spring);
}
.shop-floating-cart .btn:hover {
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    transform: scale(1.04);
}

/* ─── Checkout Form ─── */
.shop-checkout-form {
    max-width: 560px;
    margin: 0 auto;
    animation: shop-fadeUp 0.5s var(--ease-out) both;
}
.shop-checkout-section {
    margin-bottom: var(--space-6);
    padding: var(--space-5);
    background: var(--color-surface);
    border: 1px solid var(--color-outline-subtle);
    border-radius: var(--radius-lg);
}
.shop-checkout-section h3 {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: var(--space-4);
    color: var(--color-on-surface);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--color-outline-subtle);
}
.shop-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
}
@media (max-width: 480px) {
    .shop-form-row { grid-template-columns: 1fr; }
}
.shop-form-group {
    position: relative;
    margin-bottom: var(--space-3);
}
.shop-form-group .input-field {
    width: 100%;
    transition: border-color var(--duration-fast) var(--ease-smooth),
                box-shadow var(--duration-fast) var(--ease-smooth);
}
.shop-form-group .input-field:focus {
    box-shadow: 0 0 0 3px var(--color-primary-surface);
}
.shop-form-group .input-label { pointer-events: none; }

.shop-checkout-terms {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    font-size: 0.8125rem;
    color: var(--color-on-surface-muted);
    margin: var(--space-5) 0;
    padding: var(--space-4);
    background: var(--color-surface-container);
    border-radius: var(--radius-md);
    line-height: 1.5;
}
.shop-checkout-terms input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    accent-color: var(--color-primary);
    cursor: pointer;
}
.shop-checkout-terms a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.shop-checkout-terms a:hover {
    color: var(--color-primary-light);
}

/* ─── Order Confirmation ─── */
.shop-confirmation {
    text-align: center;
    padding: var(--space-8) var(--space-4);
    animation: shop-scaleIn 0.5s var(--ease-spring) both;
}
.shop-confirmation-icon {
    font-size: 4.5rem;
    margin-bottom: var(--space-4);
    animation: shop-pulse 1.5s var(--ease-smooth) 0.3s 2;
}
.shop-confirmation h1 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: var(--space-3);
    color: var(--color-on-surface);
    letter-spacing: -0.02em;
}
.shop-confirmation-number {
    font-family: var(--font-body);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-primary);
    background: var(--color-primary-surface);
    padding: var(--space-3) var(--space-5);
    border-radius: var(--radius-lg);
    display: inline-block;
    margin: var(--space-3) 0;
    letter-spacing: 1px;
    border: 1px solid var(--color-primary);
}
.shop-voucher-code {
    background: var(--color-success-surface);
    border: 2px solid var(--color-success);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    margin: var(--space-5) auto;
    max-width: 400px;
    animation: shop-scaleIn 0.4s var(--ease-spring) 0.3s both;
}
.shop-voucher-code code {
    font-size: 1.5rem;
    letter-spacing: 4px;
    font-weight: 700;
    color: var(--color-primary);
}

/* ─── Waitlist Block ─── */
.shop-waitlist-block {
    text-align: center;
    padding: var(--space-7);
    background: linear-gradient(135deg, var(--color-primary-surface) 0%, var(--color-surface-container) 100%);
    border-radius: var(--radius-xl);
    margin: var(--space-5) 0 var(--space-6);
    border: 1px solid var(--color-primary);
    position: relative;
    overflow: hidden;
    animation: shop-fadeUp 0.5s var(--ease-out) 0.1s both;
}
.shop-waitlist-block::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--leaf-pattern);
    opacity: 0.5;
    pointer-events: none;
}
.shop-waitlist-block h3 {
    font-family: var(--font-display);
    margin-bottom: var(--space-3);
    font-size: 1.25rem;
    position: relative;
}
.shop-waitlist-block p {
    position: relative;
    max-width: 400px;
    margin-inline: auto;
    line-height: 1.6;
}
.shop-waitlist-block .btn {
    position: relative;
}

/* ─── Legal Pages ─── */
.shop-legal {
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.8;
    animation: shop-fadeUp 0.4s var(--ease-out) both;
}
.shop-legal h2 {
    font-family: var(--font-display);
    margin: var(--space-6) 0 var(--space-3);
    font-size: 1.5rem;
    color: var(--color-on-surface);
}
.shop-legal h3 {
    font-family: var(--font-display);
    margin: var(--space-5) 0 var(--space-2);
    font-size: 1.125rem;
    color: var(--color-on-surface);
}
.shop-legal p {
    margin-bottom: var(--space-3);
    color: var(--color-on-surface-muted);
}

/* ─── My Orders ─── */
.shop-order-card {
    border: 1px solid var(--color-outline-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    margin-bottom: var(--space-3);
    background: var(--color-surface);
    transition: border-color var(--duration-fast) var(--ease-smooth),
                box-shadow var(--duration-fast) var(--ease-smooth);
    animation: shop-fadeUp 0.4s var(--ease-out) both;
}
.shop-order-card:hover {
    border-color: var(--color-outline);
    box-shadow: var(--shadow-sm);
}

/* ─── Back Link ─── */
.shop-back-link {
    color: var(--color-primary);
    text-decoration: none;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    margin-bottom: var(--space-5);
    padding: var(--space-2) 0;
    transition: color var(--duration-fast) var(--ease-smooth),
                gap var(--duration-fast) var(--ease-smooth);
    font-weight: 500;
}
.shop-back-link:hover {
    color: var(--color-primary-light);
    gap: var(--space-2);
}

/* ═══════════════════════════════════════════════
   ADMIN STYLES
   ═══════════════════════════════════════════════ */

/* ─── Admin: Product Table ─── */
.shop-admin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--color-outline-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.shop-admin-table th,
.shop-admin-table td {
    padding: var(--space-3) var(--space-4);
    text-align: left;
    font-size: 0.875rem;
}
.shop-admin-table th {
    font-weight: 600;
    color: var(--color-on-surface-muted);
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    background: var(--color-surface-container);
    border-bottom: 1px solid var(--color-outline-subtle);
}
.shop-admin-table td {
    border-bottom: 1px solid var(--color-outline-subtle);
    vertical-align: middle;
}
.shop-admin-table tr:last-child td {
    border-bottom: none;
}
.shop-admin-table tbody tr {
    transition: background var(--duration-fast) var(--ease-smooth);
}
.shop-admin-table tbody tr:hover {
    background: var(--color-surface-container);
}
.shop-admin-stock-low {
    color: #b45309;
    font-weight: 600;
    background: #fef3c7;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
}
.shop-admin-stock-zero {
    color: var(--color-error);
    font-weight: 700;
    background: var(--color-error-surface);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
}

/* ─── Admin: Scrollable table on mobile ─── */
@media (max-width: 768px) {
    .shop-admin-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* ─── Admin: Order Status Badges ─── */
.shop-status {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.shop-status-pending   { background: #fef3c7; color: #92400e; }
.shop-status-paid      { background: #dbeafe; color: #1e40af; }
.shop-status-shipped   { background: #e0e7ff; color: #3730a3; }
.shop-status-delivered { background: var(--color-success-surface); color: #166534; }
.shop-status-cancelled { background: var(--color-error-surface); color: #991b1b; }

/* ─── Admin: Order Filter Buttons ─── */
.shop-order-filter {
    border-radius: var(--radius-full) !important;
    padding: var(--space-1) var(--space-3) !important;
    font-size: 0.75rem !important;
    transition: all var(--duration-fast) var(--ease-smooth) !important;
}

/* ─── Admin: Image Upload ─── */
.shop-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: var(--space-3);
    margin: var(--space-3) 0;
}
.shop-image-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color var(--duration-fast) var(--ease-smooth);
}
.shop-image-item.primary {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px var(--color-primary-surface);
}
.shop-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-normal) var(--ease-smooth);
}
.shop-image-item:hover img {
    transform: scale(1.05);
}
.shop-image-item-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
    display: flex;
    gap: 4px;
    padding: 20px 6px 6px;
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-smooth);
}
.shop-image-item:hover .shop-image-item-actions { opacity: 1; }
.shop-image-item-actions button {
    flex: 1;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
    border: none;
    color: #fff;
    font-size: 0.625rem;
    font-weight: 600;
    cursor: pointer;
    padding: 5px 4px;
    border-radius: var(--radius-sm);
    transition: background var(--duration-fast) var(--ease-smooth);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.shop-image-item-actions button:hover {
    background: rgba(255,255,255,0.3);
}

.shop-dropzone {
    border: 2px dashed var(--color-outline);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    text-align: center;
    color: var(--color-on-surface-muted);
    cursor: pointer;
    transition: border-color var(--duration-fast) var(--ease-smooth),
                background var(--duration-fast) var(--ease-smooth),
                color var(--duration-fast) var(--ease-smooth);
    font-size: 0.875rem;
}
.shop-dropzone:hover,
.shop-dropzone.dragover {
    border-color: var(--color-primary);
    background: var(--color-primary-surface);
    color: var(--color-on-primary-surface);
}

/* ─── Responsive: Mobile ─── */
@media (max-width: 480px) {
    .shop-container {
        padding: var(--space-3) var(--space-3) var(--space-6);
    }
    .shop-products {
        grid-template-columns: 1fr;
    }
    .shop-header {
        padding: var(--space-6) var(--space-3) var(--space-5);
    }
    .shop-cart-item {
        flex-wrap: wrap;
        gap: var(--space-3);
    }
    .shop-cart-item-image {
        width: 64px;
        height: 48px;
    }
}
