/* ========================================
   E-COMMERCE CLIENT AREA - MODERN STYLES
   ======================================== */

/* ========================================
   MODERN NAVBAR STYLES
   ======================================== */

/* Navbar principale */
.navbar-default {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border: none;
    border-radius: 0;
    margin-bottom: 0;
    box-shadow: 0 4px 20px rgba(52, 152, 219, 0.3);
    transition: all 0.3s ease;
}

.navbar-default.navbar-fixed-top {
    box-shadow: 0 2px 30px rgba(52, 152, 219, 0.4);
}

/* Brand */
.navbar-default .navbar-brand {
    color: #fff !important;
    font-weight: 700;
    font-size: 24px;
    padding: 15px 20px;
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.navbar-default .navbar-brand:hover,
.navbar-default .navbar-brand:focus {
    color: #fff !important;
    transform: scale(1.05);
}

/* Navigation Links */
.navbar-default .navbar-nav > li > a {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    font-size: 15px;
    padding: 15px 18px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.15);
}

.navbar-default .navbar-nav > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: #fff;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-default .navbar-nav > li > a:hover::after,
.navbar-default .navbar-nav > li.active > a::after {
    width: 80%;
}

/* Active state */
.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 -3px 0 #fff;
}

/* Dropdown menu */
.navbar-default .navbar-nav > li > .dropdown-menu {
    background: #fff;
    border: none;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    margin-top: 0;
    padding: 10px 0;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.navbar-default .navbar-nav > li > .dropdown-menu > li > a {
    color: #555 !important;
    padding: 10px 20px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.navbar-default .navbar-nav > li > .dropdown-menu > li > a:hover {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #fff !important;
}

/* Dropdown caret */
.navbar-default .navbar-nav > li > a .caret {
    border-top-color: rgba(255, 255, 255, 0.9);
    border-bottom-color: rgba(255, 255, 255, 0.9);
}

.navbar-default .navbar-nav > li > a:hover .caret,
.navbar-default .navbar-nav > .open > a .caret {
    border-top-color: #fff;
    border-bottom-color: #fff;
}

/* Mobile toggle */
.navbar-default .navbar-toggle {
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.navbar-default .navbar-toggle:hover,
.navbar-default .navbar-toggle:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.navbar-default .navbar-toggle .icon-bar {
    background-color: #fff;
}

/* Mobile menu */
@media (max-width: 767px) {
    .navbar-default .navbar-collapse {
        background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
        border: none;
        box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    }
    
    .navbar-default .navbar-nav {
        margin: 0;
    }
    
    .navbar-default .navbar-nav > li > a {
        border-left: 3px solid transparent;
        margin: 2px 0;
    }
    
    .navbar-default .navbar-nav > li > a:hover,
    .navbar-default .navbar-nav > .active > a {
        border-left-color: #fff;
    }
    
    .navbar-default .navbar-nav .open .dropdown-menu {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        margin: 5px 10px;
    }
    
    .navbar-default .navbar-nav .open .dropdown-menu > li > a {
        color: rgba(255, 255, 255, 0.9) !important;
        padding-left: 30px;
    }
    
    .navbar-default .navbar-nav .open .dropdown-menu > li > a:hover {
        background: rgba(255, 255, 255, 0.2);
        color: #fff !important;
    }
}

/* Search form nella navbar (se presente) */
.navbar-default .navbar-form {
    border: none;
    margin: 8px 15px;
}

.navbar-default .navbar-form .form-control {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    border-radius: 20px;
    padding: 6px 15px;
    transition: all 0.3s ease;
}

.navbar-default .navbar-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.navbar-default .navbar-form .form-control:focus {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.navbar-default .navbar-form .btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.navbar-default .navbar-form .btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Badge nei link (es. carrello) */
.navbar-default .navbar-nav > li > a .badge {
    background: #fff;
    color: #3498db;
    font-weight: 600;
    padding: 3px 7px;
    border-radius: 12px;
    position: relative;
    top: -2px;
    margin-left: 5px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Icon links nella navbar */
.navbar-default .navbar-nav > li > a i {
    margin-right: 5px;
    font-size: 16px;
}

/* Separator tra gruppi di link */
.navbar-default .navbar-nav > li.nav-separator {
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    margin: 10px 5px;
}

/* User dropdown specifico */
.navbar-default .navbar-nav > li.dropdown.user-dropdown > a {
    padding: 10px 15px;
}

.navbar-default .navbar-nav > li.dropdown.user-dropdown .dropdown-menu {
    min-width: 200px;
}

.navbar-default .navbar-nav > li.dropdown.user-dropdown .dropdown-menu > li.dropdown-header {
    padding: 10px 20px;
    font-weight: 600;
    color: #3498db;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 5px;
}

/* Hover effect con glow */
.navbar-default .navbar-nav > li > a:hover {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* ========================================
   END NAVBAR STYLES
   ======================================== */

/* Shop Container */
.ecommerce-shop {
    padding: 30px 0;
}

/* Category Filters */
.ecommerce-categories {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.ecommerce-categories h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ecommerce-categories .category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ecommerce-categories .category-list li {
    margin-bottom: 8px;
}

.ecommerce-categories .category-list a {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-radius: 8px;
    color: #555;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.ecommerce-categories .category-list a:hover,
.ecommerce-categories .category-list a.active {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #fff;
    transform: translateX(5px);
}

.ecommerce-categories .category-list a i {
    margin-right: 10px;
    width: 20px;
}

/* Hierarchical category styles */
.ecommerce-categories .category-list li[style*="padding-left"] a {
    font-size: 14px;
    padding: 8px 15px;
    border-left: 2px solid #ddd;
    margin-left: 5px;
}

.ecommerce-categories .category-list li[style*="padding-left"] a i.fa-angle-right {
    color: #999;
    font-size: 12px;
    margin-right: 8px;
}

.ecommerce-categories .category-list li[style*="padding-left"] a:hover,
.ecommerce-categories .category-list li[style*="padding-left"] a.active {
    border-left-color: #2980b9;
}

/* Product Grid */
.ecommerce-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

/* Product Card */
.product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

/* Product Image */
.product-card-image {
    position: relative;
    padding-top: 75%; /* 4:3 Aspect Ratio */
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

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

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

/* Product Badges */
.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
}

.badge-featured {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(245, 87, 108, 0.3);
}

.badge-sale {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(250, 112, 154, 0.3);
}

.badge-outofstock {
    background: #95a5a6;
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Product Content */
.product-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card-category {
    color: #3498db;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.product-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
    line-height: 1.4;
    min-height: 50px;
}

.product-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-card-title a:hover {
    color: #3498db;
}

.product-card-description {
    color: #7f8c8d;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Product Footer */
.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid #ecf0f1;
}

.product-price {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.product-price-regular {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
}

.product-price-sale {
    font-size: 20px;
    color: #e74c3c;
    font-weight: 700;
}

.product-price-old {
    font-size: 16px;
    color: #95a5a6;
    text-decoration: line-through;
}

.product-add-to-cart {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

.product-add-to-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.6);
}

.product-add-to-cart:active {
    transform: translateY(0);
}

.product-add-to-cart i {
    margin-right: 8px;
}

/* Cart Page */
.ecommerce-cart {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.cart-table {
    width: 100%;
    margin-bottom: 30px;
}

.cart-table thead {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #fff;
}

.cart-table thead th {
    padding: 15px;
    font-weight: 600;
    text-align: left;
}

.cart-table tbody tr {
    border-bottom: 1px solid #ecf0f1;
    transition: background 0.3s ease;
}

.cart-table tbody tr:hover {
    background: #f8f9fa;
}

.cart-table tbody td {
    padding: 20px 15px;
    vertical-align: middle;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
}

.cart-item-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 16px;
}

.cart-item-price {
    font-weight: 600;
    color: #3498db;
    font-size: 18px;
}

.cart-item-quantity input {
    width: 70px;
    padding: 8px;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
}

.cart-item-remove {
    background: #e74c3c;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cart-item-remove:hover {
    background: #c0392b;
    transform: scale(1.05);
}

/* Cart Summary */
.cart-summary {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border-radius: 16px;
    padding: 30px;
    color: #fff;
    box-shadow: 0 8px 30px rgba(52, 152, 219, 0.3);
}

.cart-summary h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #fff;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    font-size: 15px;
}

/* ========================================
   MODERN CART STYLES
   ======================================== */

.ecommerce-cart {
    padding: 40px 0;
    background: #f8f9fa;
    min-height: 70vh;
}

.cart-header {
    text-align: center;
    margin-bottom: 40px;
}

.cart-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.cart-header p {
    font-size: 16px;
    color: #7f8c8d;
}

.cart-content {
    margin-top: 30px;
}

/* Cart Items Section */
.cart-items-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 0;
    box-shadow: none;
    margin-bottom: 20px;
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 2fr 100px 120px 100px 45px;
    align-items: center;
    gap: 20px;
    padding: 20px 25px;
    border-bottom: 1px solid #e8e8e8;
    transition: all 0.3s ease;
    background: #fff;
}

.cart-item:first-child {
    border-radius: 12px 12px 0 0;
}

.cart-item:last-child {
    border-bottom: none;
    border-radius: 0 0 12px 12px;
}

.cart-item:hover {
    background: #fafbfc;
}

.cart-item-image {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 10px;
    overflow: hidden;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

.cart-item-image .no-image {
    font-size: 40px;
    color: #ddd;
}

.cart-item-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.cart-item-details h4 {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 6px 0;
    word-break: break-word;
}

.cart-item-details .sku {
    color: #95a5a6;
    font-size: 12px;
    margin: 0;
}

.cart-item-details .tax-info {
    color: #3498db;
    font-size: 11px;
    margin: 4px 0 0 0;
}

.cart-item-price {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 4px;
}

.cart-item-total {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 4px;
}

.price-label {
    font-size: 11px;
    color: #95a5a6;
    margin: 0;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.price-value {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
}

.cart-item-total .price-value {
    color: #3498db;
    font-size: 20px;
}

.cart-item-quantity {
    display: flex;
    justify-content: center;
}

.quantity-form {
    margin: 0;
    width: 100%;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 0;
    background: #f0f0f0;
    border-radius: 8px;
    padding: 2px;
    border: 1px solid #e0e0e0;
}

.qty-btn {
    background: transparent;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #555;
    font-size: 14px;
}

.qty-btn:hover {
    background: #e74c3c;
    color: #fff;
}

.qty-input {
    width: 50px;
    height: 36px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

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

.cart-item-remove {
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    border: none;
    border-radius: 8px;
    color: #fff;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 16px;
    box-shadow: 0 2px 6px rgba(231, 76, 60, 0.3);
}

.btn-remove:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    transform: scale(1.05);
    box-shadow: 0 3px 10px rgba(231, 76, 60, 0.4);
}

.cart-actions {
    margin-top: 20px;
}

/* Cart Summary */
.cart-summary {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    margin-bottom: 20px;
    top: 90px;
}

.cart-summary h3 {
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-size: 15px;
    color: #555;
}

.summary-line span:last-child {
    font-weight: 600;
}

.summary-divider {
    height: 2px;
    background: linear-gradient(to right, #3498db, #2980b9);
    margin: 15px 0;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    font-size: 18px;
    font-weight: 700;
}

.summary-total .total-amount {
    font-size: 28px;
    color: #3498db;
}

.summary-info {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
    color: #27ae60;
    font-weight: 600;
}

.summary-info i {
    margin-right: 5px;
}

.btn-checkout {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border: none;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    padding: 15px 30px;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(52, 152, 219, 0.4);
    color: #fff;
}

.accepted-payments {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.payment-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    font-size: 32px;
    color: #95a5a6;
    margin-top: 10px;
}

.payment-icons i {
    transition: all 0.3s ease;
}

.payment-icons i:hover {
    color: #3498db;
    transform: scale(1.2);
}

/* Cart Benefits */
.cart-benefits {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.benefit-item:last-child {
    border-bottom: none;
}

.benefit-item i {
    font-size: 32px;
    color: #3498db;
    flex-shrink: 0;
}

.benefit-item strong {
    display: block;
    font-size: 15px;
    color: #2c3e50;
    margin-bottom: 3px;
}

.benefit-item p {
    font-size: 13px;
    color: #7f8c8d;
    margin: 0;
}

/* Empty Cart */
.empty-cart {
    background: #fff;
    border-radius: 16px;
    padding: 80px 40px;
    text-align: center;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.empty-cart-icon {
    font-size: 120px;
    color: #ecf0f1;
    margin-bottom: 30px;
}

.empty-cart h3 {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
}

.empty-cart p {
    font-size: 16px;
    color: #7f8c8d;
    margin-bottom: 30px;
}

/* Responsive */
@media (max-width: 991px) {
    .cart-summary {
        position: static;
        margin-top: 30px;
    }
}

@media (max-width: 1199px) {
    .cart-item {
        grid-template-columns: 80px 1fr 100px 110px 100px 50px;
        gap: 15px;
        padding: 15px 20px;
    }
    
    .cart-item-image {
        width: 80px;
        height: 80px;
    }
    
    .cart-item-details h4 {
        font-size: 15px;
    }
    
    .price-value {
        font-size: 16px;
    }
}

@media (max-width: 767px) {
    .cart-item {
        grid-template-columns: 70px 1fr;
        gap: 12px;
        padding: 15px;
    }
    
    .cart-item-image {
        width: 70px;
        height: 70px;
        grid-row: 1 / 3;
    }
    
    .cart-item-details {
        grid-column: 2;
    }
    
    .cart-item-price,
    .cart-item-quantity,
    .cart-item-total,
    .cart-item-remove {
        grid-column: 2;
    }
    
    .price-label {
        font-size: 10px;
    }
    
    .price-value {
        font-size: 15px;
    }
    
    .cart-header h2 {
        font-size: 24px;
    }
}
    margin-top: 10px;
    border-top: 2px solid rgba(255,255,255,0.3);
}

.cart-summary-label {
    font-weight: 500;
}

.cart-summary-value {
    font-weight: 700;
    font-size: 18px;
}

.cart-summary-total {
    font-size: 28px !important;
    font-weight: 800;
}

.cart-checkout-btn {
    width: 100%;
    background: #fff;
    color: #3498db;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    margin-top: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.cart-checkout-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* Search Bar */
.ecommerce-search {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.search-form-modern {
    width: 100%;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
    background: #fff;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
    overflow: hidden;
}

.search-input-wrapper:focus-within {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.search-icon {
    position: absolute;
    left: 18px;
    color: #95a5a6;
    font-size: 16px;
    pointer-events: none;
}

.search-input {
    flex: 1;
    padding: 14px 20px 14px 50px;
    border: none;
    outline: none;
    font-size: 15px;
    color: #2c3e50;
    background: transparent;
    transition: all 0.3s ease;
}

.search-input::placeholder {
    color: #95a5a6;
}

.search-input:focus {
    color: #2c3e50;
}

.btn-search-submit {
    padding: 12px 28px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #fff;
    border: none;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    margin-right: 2px;
    margin-top: 2px;
    margin-bottom: 2px;
    border-radius: 6px;
}

.btn-search-submit:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1f618d 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.3);
}

.btn-search-submit:active {
    transform: translateY(0);
}

/* Pagination */
.ecommerce-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.ecommerce-pagination a,
.ecommerce-pagination span {
    display: inline-block;
    padding: 12px 20px;
    background: #fff;
    border: 2px solid #ecf0f1;
    border-radius: 10px;
    color: #2c3e50;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.ecommerce-pagination a:hover,
.ecommerce-pagination span.active {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border-color: #3498db;
    color: #fff;
    transform: translateY(-2px);
}

/* Empty Cart */
.empty-cart {
    text-align: center;
    padding: 60px 20px;
}

.empty-cart i {
    font-size: 80px;
    color: #ecf0f1;
    margin-bottom: 20px;
}

.empty-cart h3 {
    font-size: 24px;
    color: #7f8c8d;
    margin-bottom: 15px;
}

.empty-cart a {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.empty-cart a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .ecommerce-products {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .product-card-title {
        font-size: 16px;
        min-height: auto;
    }
    
    .product-price-regular {
        font-size: 20px;
    }
    
    .cart-table {
        display: block;
        overflow-x: auto;
    }
}

@media (max-width: 480px) {
    .ecommerce-products {
        grid-template-columns: 1fr;
    }
    
    .product-card-footer {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .product-add-to-cart {
        width: 100%;
    }
}

/* Loading Animation */
@keyframes shimmer {
    0% {
        background-position: -468px 0;
    }
    100% {
        background-position: 468px 0;
    }
}

.product-card.loading {
    animation: shimmer 1.5s infinite;
    background: linear-gradient(to right, #f6f7f8 0%, #edeef1 20%, #f6f7f8 40%, #f6f7f8 100%);
    background-size: 800px 104px;
}

/* Product Detail Page */
.product-detail {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.product-detail-images {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.product-detail-main-image {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #f8f9fa;
}

.product-detail-main-image img {
    width: 100%;
    height: auto;
}

.product-detail-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
}

.product-detail-thumbnail {
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-detail-thumbnail:hover,
.product-detail-thumbnail.active {
    border-color: #3498db;
}

.product-detail-thumbnail img {
    width: 100%;
    height: auto;
}

.product-detail-info h1 {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
}

.product-detail-price {
    font-size: 36px;
    font-weight: 700;
    color: #3498db;
    margin-bottom: 20px;
}

.product-detail-description {
    color: #555;
    line-height: 1.8;
    margin-bottom: 30px;
}

.product-detail-add-to-cart {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #fff;
    border: none;
    padding: 18px 40px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.product-detail-add-to-cart:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(52, 152, 219, 0.6);
}

/* ========================================
   CHECKOUT PAGE - PAYMENT METHODS STYLES
   ======================================== */

.payment-methods-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-method-card {
    position: relative;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    background: #fff;
}

.payment-method-card:hover {
    border-color: #94a3b8;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.payment-method-card.active {
    border-color: #0b5ed7;
    background: #f0f7ff;
    box-shadow: 0 2px 12px rgba(11, 94, 215, 0.15);
}

.payment-method-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.payment-method-card label {
    display: flex;
    align-items: center;
    padding: 16px;
    margin: 0;
    cursor: pointer;
    width: 100%;
}

.payment-method-card .pm-icon {
    flex-shrink: 0;
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: #64748b;
}

.payment-method-card.active .pm-icon {
    color: #0b5ed7;
}

.payment-method-card .pm-details {
    flex: 1;
}

.payment-method-card .pm-details strong {
    display: block;
    font-size: 15px;
    margin-bottom: 3px;
    color: #1e293b;
}

.payment-method-card .pm-details p {
    font-size: 13px;
    margin: 0;
}

.payment-method-card .pm-check {
    flex-shrink: 0;
    width: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e0e0e0;
    font-size: 24px;
}

.payment-method-card.active .pm-check {
    color: #0b5ed7;
}

/* Coupon Section */
.coupon-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin-top: 30px;
    border: 1px solid #e8e8e8;
}

.coupon-section h5 {
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.coupon-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
    background: #fff;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
    overflow: hidden;
}

.coupon-input-wrapper:focus-within {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.coupon-input {
    flex: 1;
    padding: 12px 18px;
    border: none;
    outline: none;
    font-size: 14px;
    color: #2c3e50;
    background: transparent;
    transition: all 0.3s ease;
}

.coupon-input::placeholder {
    color: #95a5a6;
}

.coupon-input:focus {
    color: #2c3e50;
}

.btn-apply-coupon {
    padding: 10px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #fff;
    border: none;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    margin-right: 2px;
    margin-top: 2px;
    margin-bottom: 2px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-apply-coupon:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1f618d 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.btn-apply-coupon:active {
    transform: translateY(0);
}

.coupon-message {
    margin-top: 12px;
    min-height: 20px;
}

.coupon-message .alert {
    margin: 0;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
}

/* Responsive */
@media (max-width: 767px) {
    .payment-method-card label {
        padding: 12px;
    }
    
    .payment-method-card .pm-icon {
        width: 40px;
        margin-right: 12px;
    }
    
    .payment-method-card .pm-icon i {
        font-size: 1.5em !important;
    }
}

/* Customer Authentication Section */
.customer-auth-section {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 40px;
    border: 2px solid #374151;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.auth-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.auth-header i {
    font-size: 28px;
    color: #60a5fa;
}

.auth-header h4 {
    margin: 0;
    color: #f3f4f6;
    font-size: 18px;
    font-weight: 600;
}

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-auth {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.btn-auth.login {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

.btn-auth.login:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.5);
}

.btn-auth.register {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(75, 85, 99, 0.4);
}

.btn-auth.register:hover {
    background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(75, 85, 99, 0.5);
}

.auth-divider {
    color: #9ca3af;
    font-weight: 600;
    font-size: 13px;
}

@media (max-width: 767px) {
    .customer-auth-section {
        padding: 20px;
        margin-bottom: 30px;
    }
    
    .auth-buttons {
        gap: 10px;
        justify-content: space-between;
    }
    
    .btn-auth {
        flex: 1;
        justify-content: center;
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .auth-divider {
        display: none;
    }
}
