/* ============================================
   VEENUS SHOP WEBSITE — Mobile-First Styles
   CSS Custom Properties for dynamic theming
   ============================================ */

:root {
    --shop-primary: #9C27B0;
    --shop-primary-light: #E1BEE7;
    --shop-primary-dark: #7B1FA2;
    --shop-bg: #FAFAFA;
    --shop-surface: #FFFFFF;
    --shop-text: #1A1A2E;
    --shop-text-secondary: #6B7280;
    --shop-border: #E5E7EB;
    --shop-radius: 14px;
    --shop-shadow: 0 2px 12px rgba(0,0,0,0.06);
    --shop-shadow-lg: 0 8px 32px rgba(0,0,0,0.10);
    --shop-transition: 0.25s cubic-bezier(0.4,0,0.2,1);
    --header-height: 64px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--shop-bg);
    color: var(--shop-text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ============================================
   LOADING & ERROR SCREENS
   ============================================ */

#loading-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    gap: 16px;
}

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

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

.loader-text {
    color: var(--shop-text-secondary);
    font-size: 14px;
    font-weight: 500;
}

#error-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.error-content {
    text-align: center;
    padding: 32px;
}

.error-icon { font-size: 64px; margin-bottom: 16px; }

.error-content h2 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
}

.error-content p {
    color: var(--shop-text-secondary);
    margin-bottom: 24px;
}

.error-link {
    display: inline-block;
    padding: 12px 28px;
    background: var(--shop-primary);
    color: white;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    transition: opacity var(--shop-transition);
}

.error-link:hover { opacity: 0.9; }

/* ============================================
   HEADER
   ============================================ */

#shop-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--shop-border);
    height: var(--header-height);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.shop-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

#shop-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

#shop-name {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: linear-gradient(135deg, var(--shop-primary), var(--shop-primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cart-button {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--shop-text);
    border-radius: 12px;
    transition: background var(--shop-transition);
}

.cart-button:hover { background: var(--shop-primary-light); }

.cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--shop-primary);
    color: white;
    font-size: 11px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0);
    transition: transform 0.2s ease;
}

.cart-count.visible { transform: scale(1); }

/* ============================================
   HERO / DESCRIPTION
   ============================================ */

#shop-hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 16px 8px;
}

#shop-description {
    color: var(--shop-text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

/* ============================================
   SEARCH BAR
   ============================================ */

#search-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8px 16px;
}

.search-bar {
    display: flex;
    align-items: center;
    background: var(--shop-surface);
    border: 1.5px solid var(--shop-border);
    border-radius: 12px;
    padding: 10px 14px;
    gap: 10px;
    transition: border-color var(--shop-transition);
}

.search-bar:focus-within {
    border-color: var(--shop-primary);
}

.search-icon {
    flex-shrink: 0;
    color: var(--shop-text-secondary);
}

#search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
    font-family: inherit;
    background: transparent;
    color: var(--shop-text);
}

#search-input::placeholder {
    color: var(--shop-text-secondary);
}

.search-clear {
    background: none;
    border: none;
    font-size: 22px;
    color: var(--shop-text-secondary);
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}

.sort-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--shop-surface);
    border: 1px solid var(--shop-border);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    min-width: 180px;
    z-index: 100;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sort-option {
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--shop-text);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.sort-option:hover {
    background: var(--shop-background);
}

.sort-option.active {
    background: var(--shop-primary-light);
    color: var(--shop-primary);
    font-weight: 700;
}

/* ============================================
   CATEGORY CHIPS
   ============================================ */

#categories-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 16px;
}

.category-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
}

.category-chips::-webkit-scrollbar { display: none; }

.chip {
    flex-shrink: 0;
    padding: 8px 18px;
    border-radius: 999px;
    border: 1.5px solid var(--shop-border);
    background: var(--shop-surface);
    color: var(--shop-text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--shop-transition);
    white-space: nowrap;
}

.chip:hover {
    border-color: var(--shop-primary);
    color: var(--shop-primary);
}

.chip.active {
    background: var(--shop-primary);
    color: white;
    border-color: var(--shop-primary);
}

/* ============================================
   PRODUCTS GRID
   ============================================ */

#products-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8px 16px 100px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.product-card {
    background: var(--shop-surface);
    border-radius: var(--shop-radius);
    overflow: hidden;
    box-shadow: var(--shop-shadow);
    transition: transform var(--shop-transition), box-shadow var(--shop-transition);
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shop-shadow-lg);
}

.product-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background: #F3F4F6;
}

.product-info {
    padding: 12px;
}

.product-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 16px;
    font-weight: 800;
    color: var(--shop-primary);
}

.product-original-price {
    font-size: 12px;
    color: var(--shop-text-secondary);
    text-decoration: line-through;
    margin-left: 6px;
}

.product-stock {
    font-size: 11px;
    color: #EF4444;
    font-weight: 600;
    margin-top: 4px;
}

.add-to-cart-btn {
    width: 100%;
    padding: 10px;
    margin-top: 8px;
    border: none;
    border-radius: 10px;
    background: var(--shop-primary);
    color: white;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity var(--shop-transition);
}

.add-to-cart-btn:hover { opacity: 0.9; }
.add-to-cart-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.empty-state {
    text-align: center;
    padding: 64px 16px;
    color: var(--shop-text-secondary);
    font-size: 15px;
}

/* ============================================
   CART DRAWER
   ============================================ */

.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--shop-transition);
}

.cart-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    background: var(--shop-surface);
    z-index: 201;
    transform: translateX(100%);
    transition: transform var(--shop-transition);
    display: flex;
    flex-direction: column;
}

.cart-drawer.open { transform: translateX(0); }

.cart-header, .cart-items, .cart-footer {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--shop-border);
}

.cart-header h2 { font-size: 18px; font-weight: 800; }

.cart-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--shop-text-secondary);
    padding: 4px;
    line-height: 1;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.cart-empty {
    text-align: center;
    padding: 48px 16px;
    color: var(--shop-text-secondary);
}

.cart-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--shop-border);
}

.cart-item-image {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    background: #F3F4F6;
}

.cart-item-details {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-meta {
    font-size: 12px;
    color: var(--shop-text-secondary);
    margin-bottom: 6px;
}

.cart-item-price {
    font-weight: 700;
    color: var(--shop-primary);
}

.cart-qty-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 1.5px solid var(--shop-border);
    background: var(--shop-surface);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--shop-transition);
}

.qty-btn:hover {
    border-color: var(--shop-primary);
    color: var(--shop-primary);
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid var(--shop-border);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 16px;
}

.checkout-btn {
    width: 100%;
    padding: 14px;
    background: #111827;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity var(--shop-transition);
}

.checkout-btn:hover { opacity: 0.92; }
.checkout-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ============================================
   CHECKOUT MODAL
   ============================================ */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 300;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.modal-content {
    background: var(--shop-surface);
    border-radius: 20px 20px 0 0;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 24px;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.modal-header h2 { font-size: 20px; font-weight: 800; }

.form-section {
    margin-bottom: 16px;
}

.form-section label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--shop-text-secondary);
    margin-bottom: 6px;
}

.form-section input,
.form-section textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--shop-border);
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color var(--shop-transition);
    background: var(--shop-surface);
    color: var(--shop-text);
}

.form-section input:focus,
.form-section textarea:focus {
    outline: none;
    border-color: var(--shop-primary);
}

.phone-input {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--shop-border);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color var(--shop-transition);
}

.phone-input:focus-within { border-color: var(--shop-primary); }

.phone-prefix {
    padding: 12px 12px;
    background: #F9FAFB;
    font-size: 15px;
    font-weight: 600;
    color: var(--shop-text-secondary);
    border-right: 1.5px solid var(--shop-border);
}

.phone-input input {
    border: none;
    border-radius: 0;
}

.phone-input input:focus { outline: none; }

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1.5px solid var(--shop-border);
    border-radius: 10px;
    cursor: pointer;
    transition: border-color var(--shop-transition);
}

.radio-option.selected { border-color: var(--shop-primary); }

.radio-option input[type="radio"] { accent-color: var(--shop-primary); }

.radio-label { font-size: 14px; font-weight: 500; }

.checkout-summary {
    padding: 16px 0;
    border-top: 1px solid var(--shop-border);
    margin-top: 8px;
    margin-bottom: 16px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    padding: 4px 0;
}

.summary-row.total {
    font-size: 18px;
    font-weight: 800;
    padding-top: 8px;
    border-top: 1px solid var(--shop-border);
    margin-top: 8px;
}

/* ============================================
   SUCCESS MODAL
   ============================================ */

.success-content {
    text-align: center;
    padding: 48px 24px;
}

.success-icon { font-size: 64px; margin-bottom: 16px; }

.success-content h2 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
}

.success-content p {
    color: var(--shop-text-secondary);
    margin-bottom: 24px;
    line-height: 1.5;
}

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

.whatsapp-float {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37,211,102,0.3);
    z-index: 50;
    transition: transform var(--shop-transition);
}

.whatsapp-float:hover { transform: scale(1.08); }

/* ============================================
   FOOTER
   ============================================ */

#shop-footer {
    border-top: 1px solid var(--shop-border);
    padding: 24px 16px;
    text-align: center;
}

.footer-brand {
    font-size: 13px;
    color: var(--shop-text-secondary);
}

.footer-brand a {
    color: var(--shop-primary);
    text-decoration: none;
    font-weight: 600;
}

/* ============================================
   DESKTOP BREAKPOINTS
   ============================================ */

@media (min-width: 640px) {
    .products-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
    #shop-name { font-size: 24px; }
    .modal-content { border-radius: 20px; max-height: 85vh; }
    .modal-overlay { align-items: center; }
}

@media (min-width: 1024px) {
    .products-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
    .header-inner { padding: 0 32px; }
    #products-section { padding: 16px 32px 100px; }
    #shop-hero { padding: 24px 32px 8px; }
    #categories-section { padding: 12px 32px; }
}
/* ============================================
   PRODUCT DETAILS VIEW
   ============================================ */

.view-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100dvh;
    background: var(--shop-surface);
    z-index: 400;
    animation: slideInRight 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pd-modal-container {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
}

@keyframes slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.view-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--shop-border);
    position: sticky;
    top: 0;
    z-index: 10;
}

.icon-btn {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--shop-text);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background var(--shop-transition);
}

.icon-btn:hover { background: #F3F4F6; }

.pd-content {
    flex: 1 0 auto;
    padding-bottom: 90px;
}

.pd-image-container {
    width: 100%;
    background: #F3F4F6;
    aspect-ratio: 4/5;
    position: relative;
}

#pd-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pd-info {
    padding: 20px;
}

#pd-name {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.pd-price-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.pd-price {
    font-size: 24px;
    font-weight: 800;
    color: var(--shop-text);
}

.pd-original-price {
    font-size: 16px;
    color: var(--shop-text-secondary);
    text-decoration: line-through;
}

.pd-discount-tag {
    background: #DCFCE7;
    color: #16A34A;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
}

.pd-description {
    font-size: 14px;
    color: var(--shop-text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

.pd-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.pd-section-header h3 {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--shop-text);
}

.size-chart-link {
    font-size: 11px;
    font-weight: 700;
    color: var(--shop-primary);
    cursor: pointer;
}

.pd-sizes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.size-btn {
    width: 44px;
    height: 44px;
    border: 1.5px solid var(--shop-border);
    background: var(--shop-surface);
    color: var(--shop-text);
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--shop-transition);
}

.size-btn:hover {
    border-color: var(--shop-primary);
}

.size-btn.selected {
    background: var(--shop-text);
    color: white;
    border-color: var(--shop-text);
}

.size-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #F9FAFB;
    text-decoration: line-through;
}

.pd-features {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--shop-border);
}

.pd-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--shop-text-secondary);
    font-weight: 500;
}

.pd-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: var(--shop-surface);
    border-top: 1px solid var(--shop-border);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.pd-btn-secondary {
    flex: 1;
    padding: 14px;
    background: #F3F4F6;
    color: var(--shop-text);
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--shop-transition);
}

.pd-btn-secondary:hover { background: #E5E7EB; }

.pd-btn-primary {
    flex: 1;
    padding: 14px 16px;
    background: var(--shop-primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(139,92,246,0.3);
}

.pd-image-scroll {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100%;
    height: 100%;
}
.pd-image-scroll::-webkit-scrollbar { display: none; }
.pd-image-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    scroll-snap-align: start;
}
.pd-image-dots {
    position: absolute;
    bottom: 16px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
}
.pd-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    transition: background 0.3s;
}
.pd-dot.active {
    background: white;
}

.pd-btn-primary:hover { opacity: 0.9; }

/* ============================================
   CART BILL DETAILS & SUCCESS UI
   ============================================ */

.cart-bill-details {
    background: #F9FAFB;
    border: 1px solid var(--shop-border);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.bill-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--shop-text-secondary);
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}

.bill-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--shop-text);
    margin-bottom: 10px;
}

.bill-row:last-child { margin-bottom: 0; }

.delivery-free {
    color: #16A34A;
    font-weight: 600;
}

.grand-total {
    font-size: 16px;
    font-weight: 800;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--shop-border);
}

.card-box {
    background: #F9FAFB;
    border: 1px solid var(--shop-border);
    border-radius: 16px;
    padding: 16px;
    margin-top: 24px;
    margin-bottom: 24px;
    text-align: left;
}

.success-summary-header {
    font-size: 11px;
    font-weight: 700;
    color: var(--shop-text-secondary);
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.success-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.success-item-row {
    display: flex;
    gap: 12px;
}

.success-item-img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    background: #E5E7EB;
}

.success-item-info {
    flex: 1;
    min-width: 0;
}

.success-item-name {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.success-item-meta {
    font-size: 12px;
    color: var(--shop-text-secondary);
}

.success-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 800;
    padding-top: 16px;
    border-top: 1px solid var(--shop-border);
}

.whatsapp-btn {
    background: #25D366;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    margin-bottom: 12px;
}

.whatsapp-btn:hover { background: #1da851; opacity: 1; }

.btn-text {
    background: none;
    border: none;
    color: var(--shop-primary);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    padding: 10px;
}

/* Fix product cards layout */
.product-card {
    position: relative;
    border: 1px solid var(--shop-border);
    box-shadow: none;
}
.product-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.05); transform: translateY(-2px); }

.card-sale-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #EF4444;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    z-index: 2;
}

.footer-contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #25D366;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 16px;
    transition: transform 0.2s ease;
}

.footer-contact-btn:hover { transform: scale(1.05); }

@media (min-width: 640px) {
    .view-overlay {
        background: rgba(0,0,0,0.5);
        display: flex;
        align-items: center;
        justify-content: center;
        animation: fadeIn 0.3s;
    }
    .pd-modal-container {
        background: var(--shop-surface);
        width: 100%;
        max-width: 500px;
        height: 90vh;
        border-radius: 20px;
        position: relative;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }
    .pd-content {
        overflow-y: auto;
    }
    .pd-bottom-bar {
        position: absolute;
    }
}

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