/* ===================================
   E-COMMERCE STORE STYLES
   =================================== */

/* Product Listing Page */
.store-page-area {
    padding: 80px 0;
}

.store-sidebar {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.store-sidebar .widget {
    margin-bottom: 30px;
}

.store-sidebar .widget:last-child {
    margin-bottom: 0;
}

.store-sidebar .widget-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #2c3e50;
    padding-bottom: 15px;
    border-bottom: 2px solid #e8ecef;
}

.store-sidebar .widget_search .form-group {
    margin-bottom: 15px;
}

.store-sidebar .widget_search .form-control {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    padding: 12px 15px;
    font-size: 14px;
}

.store-sidebar .widget_search .btn {
    width: 100%;
    border-radius: 8px;
    padding: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.store-sidebar .widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.store-sidebar .widget ul li {
    margin-bottom: 10px;
}

.store-sidebar .widget ul li a {
    color: #495057;
    text-decoration: none;
    font-size: 15px;
    display: block;
    padding: 8px 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.store-sidebar .widget ul li a:hover {
    color: #007bff;
    padding-left: 10px;
    border-bottom-color: #007bff;
}

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

.single-product-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.single-product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.single-product-item .thumb {
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
    padding-top: 75%;
}

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

.single-product-item:hover .thumb img {
    transform: scale(1.1);
}

.single-product-item .thumb .badge {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: #dc3545;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    z-index: 2;
}

.single-product-item .content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.single-product-item .content .title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.4;
    color: #2c3e50;
}

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

.single-product-item .content .title a:hover {
    color: #007bff;
}

.single-product-item .content .price-wrap {
    margin-bottom: 15px;
    flex-grow: 1;
}

.single-product-item .content .price {
    font-size: 20px;
    font-weight: 700;
    color: #28a745;
}

.single-product-item .content .price del {
    font-size: 16px;
    color: #6c757d;
    margin-right: 10px;
    font-weight: 400;
}

.single-product-item .content .btn {
    width: 100%;
    border-radius: 8px;
    padding: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
}

/* Single Product Page */
.product-detail-page {
    padding: 80px 0;
}

.product-image {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.product-image img {
    width: 100%;
    height: auto;
    display: block;
}

.product-details {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.product-details .product-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #2c3e50;
}

.product-details .price-wrap {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e8ecef;
}

.product-details .price-wrap .price {
    font-size: 36px;
    font-weight: 700;
    color: #28a745;
    display: block;
    margin-bottom: 10px;
}

.product-details .price-wrap .price del {
    font-size: 24px;
    color: #6c757d;
    margin-right: 15px;
    font-weight: 400;
}

.product-details .price-wrap .discount-badge {
    display: inline-block;
    background: #dc3545;
    color: #fff;
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    margin-left: 15px;
}

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

.product-details .description {
    font-size: 15px;
    color: #6c757d;
    line-height: 1.8;
    margin-bottom: 25px;
}

.product-details .product-meta {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.product-details .product-meta p {
    margin-bottom: 10px;
    font-size: 15px;
    color: #495057;
}

.product-details .product-meta p:last-child {
    margin-bottom: 0;
}

.product-details .product-meta strong {
    color: #2c3e50;
    margin-right: 10px;
}

.product-details .stock-status {
    margin-bottom: 25px;
}

.product-details .stock-status .badge {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
}

.product-details .quantity-wrapper {
    margin-bottom: 20px;
}

.product-details .quantity-wrapper label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #2c3e50;
}

.product-details .quantity-wrapper input {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    padding: 10px 15px;
}

.product-details .add-to-cart-form .btn {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 8px;
}

/* Shopping Cart Page */
.cart-page-area {
    padding: 80px 0;
}

.cart-table {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.cart-table table {
    margin: 0;
}

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

.cart-table thead th {
    padding: 20px;
    font-weight: 700;
    color: #2c3e50;
    border-bottom: 2px solid #dee2e6;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.cart-table tbody td {
    padding: 20px;
    vertical-align: middle;
    border-bottom: 1px solid #e8ecef;
}

.cart-table tbody td img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 15px;
}

.cart-table tbody td a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
}

.cart-table tbody td a:hover {
    color: #007bff;
}

.cart-table .quantity-input {
    width: 80px;
    text-align: center;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    padding: 8px;
}

.cart-table .remove-item {
    border-radius: 6px;
    padding: 8px 15px;
    font-size: 13px;
}

.cart-table tfoot {
    background: #f8f9fa;
}

.cart-table tfoot td {
    padding: 20px;
    font-weight: 700;
    font-size: 18px;
}

.cart-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding: 25px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.cart-actions .btn {
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Checkout Page */
.checkout-page-area {
    padding: 80px 0;
}

.checkout-form-wrapper {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.checkout-form-wrapper h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #2c3e50;
    padding-bottom: 15px;
    border-bottom: 2px solid #e8ecef;
}

.checkout-form-wrapper .form-group {
    margin-bottom: 20px;
}

.checkout-form-wrapper .form-group label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    display: block;
}

.checkout-form-wrapper .form-control {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    padding: 12px 15px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.checkout-form-wrapper .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.checkout-form-wrapper .btn-primary {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 8px;
    margin-top: 20px;
}

.order-summary {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 100px;
}

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

.order-summary table {
    width: 100%;
    margin-bottom: 20px;
}

.order-summary table tbody tr {
    border-bottom: 1px solid #e8ecef;
}

.order-summary table tbody tr:last-child {
    border-bottom: none;
}

.order-summary table td {
    padding: 12px 0;
    font-size: 15px;
    color: #495057;
}

.order-summary table td:last-child {
    text-align: right;
    font-weight: 600;
    color: #2c3e50;
}

.order-summary table tbody tr:last-child td {
    font-size: 20px;
    font-weight: 700;
    color: #28a745;
    padding-top: 20px;
    border-top: 2px solid #e8ecef;
}

/* Order Success Page */
.order-success-area {
    padding: 80px 0;
    text-align: center;
}

.order-success-area .alert {
    border-radius: 12px;
    padding: 40px;
    border: none;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.order-success-area .alert h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #28a745;
}

.order-success-area .alert p {
    font-size: 16px;
    color: #495057;
    margin-bottom: 15px;
}

.order-success-area .alert strong {
    color: #2c3e50;
    font-size: 18px;
}

.order-success-area .alert .btn {
    margin-top: 20px;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive Design */
@media (max-width: 991px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .store-sidebar {
        margin-bottom: 30px;
    }
    
    .cart-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .cart-actions .btn {
        width: 100%;
    }
    
    .order-summary {
        position: static;
        margin-top: 30px;
    }
}

@media (max-width: 767px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .single-product-item .content {
        padding: 15px;
    }
    
    .product-details {
        padding: 20px;
    }
    
    .product-details .product-title {
        font-size: 24px;
    }
    
    .cart-table {
        overflow-x: auto;
    }
    
    .checkout-form-wrapper {
        padding: 20px;
    }
}

/* Empty State */
.empty-cart {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.empty-cart .alert {
    border: none;
    background: transparent;
    padding: 0;
}

.empty-cart .alert p {
    font-size: 18px;
    color: #6c757d;
    margin-bottom: 25px;
}

.empty-cart .btn {
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Cart Success Modal */
#cart-success-modal .modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

#cart-success-modal .modal-body {
    padding: 40px 30px;
}

#cart-success-modal .fa-check-circle {
    color: #28a745;
    animation: scaleIn 0.3s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

#cart-success-modal h4 {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 15px;
}

#cart-success-modal p {
    color: #6c757d;
    font-size: 16px;
    margin-bottom: 25px;
}

#cart-success-modal .btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    min-width: 120px;
    margin: 0 5px;
}

#cart-success-modal .btn-secondary {
    background: #6c757d;
    border-color: #6c757d;
}

#cart-success-modal .btn-primary {
    background: #007bff;
    border-color: #007bff;
}

#cart-success-modal .btn-success {
    background: #28a745;
    border-color: #28a745;
}

#cart-success-modal .d-flex.gap-2 {
    gap: 10px !important;
}

