/* ========================================
   DC BEAUTY - SHOP STYLES  
   ======================================== */

/* ========================================
   PRODUCT DETAIL PAGE
   ======================================== */

.product-detail {
    padding: 40px 0;
}

.product-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

/* Product Gallery */
.product-gallery {

    top: 20px;
    height: fit-content;
}

.gallery-main {
    margin-bottom: 20px;
}

.main-image-container {
    position: relative;
    background: #f8f8f8;
    border-radius: 8px;
    overflow: hidden;
}

.main-image {
    width: 100%;
    display: block;
    transition: transform 0.3s ease;
    cursor: zoom-in;
    max-height: 55vh;
    min-height: 55vh;
    object-fit: contain;
}

.gallery-thumbs {
display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 2px;
    margin-top: 15px;
}

.thumb {
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.thumb.active {
    border-color: var(--accent-color);
}

.thumb img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    display: block;
}

.no-image-large {
    aspect-ratio: 1;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #999;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Product Details */
.product-details {
    padding-top: 10px;
}

.product-name {
    font-size: 32px;
    font-weight: 300;
    margin-bottom: 10px;
    line-height: 1.2;
}

.product-sku {
    color: #999;
    font-size: 13px;
    margin-bottom: 20px;
}

.product-price-box {
    display: flex;
    align-items: baseline;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.product-price-box .price-current {
    font-size: 28px;
}

.price-tax {
    font-size: 13px;
    color: #666;
}

.product-short-description {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 25px;
}

/* Product Stock */
.product-stock {
    margin-bottom: 25px;
}

.stock-available,
.stock-low,
.stock-out {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
}

.stock-available {
    background: #E8F5E9;
    color: #2E7D32;
}

.stock-low {
    background: #FFF3E0;
    color: #E65100;
}

.stock-out {
    background: #FFEBEE;
    color: #C62828;
}

/* Product Form */
.product-form {
    margin-bottom: 30px;
}

.quantity-selector {
    margin-bottom: 20px;
}

.quantity-selector label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.quantity-controls {
    display: inline-flex;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.qty-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: #f8f8f8;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.3s ease;
}

.qty-btn:hover {
    background: var(--accent-color);
    color: white;
}

.qty-input {
    width: 60px;
    text-align: center;
    border: none;
    border-left: 1px solid #e0e0e0;
    border-right: 1px solid #e0e0e0;
    font-size: 16px;
}

.form-actions {
    display: flex;
    gap: 15px;
}

.btn-large {
    padding: 15px 30px;
    font-size: 16px;
}

.btn-wishlist {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-wishlist:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* Product Categories */
.product-categories {
    margin-bottom: 25px;
    font-size: 14px;
}

.product-categories .label {
    font-weight: 500;
    margin-right: 10px;
}

.product-categories a {
    color: var(--accent-color);
}

/* Product Shipping */
.product-shipping {
    padding: 20px;
    background: #f8f8f8;
    border-radius: 8px;
}

.shipping-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 14px;
}

.shipping-item:last-child {
    margin-bottom: 0;
}

/* Product Tabs */
.product-tabs {
    margin-top: 60px;
}

.tabs-nav {
    display: flex;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 30px;
}

.tab-btn {
    padding: 10px 20px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

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

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-color);
}

.tab-pane {
    display: none;
}

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

.product-description {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
}

/* Related Products */
.related-products,
.recent-products {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #e0e0e0;
}

.related-products h2,
.recent-products h2 {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 30px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.products-slider {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

/* ========================================
   CART PAGE
   ======================================== */

.cart-section {
    padding: 40px 0;
    min-height: 60vh;
}

.page-title {
    font-size: 32px;
    font-weight: 300;
    text-align: center;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

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

.empty-cart-icon {
    color: #e0e0e0;
    margin-bottom: 20px;
}

.empty-cart h2 {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 10px;
}

.empty-cart p {
    color: #666;
    margin-bottom: 30px;
}

/* Cart Content */
.cart-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
}

/* Cart Table */
.cart-table {
    width: 100%;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.cart-table thead {
    background: #f8f8f8;
}

.cart-table th {
    padding: 15px;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
}

.cart-table td {
    padding: 20px 15px;
    border-top: 1px solid #f0f0f0;
    vertical-align: middle;
}

.cart-item-image {
    width: 100px;
}

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

.no-image-small {
    width: 80px;
    height: 80px;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 12px;
    color: #999;
}

.cart-item-details h3 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 5px;
}

.cart-item-details h3 a {
    color: #333;
}

.cart-item-details .sku {
    font-size: 13px;
    color: #999;
}

.cart-item-details .stock-warning {
    font-size: 13px;
    color: #FF9800;
    margin-top: 5px;
}

.cart-item-price,
.cart-item-total {
    font-size: 16px;
}

.cart-item-total strong {
    font-weight: 600;
}

.btn-remove {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}

.btn-remove:hover {
    color: #FF5252;
}

/* Cart Actions */
.cart-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.btn-outline {
    background: white;
    border: 1px solid #e0e0e0;
    color: #666;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* Cart Summary */
.cart-summary {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.cart-summary h2 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 20px;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 15px;
}

.shipping-info {
    color: #999;
    font-size: 14px;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
    margin-top: 20px;
    margin-bottom: 25px;
    font-size: 18px;
    font-weight: 600;
}

/* Promo Code */
.promo-code {
    margin-bottom: 25px;
}

.promo-code summary {
    cursor: pointer;
    color: var(--accent-color);
    font-size: 14px;
    margin-bottom: 10px;
}

.promo-form {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.promo-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
}

.btn-secondary {
    background: #f8f8f8;
    color: #333;
    padding: 10px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

/* Checkout Button */
.checkout-button {
    margin-bottom: 20px;
}

.btn-block {
    width: 100%;
    text-align: center;
}

.checkout-info {
    text-align: center;
    font-size: 13px;
    color: #666;
    margin-top: 10px;
}

/* Payment Methods */
.payment-methods {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    margin-bottom: 20px;
}

.payment-methods p {
    font-size: 13px;
    color: #999;
    margin-bottom: 10px;
}

.payment-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.payment-icon {
    font-size: 12px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Shipping Info Block */
.shipping-info-block {
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 13px;
    color: #666;
}

/* Modal Aperçu Rapide */
#quick-view-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: white;
    padding: 40px;
    width: fit-content;
    max-width: 120vh;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: #333;
    background: rgba(0, 0, 0, 0.1);
    transform: rotate(90deg);
}

.quick-view-product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.quick-view-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.quick-view-image img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    border-radius: 8px;
}

.quick-view-image .no-image {
    width: 100%;
    height: 400px;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #999;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.quick-view-info h2 {
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 10px;
    line-height: 1.2;
}

.quick-view-info .sku {
    color: #999;
    font-size: 13px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.quick-view-info .price {
    font-size: 24px;
    font-weight: 600;
    color: var(--accent-color, #FF6B6B);
    margin-bottom: 15px;
}

.quick-view-info .stock {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 20px;
}

.quick-view-info .stock.in-stock {
    background: #E8F5E9;
    color: #2E7D32;
}

.quick-view-info .stock.out-stock {
    background: #FFEBEE;
    color: #C62828;
}

.quick-view-info .short-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 15px;
}

.quick-view-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.quick-view-actions .btn {
    flex: 1;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.quick-view-actions .btn-primary {
    background: var(--accent-color, #FF6B6B);
    color: white;
    border: none;
    cursor: pointer;
}

.quick-view-actions .btn-primary:hover {
    background: var(--accent-hover, #FF5252);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.quick-view-actions .btn-secondary {
    background: transparent;
    color: #333;
    border: 2px solid #e0e0e0;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.quick-view-actions .btn-secondary:hover {
    border-color: var(--accent-color, #FF6B6B);
    color: var(--accent-color, #FF6B6B);
}

.quick-view-actions .btn-disabled {
    background: #f0f0f0;
    color: #999;
    border: none;
    cursor: not-allowed;
}

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

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #4CAF50;
    color: white;
    padding: 15px 20px;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
}

.notification.error {
    background: #FF5252;
}

.notification.info {
    background: #2196F3;
}

/* Recommended Products */
.recommended-products {
    padding: 40px 0;
    background: #f8f8f8;
}

.recommended-products h2 {
    font-size: 24px;
    font-weight: 400;
    text-align: center;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Responsive */
@media (max-width: 1024px) {
    .shop-grid {
        grid-template-columns: 1fr;
    }
    
    .shop-sidebar {
        position: relative;
        top: 0;
    }
    
    .product-main {
        grid-template-columns: 1fr;
    }
    
    .cart-content {
        grid-template-columns: 1fr;
    }
    
    .cart-summary {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .shop-toolbar {
        flex-direction: column;
        gap: 15px;
    }
    
    .cart-table {
        font-size: 14px;
    }
    
    .cart-table th,
    .cart-table td {
        padding: 10px;
    }
    
    .cart-item-image {
        width: 60px;
    }
    
    .cart-item-image img {
        width: 50px;
        height: 50px;
    }
    
    .quick-view-product {
        grid-template-columns: 1fr;
    }
}
