/**
 * MadeBy Shop - E-commerce B2C Styles
 * Portale Privati - madeby.CLOUD
 */

/* ========================================
   CSS VARIABLES
   ======================================== */
:root {
    --shop-primary: #059669;
    --shop-primary-dark: #047857;
    --shop-primary-light: #10b981;
    --shop-secondary: #0891b2;
    --shop-accent: #f59e0b;
    --shop-accent-dark: #d97706;
    --shop-danger: #dc2626;
    --shop-success: #16a34a;
    --shop-warning: #f59e0b;
    --shop-info: #0891b2;
    --shop-bg: #f9fafb;
    --shop-bg-dark: #f3f4f6;
    --shop-text: #1f2937;
    --shop-text-light: #6b7280;
    --shop-text-muted: #9ca3af;
    --shop-border: #e5e7eb;
    --shop-border-dark: #d1d5db;
    --shop-white: #ffffff;
    --shop-shadow: 0 1px 3px rgba(0,0,0,0.1);
    --shop-shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --shop-radius: 12px;
    --shop-radius-sm: 8px;
    --shop-radius-lg: 16px;
    --shop-transition: all 0.2s ease;
}

/* ========================================
   BASE STYLES
   ======================================== */
* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: var(--shop-bg);
    color: var(--shop-text);
    margin: 0;
    padding: 0;
    line-height: 1.5;
}

a {
    color: var(--shop-primary);
    text-decoration: none;
    transition: var(--shop-transition);
}

a:hover {
    color: var(--shop-primary-dark);
}

.hidden {
    display: none !important;
}

/* ========================================
   NAVBAR
   ======================================== */
.shop-navbar {
    background: var(--shop-white);
    box-shadow: var(--shop-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.75rem 0;
}

.shop-navbar .navbar-brand {
    font-weight: 700;
    color: var(--shop-primary);
    font-size: 1.5rem;
}

.shop-navbar .navbar-brand img {
    height: 40px;
}

.shop-navbar .nav-link {
    color: var(--shop-text);
    font-weight: 500;
    padding: 0.75rem 1rem;
    transition: var(--shop-transition);
}

.shop-navbar .nav-link:hover,
.shop-navbar .nav-link.active {
    color: var(--shop-primary);
}

.navbar-icons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.navbar-icon-btn {
    position: relative;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--shop-text);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--shop-radius-sm);
    transition: var(--shop-transition);
}

.navbar-icon-btn:hover {
    color: var(--shop-primary);
    background: var(--shop-bg);
}

.cart-badge {
    position: absolute;
    top: 0;
    right: -4px;
    background: var(--shop-accent);
    color: var(--shop-white);
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========================================
   PROMO BANNER
   ======================================== */
.promo-banner {
    background: var(--shop-accent);
    color: var(--shop-white);
    padding: 0.625rem 1rem;
    text-align: center;
    font-weight: 500;
    font-size: 0.875rem;
}

.promo-banner .promo-code {
    background: rgba(255,255,255,0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    margin-left: 0.5rem;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero-section {
    background: linear-gradient(135deg, var(--shop-primary) 0%, var(--shop-secondary) 100%);
    color: var(--shop-white);
    padding: 4rem 0;
    text-align: center;
}

.hero-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-section p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-hero {
    display: inline-block;
    background: var(--shop-white);
    color: var(--shop-primary);
    font-weight: 600;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    transition: var(--shop-transition);
}

.btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    color: var(--shop-primary-dark);
}

/* ========================================
   CATEGORIES SECTION
   ======================================== */
.categories-section {
    padding: 3rem 0;
    background: var(--shop-white);
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--shop-text);
}

.category-card {
    background: var(--shop-bg);
    border-radius: var(--shop-radius);
    padding: 1.5rem;
    text-align: center;
    transition: var(--shop-transition);
    cursor: pointer;
    text-decoration: none;
    color: var(--shop-text);
    display: block;
    height: 100%;
}

.category-card:hover {
    background: var(--shop-primary);
    color: var(--shop-white);
    transform: translateY(-4px);
    box-shadow: var(--shop-shadow-lg);
}

.category-card i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.category-card h5 {
    font-weight: 600;
    margin: 0;
    font-size: 1rem;
}

/* ========================================
   PRODUCTS SECTION
   ======================================== */
.products-section {
    padding: 3rem 0;
}

/* Filters Bar */
.filters-bar {
    background: var(--shop-white);
    padding: 1rem;
    border-radius: var(--shop-radius);
    margin-bottom: 2rem;
    box-shadow: var(--shop-shadow);
}

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-pill {
    background: var(--shop-bg);
    border: 1px solid var(--shop-border);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--shop-transition);
}

.filter-pill:hover,
.filter-pill.active {
    background: var(--shop-primary);
    border-color: var(--shop-primary);
    color: var(--shop-white);
}

/* Search Bar */
.search-bar {
    display: flex;
    gap: 0.5rem;
}

.search-bar input {
    flex: 1;
    border: 1px solid var(--shop-border);
    padding: 0.625rem 1rem;
    border-radius: var(--shop-radius-sm);
    font-size: 0.875rem;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--shop-primary);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.search-bar button {
    background: var(--shop-primary);
    color: var(--shop-white);
    border: none;
    padding: 0.625rem 1.25rem;
    border-radius: var(--shop-radius-sm);
    cursor: pointer;
    transition: var(--shop-transition);
}

.search-bar button:hover {
    background: var(--shop-primary-dark);
}

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

@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

/* Product Card */
.product-card {
    background: var(--shop-white);
    border-radius: var(--shop-radius);
    overflow: hidden;
    box-shadow: var(--shop-shadow);
    transition: var(--shop-transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.product-image-container {
    position: relative;
    height: 200px;
    background: var(--shop-bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image-container img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image-container img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--shop-accent);
    color: var(--shop-white);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 1;
}

.product-badge.sold-out {
    background: var(--shop-danger);
}

.product-badge.new {
    background: var(--shop-info);
}

.product-wishlist {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--shop-white);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shop-shadow);
    transition: var(--shop-transition);
    z-index: 1;
}

.product-wishlist:hover,
.product-wishlist.active {
    background: var(--shop-danger);
    color: var(--shop-white);
}

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

.product-sku {
    font-size: 0.75rem;
    color: var(--shop-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-name {
    font-weight: 600;
    margin: 0.5rem 0;
    color: var(--shop-text);
    flex: 1;
    font-size: 0.9375rem;
    line-height: 1.4;
}

.product-prices {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.price-final {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--shop-primary);
}

.price-original {
    font-size: 0.875rem;
    color: var(--shop-text-muted);
    text-decoration: line-through;
}

.price-discount {
    background: rgba(5, 150, 105, 0.1);
    color: var(--shop-primary);
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.btn-add-cart {
    background: var(--shop-primary);
    color: var(--shop-white);
    border: none;
    padding: 0.75rem;
    border-radius: var(--shop-radius-sm);
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    transition: var(--shop-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.btn-add-cart:hover {
    background: var(--shop-primary-dark);
}

.btn-add-cart:disabled {
    background: var(--shop-border-dark);
    cursor: not-allowed;
}

/* ========================================
   CART DRAWER
   ======================================== */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: var(--shop-transition);
}

.cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 420px;
    height: 100%;
    background: var(--shop-white);
    z-index: 1101;
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease;
}

.cart-drawer.open {
    right: 0;
}

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

.cart-header h5 {
    margin: 0;
    font-weight: 700;
    font-size: 1.125rem;
}

.cart-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--shop-text-light);
    padding: 0.25rem;
    transition: var(--shop-transition);
}

.cart-close:hover {
    color: var(--shop-text);
}

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.cart-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--shop-text-light);
}

.cart-empty i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.cart-empty p {
    margin-bottom: 1.5rem;
}

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

.cart-item-image {
    width: 80px;
    height: 80px;
    background: var(--shop-bg-dark);
    border-radius: var(--shop-radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

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

.cart-item-name {
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-price {
    color: var(--shop-primary);
    font-weight: 600;
    font-size: 0.9375rem;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid var(--shop-border);
    background: var(--shop-white);
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--shop-transition);
}

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

.qty-value {
    min-width: 32px;
    text-align: center;
    font-weight: 600;
}

.cart-item-remove {
    color: var(--shop-danger);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.125rem;
    opacity: 0.7;
    transition: var(--shop-transition);
}

.cart-item-remove:hover {
    opacity: 1;
}

.cart-footer {
    padding: 1.25rem;
    border-top: 1px solid var(--shop-border);
    background: var(--shop-white);
}

.cart-promo {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.cart-promo input {
    flex: 1;
    border: 1px solid var(--shop-border);
    padding: 0.5rem 1rem;
    border-radius: var(--shop-radius-sm);
    font-size: 0.875rem;
}

.cart-promo input:focus {
    outline: none;
    border-color: var(--shop-primary);
}

.cart-promo button {
    background: var(--shop-bg);
    border: 1px solid var(--shop-border);
    padding: 0.5rem 1rem;
    border-radius: var(--shop-radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--shop-transition);
}

.cart-promo button:hover {
    background: var(--shop-bg-dark);
}

.cart-summary {
    margin-bottom: 1rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 0.9375rem;
}

.summary-row.discount {
    color: var(--shop-primary);
}

.summary-row.total {
    font-size: 1.125rem;
    font-weight: 700;
    border-top: 1px solid var(--shop-border);
    padding-top: 1rem;
    margin-top: 0.5rem;
}

.btn-checkout {
    background: var(--shop-primary);
    color: var(--shop-white);
    border: none;
    padding: 1rem;
    border-radius: var(--shop-radius-sm);
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--shop-transition);
}

.btn-checkout:hover {
    background: var(--shop-primary-dark);
}

.btn-checkout:disabled {
    background: var(--shop-border-dark);
    cursor: not-allowed;
}

/* ========================================
   AUTH MODAL
   ======================================== */
.auth-modal .modal-content {
    border-radius: var(--shop-radius-lg);
    border: none;
}

.auth-modal .modal-header {
    border-bottom: none;
    padding: 1.5rem 1.5rem 0;
}

.auth-modal .modal-body {
    padding: 1.5rem;
}

.auth-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.auth-tab {
    flex: 1;
    padding: 0.75rem;
    text-align: center;
    background: var(--shop-bg);
    border: none;
    border-radius: var(--shop-radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--shop-transition);
}

.auth-tab:hover {
    background: var(--shop-bg-dark);
}

.auth-tab.active {
    background: var(--shop-primary);
    color: var(--shop-white);
}

.social-login {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem;
    border-radius: var(--shop-radius-sm);
    font-weight: 500;
    cursor: pointer;
    transition: var(--shop-transition);
    border: 1px solid var(--shop-border);
    background: var(--shop-white);
}

.btn-social.google:hover {
    background: #f8f8f8;
    border-color: var(--shop-border-dark);
}

.btn-social.apple {
    background: black;
    color: var(--shop-white);
    border-color: black;
}

.btn-social.apple:hover {
    background: #333;
}

.btn-social.facebook {
    background: #1877f2;
    color: var(--shop-white);
    border-color: #1877f2;
}

.btn-social.facebook:hover {
    background: #166fe5;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: var(--shop-text-light);
    font-size: 0.875rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--shop-border);
}

.divider span {
    padding: 0 1rem;
}

.form-floating {
    margin-bottom: 1rem;
}

.form-floating .form-control {
    border-radius: var(--shop-radius-sm);
    border: 1px solid var(--shop-border);
}

.form-floating .form-control:focus {
    border-color: var(--shop-primary);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.btn-auth {
    background: var(--shop-primary);
    color: var(--shop-white);
    border: none;
    padding: 0.875rem;
    border-radius: var(--shop-radius-sm);
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    transition: var(--shop-transition);
}

.btn-auth:hover {
    background: var(--shop-primary-dark);
}

.auth-footer {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--shop-text-light);
}

.auth-footer a {
    color: var(--shop-primary);
    font-weight: 500;
}

/* ========================================
   PRODUCT MODAL
   ======================================== */
.product-modal .modal-dialog {
    max-width: 800px;
}

.product-modal .modal-content {
    border-radius: var(--shop-radius-lg);
    border: none;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 768px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
    }
}

.product-gallery {
    background: var(--shop-bg-dark);
    border-radius: var(--shop-radius);
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.product-gallery img {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
}

.product-detail-info h3 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.product-detail-sku {
    color: var(--shop-text-light);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.product-detail-prices {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.product-detail-prices .price-final {
    font-size: 2rem;
}

.product-detail-description {
    color: var(--shop-text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.product-detail-qty {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.product-detail-qty label {
    font-weight: 600;
}

.qty-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--shop-border);
    border-radius: var(--shop-radius-sm);
    overflow: hidden;
}

.qty-selector button {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--shop-bg);
    cursor: pointer;
    font-size: 1.25rem;
    transition: var(--shop-transition);
}

.qty-selector button:hover {
    background: var(--shop-bg-dark);
}

.qty-selector input {
    width: 60px;
    text-align: center;
    border: none;
    font-weight: 600;
    font-size: 1rem;
}

.qty-selector input:focus {
    outline: none;
}

.product-detail-actions {
    display: flex;
    gap: 1rem;
}

.product-detail-actions .btn-add-cart {
    flex: 1;
    padding: 1rem;
}

.btn-wishlist {
    width: 48px;
    height: 48px;
    border: 1px solid var(--shop-border);
    background: var(--shop-white);
    border-radius: var(--shop-radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: var(--shop-transition);
}

.btn-wishlist:hover,
.btn-wishlist.active {
    background: var(--shop-danger);
    border-color: var(--shop-danger);
    color: var(--shop-white);
}

/* ========================================
   CHECKOUT
   ======================================== */
.checkout-section {
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
}

.checkout-steps {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.checkout-step {
    display: flex;
    align-items: center;
    color: var(--shop-text-light);
}

.checkout-step.active,
.checkout-step.completed {
    color: var(--shop-primary);
}

.step-number {
    width: 32px;
    height: 32px;
    border: 2px solid currentColor;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-right: 0.5rem;
    font-size: 0.875rem;
}

.checkout-step.active .step-number,
.checkout-step.completed .step-number {
    background: var(--shop-primary);
    border-color: var(--shop-primary);
    color: var(--shop-white);
}

.step-connector {
    width: 60px;
    height: 2px;
    background: var(--shop-border);
    margin: 0 1rem;
}

.checkout-step.completed + .step-connector {
    background: var(--shop-primary);
}

.checkout-content {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
}

@media (max-width: 992px) {
    .checkout-content {
        grid-template-columns: 1fr;
    }
}

.checkout-form {
    background: var(--shop-white);
    border-radius: var(--shop-radius);
    padding: 1.5rem;
}

.checkout-form h5 {
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--shop-border);
}

.order-summary {
    background: var(--shop-white);
    border-radius: var(--shop-radius);
    padding: 1.5rem;
    position: sticky;
    top: 100px;
}

.order-summary h5 {
    font-weight: 700;
    margin-bottom: 1rem;
}

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

.order-item-thumb {
    width: 60px;
    height: 60px;
    background: var(--shop-bg-dark);
    border-radius: var(--shop-radius-sm);
    overflow: hidden;
}

.order-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.order-item-info {
    flex: 1;
}

.order-item-name {
    font-weight: 500;
    font-size: 0.875rem;
}

.order-item-qty {
    color: var(--shop-text-light);
    font-size: 0.75rem;
}

.order-item-price {
    font-weight: 600;
}

/* Payment Methods */
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.payment-method {
    border: 2px solid var(--shop-border);
    border-radius: var(--shop-radius);
    padding: 1rem;
    cursor: pointer;
    transition: var(--shop-transition);
}

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

.payment-method.selected {
    border-color: var(--shop-primary);
    background: rgba(5, 150, 105, 0.05);
}

.payment-method-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.payment-method-header input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: var(--shop-primary);
}

.payment-method-body {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--shop-border);
    display: none;
}

.payment-method.selected .payment-method-body {
    display: block;
}

#card-element {
    padding: 1rem;
    border: 1px solid var(--shop-border);
    border-radius: var(--shop-radius-sm);
    background: var(--shop-white);
}

/* ========================================
   ACCOUNT SECTION
   ======================================== */
.account-section {
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
}

.account-sidebar {
    background: var(--shop-white);
    border-radius: var(--shop-radius);
    padding: 1rem;
}

.account-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.account-nav li {
    margin-bottom: 0.25rem;
}

.account-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--shop-radius-sm);
    color: var(--shop-text);
    text-decoration: none;
    transition: var(--shop-transition);
}

.account-nav a:hover,
.account-nav a.active {
    background: var(--shop-bg);
    color: var(--shop-primary);
}

.account-content {
    background: var(--shop-white);
    border-radius: var(--shop-radius);
    padding: 1.5rem;
}

.account-content h4 {
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* Orders List */
.order-card {
    border: 1px solid var(--shop-border);
    border-radius: var(--shop-radius);
    margin-bottom: 1rem;
    overflow: hidden;
}

.order-card-header {
    background: var(--shop-bg);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.order-number {
    font-weight: 700;
}

.order-status {
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.order-status.pending_payment {
    background: #fef3c7;
    color: #d97706;
}

.order-status.paid,
.order-status.processing {
    background: #dbeafe;
    color: #2563eb;
}

.order-status.shipped {
    background: #d1fae5;
    color: #059669;
}

.order-status.delivered {
    background: #d1fae5;
    color: #059669;
}

.order-status.cancelled {
    background: #fee2e2;
    color: #dc2626;
}

.order-card-body {
    padding: 1rem;
}

/* ========================================
   FOOTER
   ======================================== */
.shop-footer {
    background: #1f2937;
    color: var(--shop-white);
    padding: 3rem 0 1.5rem;
    margin-top: 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.footer-col h6 {
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 0.9375rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col ul a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--shop-transition);
}

.footer-col ul a:hover {
    color: var(--shop-white);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.5);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    color: rgba(255,255,255,0.7);
    font-size: 1.25rem;
    transition: var(--shop-transition);
}

.footer-social a:hover {
    color: var(--shop-white);
}

/* ========================================
   UTILITIES
   ======================================== */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: var(--shop-white);
    animation: spin 0.8s linear infinite;
}

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

.toast-container {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 1200;
}

.toast {
    background: var(--shop-white);
    border-radius: var(--shop-radius-sm);
    box-shadow: var(--shop-shadow-lg);
    padding: 1rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideIn 0.3s ease;
    max-width: 350px;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast.success {
    border-left: 4px solid var(--shop-primary);
}

.toast.error {
    border-left: 4px solid var(--shop-danger);
}

.toast.warning {
    border-left: 4px solid var(--shop-warning);
}

.toast.info {
    border-left: 4px solid var(--shop-info);
}

.toast-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--shop-text-light);
    margin-left: auto;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state i {
    font-size: 4rem;
    color: var(--shop-border);
    margin-bottom: 1.5rem;
}

.empty-state h5 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--shop-text-light);
    margin-bottom: 1.5rem;
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, var(--shop-bg) 25%, var(--shop-bg-dark) 50%, var(--shop-bg) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text {
    height: 1rem;
    margin-bottom: 0.5rem;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-image {
    height: 200px;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 1rem;
    }

    .hero-section h1 {
        font-size: 1.75rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .product-image-container {
        height: 150px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .checkout-steps {
        font-size: 0.875rem;
    }

    .step-connector {
        width: 30px;
    }
}

@media (max-width: 576px) {
    .shop-navbar .navbar-brand {
        font-size: 1.25rem;
    }

    .navbar-icons {
        gap: 0.5rem;
    }

    .cart-drawer {
        max-width: 100%;
    }

    .product-info {
        padding: 0.75rem;
    }

    .product-name {
        font-size: 0.875rem;
    }

    .price-final {
        font-size: 1.125rem;
    }

    .btn-add-cart {
        padding: 0.625rem;
        font-size: 0.8125rem;
    }
}
