/**
 * E-Commerce Stylesheet
 * Styles for product browsing, cart, checkout, and order management
 */

/* Main container */
.ecommerce-page {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
    background-color: #f8f9fa;
}

.ecommerce-page .page-header {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.ecommerce-page .page-header h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 600;
    color: #333;
}

.ecommerce-page .page-header i {
    margin-right: 10px;
    color: #667eea;
}

/* Products section */
.products-section {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.products-sidebar {
    flex: 0 0 250px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    height: fit-content;
}

.products-main {
    flex: 1;
    min-width: 0;
}

/* Filters */
.filters-section h5 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #666;
    margin-bottom: 5px;
}

.filter-group input[type="text"],
.filter-group input[type="number"],
.filter-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.filter-group input[type="text"]:focus,
.filter-group input[type="number"]:focus,
.filter-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.filter-group .form-check {
    margin-bottom: 8px;
}

.filter-group .form-check input[type="checkbox"] {
    margin-right: 8px;
}

.filter-group .form-check input[type="checkbox"]:checked {
    accent-color: #667eea;
}

.price-range {
    display: flex;
    gap: 10px;
    align-items: center;
}

.price-range input {
    flex: 1;
    padding: 8px;
}

.price-range-divider {
    color: #999;
    font-weight: bold;
}

/* View controls */
.view-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    align-items: center;
}

.view-controls label {
    margin: 0;
    font-weight: 500;
    color: #666;
}

.view-toggle {
    display: flex;
    gap: 5px;
}

.view-toggle .btn {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    background: white;
    color: #666;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-toggle .btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.view-toggle .btn.active {
    background-color: #667eea;
    color: white;
    border-color: #667eea;
}

/* Product grid */
#product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.product-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.product-image-wrapper {
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
    aspect-ratio: 1;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.product-badge.sale {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.product-badge.new {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.btn-wishlist {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #999;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-wishlist:hover,
.btn-wishlist.in-wishlist {
    color: #f5576c;
    transform: scale(1.1);
}

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

.product-category {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.product-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
    flex-grow: 1;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
    font-size: 13px;
}

.star {
    color: #ffc107;
    font-size: 12px;
}

.star.empty {
    color: #e0e0e0;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.price-current {
    font-size: 18px;
    font-weight: 700;
    color: #667eea;
}

.price-original {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

.price-discount {
    background: #f5576c;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.product-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.qty-control {
    display: flex;
    align-items: center;
    border: 1px solid #ced4da;
    border-radius: 4px;
    overflow: hidden;
    flex: 0 0 auto;
}

.qty-decrease,
.qty-increase {
    background: white;
    border: none;
    width: 30px;
    height: 30px;
    cursor: pointer;
    color: #667eea;
    font-weight: bold;
    transition: all 0.3s ease;
}

.qty-decrease:hover,
.qty-increase:hover {
    background: #f0f2f5;
    color: #764ba2;
}

.qty-input {
    width: 40px;
    height: 30px;
    border: none;
    text-align: center;
    font-weight: 600;
    color: #333;
}

.btn-add-to-cart {
    flex: 1;
    padding: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-add-to-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

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

/* Product list view */
#product-list {
    display: none;
}

.product-list-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    gap: 20px;
    align-items: center;
    transition: all 0.3s ease;
}

.product-list-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.product-list-image {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.product-list-info {
    flex: 1;
}

.product-list-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.product-list-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.5;
}

.product-list-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 13px;
}

.product-list-price {
    font-size: 20px;
    font-weight: 700;
    color: #667eea;
}

/* Product detail page */
.product-detail {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

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

#main-product-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    background: #f8f9fa;
    transition: all 0.3s ease;
    cursor: zoom-in;
}

.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.gallery-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.gallery-image:hover,
.gallery-image.active {
    border-color: #667eea;
    opacity: 1;
}

.product-details {
    display: flex;
    flex-direction: column;
}

.product-details h1 {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.product-details .product-rating {
    margin-bottom: 20px;
    font-size: 14px;
}

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

.product-details .price-current {
    font-size: 24px;
}

.product-description {
    color: #666;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.product-features {
    margin-bottom: 30px;
}

.product-features h5 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.product-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-features li {
    padding: 8px 0;
    color: #666;
    font-size: 14px;
    border-bottom: 1px solid #e0e0e0;
}

.product-features li:before {
    content: "✓ ";
    color: #28a745;
    font-weight: bold;
    margin-right: 8px;
}

.product-variants {
    margin-bottom: 30px;
}

.variant-group {
    margin-bottom: 20px;
}

.variant-group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.variant-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.variant-option {
    padding: 8px 16px;
    border: 2px solid #ced4da;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.variant-option:hover {
    border-color: #667eea;
}

.variant-option.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.product-actions-detail {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.qty-control-large {
    display: flex;
    align-items: center;
    border: 1px solid #ced4da;
    border-radius: 6px;
    overflow: hidden;
}

.qty-control-large button {
    width: 45px;
    height: 45px;
    background: white;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: #667eea;
    transition: all 0.3s ease;
}

.qty-control-large button:hover {
    background: #f0f2f5;
}

.qty-control-large input {
    width: 60px;
    height: 45px;
    border: none;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
}

.btn-add-to-cart-large {
    flex: 1;
    padding: 15px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-add-to-cart-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-buy-now {
    flex: 1;
    padding: 15px 30px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-buy-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 87, 108, 0.4);
}

.stock-status {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-weight: 600;
}

.stock-status.in-stock {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.stock-status.out-of-stock {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Cart page */
.cart-page {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.cart-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    margin-bottom: 30px;
}

.cart-items {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cart-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 15px;
    align-items: center;
}

.cart-item-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

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

.cart-item-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.cart-item-price {
    font-size: 14px;
    color: #667eea;
    font-weight: 600;
    margin-bottom: 10px;
}

.cart-item-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.qty-control {
    flex: 0 0 auto;
}

.btn-remove-item {
    padding: 8px 12px;
    background: #f8d7da;
    color: #721c24;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s ease;
}

.btn-remove-item:hover {
    background: #f5c6cb;
}

.cart-summary {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    height: fit-content;
    position: sticky;
    top: 20px;
}

.summary-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 12px;
    color: #666;
}

.summary-row.total {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    border-top: 2px solid #e0e0e0;
    padding-top: 15px;
    margin-bottom: 20px;
}

.coupon-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.coupon-input {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
}

.coupon-input input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 13px;
}

.btn-apply-coupon {
    padding: 8px 15px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-apply-coupon:hover {
    background: #5568d3;
}

.btn-checkout {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-continue-shopping {
    width: 100%;
    padding: 12px;
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-continue-shopping:hover {
    background: #f0f2f5;
}

.cart-empty {
    text-align: center;
    padding: 60px 20px;
}

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

.cart-empty h3 {
    color: #333;
    margin-bottom: 10px;
}

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

/* Checkout page */
.checkout-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
}

.checkout-form {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.checkout-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.checkout-section:last-of-type {
    border-bottom: none;
}

.checkout-section h5 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-row.full {
    grid-template-columns: 1fr;
}

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

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.payment-method {
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-method:hover {
    border-color: #667eea;
}

.payment-method input[type="radio"] {
    display: none;
}

.payment-method input[type="radio"]:checked + label {
    color: #667eea;
    font-weight: 600;
}

.payment-method.active {
    background: #f0f2f5;
    border-color: #667eea;
}

.payment-method i {
    font-size: 24px;
    margin-bottom: 10px;
    display: block;
    color: #667eea;
}

.btn-place-order {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.btn-place-order:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Review section */
.reviews-section {
    background: white;
    border-radius: 8px;
    padding: 30px;
    margin-top: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.reviews-section h4 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 25px;
}

.review-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.rating-average {
    text-align: center;
}

.rating-value {
    font-size: 48px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 8px;
}

.rating-stars {
    margin-bottom: 8px;
    font-size: 14px;
}

.rating-count {
    font-size: 13px;
    color: #999;
}

.rating-bars {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.rating-bar-label {
    width: 40px;
    text-align: right;
}

.rating-bar-fill {
    flex: 1;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
}

.rating-bar-fill-value {
    height: 100%;
    background: linear-gradient(90deg, #ffc107 0%, #ffc107 100%);
}

.review-form {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.review-form h5 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.rating-select {
    margin-bottom: 15px;
}

.rating-select label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.star-rating {
    display: flex;
    gap: 5px;
    font-size: 24px;
}

.star-rating input {
    display: none;
}

.star-rating label {
    cursor: pointer;
    color: #e0e0e0;
    transition: all 0.3s ease;
}

.star-rating label:hover,
.star-rating input:checked ~ label {
    color: #ffc107;
}

#review-comment {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-family: inherit;
    min-height: 100px;
    margin-bottom: 15px;
}

#submit-review-btn {
    padding: 12px 24px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

#submit-review-btn:hover {
    background: #5568d3;
}

.review-item {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 15px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 12px;
}

.review-user {
    font-weight: 600;
    color: #333;
}

.review-date {
    font-size: 13px;
    color: #999;
}

.review-rating {
    color: #ffc107;
    font-size: 14px;
    margin-bottom: 8px;
}

.review-comment {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* Order confirmation */
.order-confirmation {
    background: white;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    margin: 40px auto;
}

.confirmation-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 40px;
    color: white;
}

.order-confirmation h3 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.order-confirmation p {
    color: #666;
    margin-bottom: 20px;
}

.order-details {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: left;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 14px;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: #333;
}

.detail-value {
    color: #666;
}

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

.btn-primary-confirm {
    flex: 1;
    padding: 12px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary-confirm:hover {
    background: #5568d3;
}

.btn-secondary-confirm {
    flex: 1;
    padding: 12px;
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary-confirm:hover {
    background: #f0f2f5;
}

/* Notifications */
#notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
}

.alert {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    animation: slideIn 0.3s ease;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

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

/* Responsive styles */
@media (max-width: 992px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .products-section {
        flex-direction: column;
        gap: 20px;
    }

    .products-sidebar {
        flex: 1;
    }

    #product-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .checkout-container {
        grid-template-columns: 1fr;
    }

    .payment-methods {
        grid-template-columns: repeat(2, 1fr);
    }

    .cart-container {
        grid-template-columns: 1fr;
    }

    .cart-summary {
        position: static;
    }
}

@media (max-width: 768px) {
    .ecommerce-page {
        padding: 15px;
    }

    .products-section {
        flex-direction: column;
    }

    .products-sidebar {
        flex: 1;
    }

    #product-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 15px;
    }

    .product-card {
        font-size: 13px;
    }

    .product-name {
        font-size: 13px;
    }

    .price-current {
        font-size: 16px;
    }

    .btn-add-to-cart {
        font-size: 12px;
        padding: 8px;
    }

    .product-list-item {
        flex-direction: column;
        padding: 15px;
    }

    .product-list-image {
        width: 100%;
        height: auto;
    }

    .cart-container {
        grid-template-columns: 1fr;
    }

    .cart-item {
        flex-direction: column;
    }

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

    .checkout-container {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .payment-methods {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-thumbnails {
        grid-template-columns: repeat(3, 1fr);
    }

    .review-summary {
        grid-template-columns: 1fr;
    }

    .confirmation-actions {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .products-sidebar {
        flex: 1;
    }

    #product-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
    }

    .product-card {
        font-size: 12px;
    }

    .product-badge {
        font-size: 10px;
        padding: 3px 6px;
    }

    .price-current {
        font-size: 14px;
    }

    .product-detail h1 {
        font-size: 24px;
    }

    .product-actions-detail {
        flex-direction: column;
    }

    .view-controls {
        flex-direction: column;
    }

    .payment-methods {
        grid-template-columns: 1fr;
    }

    .gallery-thumbnails {
        grid-template-columns: repeat(2, 1fr);
    }

    .summary-row {
        font-size: 12px;
    }

    .order-confirmation {
        padding: 20px;
    }

    .btn-place-order,
    .btn-add-to-cart-large,
    .btn-buy-now {
        padding: 12px;
        font-size: 14px;
    }
}
