/* ========================================
   CSS VARIABLES - Brand Colors (Green Theme)
   ======================================== */
:root {
    --primary-color: #2e7d32;
    --primary-dark: #1b5e20;
    --primary-light: #4caf50;
    --primary-hover: #388e3c;
    --secondary-color: #e8f5e9;
    --accent-color: #66bb6a;
    --text-color: #1a1a1a;
    --text-light: #666666;
    --bg-color: #f5f5f5;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --success: #43a047;
    --danger: #e53935;
    --warning: #fdd835;
    --info: #1e88e5;
}

/* ========================================
   SHOP-SPECIFIC STYLES
   ======================================== */

/* No Products */
.no-products {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
    font-size: 1.1rem;
}

.no-products i {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
    color: #ccc;
}

/* Product Card Enhancements */
.product-card .btn-secondary {
    width: calc(100% - 2rem);
    text-align: center;
    justify-content: center;
}

/* ========================================
   FILTER SECTION
   ======================================== */
.filter-section {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
}

.search-form {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.search-form input {
    flex: 1;
    padding: 10px 16px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.95rem;
    transition: border-color 0.3s;
    min-width: 200px;
    background: #fafafa;
}

.search-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--white);
}

.search-form .btn-primary {
    padding: 10px 22px;
    background: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.search-form .btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

.search-form .btn-secondary {
    padding: 10px 22px;
    background: #f0f0f0;
    color: var(--text-color);
    border: 2px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.search-form .btn-secondary:hover {
    background: #e5e5e5;
    border-color: #bbb;
    transform: translateY(-2px);
}

.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 15px;
    border-top: 2px solid #f0f0f0;
}

.category-filter a {
    padding: 6px 16px;
    background: #f5f5f5;
    color: #555;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s;
    border: 2px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.category-filter a i {
    font-size: 0.8rem;
}

.category-filter a:hover {
    background: #e8e8e8;
    color: var(--text-color);
    transform: translateY(-2px);
}

.category-filter a.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.category-filter a.active i {
    color: var(--white);
}

/* Order Status Tracker */
.order-status-tracker {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px 0;
    position: relative;
}

.status-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s;
}

.step-circle i {
    font-size: 16px;
}

.status-step.active .step-circle {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 2px 10px rgba(46, 125, 50, 0.3);
}

.status-step.completed .step-circle {
    background: var(--success);
    color: var(--white);
}

.step-label {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #999;
    text-align: center;
}

.status-step.active .step-label {
    color: var(--primary-color);
}

.status-step.completed .step-label {
    color: var(--success);
}

.step-date {
    font-size: 10px;
    color: #999;
    margin-top: 2px;
}

.status-line {
    flex: 0 0 50px;
    height: 3px;
    background: #e0e0e0;
    margin: 0 5px;
    position: relative;
    top: -20px;
}

.status-line.active {
    background: var(--primary-color);
}

.status-line.completed {
    background: var(--success);
}

/* Order Summary */
.order-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 20px 0;
    padding: 20px;
    background: var(--secondary-color);
    border-radius: 8px;
}

.order-summary h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--text-color);
    font-size: 1rem;
}

.order-summary h3 i {
    margin-right: 8px;
    color: var(--primary-color);
}

.order-summary p {
    margin: 5px 0;
    font-size: 0.9rem;
}

.order-summary p i {
    margin-right: 6px;
    width: 18px;
    color: var(--text-light);
}

.order-summary p strong {
    color: var(--text-color);
}

/* Order Items Table */
.order-items-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.order-items-table th {
    background: #f0f0f0;
    padding: 10px;
    text-align: left;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.order-items-table td {
    padding: 10px;
    border-bottom: 1px solid var(--border-color);
}

.order-items-table img {
    vertical-align: middle;
    margin-right: 10px;
    border-radius: 4px;
}

.order-items-table tfoot td {
    font-weight: 600;
    color: var(--text-color);
}
/* ========================================
   PRODUCT CARD - ENHANCED
   ======================================== */

/* Product Image Wrapper */
.product-card .product-image-wrapper {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

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

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

.product-card .product-image-wrapper .zoom-icon {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
}

.product-card .product-image-wrapper:hover .zoom-icon {
    opacity: 1;
}

/* Quantity Selector - Compact */
.product-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 1rem 0.8rem;
    margin-top: 4px;
}

.product-actions .quantity-selector {
    display: flex;
    align-items: center;
    gap: 2px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    background: var(--white);
}

.product-actions .qty-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: var(--text-color);
    cursor: pointer;
    font-size: 0.7rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.product-actions .qty-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

.product-actions .qty-btn:active {
    transform: scale(0.9);
}

.product-actions .qty-input {
    width: 32px;
    height: 28px;
    border: none;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    background: var(--white);
    color: var(--text-color);
    padding: 0;
}

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

.product-actions .qty-input::-webkit-inner-spin-button,
.product-actions .qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.product-actions .qty-input {
    -moz-appearance: textfield;
}

/* Add to Cart Button - Compact */
.product-actions .btn-add-cart {
    flex: 1;
    padding: 6px 12px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.product-actions .btn-add-cart:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

.product-actions .btn-add-cart:active {
    transform: scale(0.95);
}

.product-actions .btn-add-cart i {
    font-size: 0.9rem;
}

/* Out of Stock Button */
.product-actions .btn-out-of-stock {
    flex: 1;
    padding: 6px 12px;
    background: #f0f0f0;
    color: #999;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    cursor: not-allowed;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.product-actions .btn-out-of-stock i {
    color: #e74c3c;
}

/* Discount Badge */
.discount-badge {
    background: #e74c3c !important;
    color: #fff !important;
    animation: pulse-discount 1.5s ease-in-out infinite;
}

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

.out-of-stock-badge {
    background: #95a5a6 !important;
    color: #fff !important;
}

/* Product Price Wrapper */
.product-price-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 4px;
    padding: 0 1rem;
}

.product-price-wrapper .price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
}

.product-price-wrapper .original-price {
    font-size: 0.8rem;
    color: #999;
    text-decoration: line-through;
}

/* Product Card Body */
.product-card-body {
    padding: 0.5rem 0 0.8rem;
}

.product-card-body h3 {
    font-size: 0.95rem;
    margin-bottom: 4px;
    padding: 0 1rem;
}

.product-card-body .category {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: 4px;
    padding: 0 1rem;
}

.product-card-body .stock {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: 6px;
    padding: 0 1rem;
}

/* Image Modal */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    cursor: zoom-out;
    align-items: center;
    justify-content: center;
}

.image-modal.active {
    display: flex;
}

.image-modal img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    animation: zoomIn 0.3s ease;
}

.image-modal .modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    background: none;
    border: none;
}

.image-modal .modal-close:hover {
    color: #e74c3c;
    transform: rotate(90deg);
}

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

/* Responsive */
@media (max-width: 768px) {
    .product-actions {
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
    }
    
    .product-actions .qty-btn {
        width: 24px;
        height: 24px;
        font-size: 0.6rem;
    }
    
    .product-actions .qty-input {
        width: 28px;
        height: 24px;
        font-size: 0.7rem;
    }
    
    .product-actions .btn-add-cart {
        font-size: 0.7rem;
        padding: 5px 10px;
    }
}

@media (max-width: 480px) {
    .product-price-wrapper .price {
        font-size: 0.95rem;
    }
    
    .product-price-wrapper .original-price {
        font-size: 0.7rem;
    }
    
    .product-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .product-actions .quantity-selector {
        justify-content: center;
    }
    
    .product-actions .qty-btn {
        width: 22px;
        height: 22px;
        font-size: 0.5rem;
    }
    
    .product-actions .qty-input {
        width: 24px;
        height: 22px;
        font-size: 0.65rem;
    }
    
    .product-actions .btn-add-cart {
        font-size: 0.65rem;
        padding: 4px 8px;
    }
}
/* ========================================
   PRODUCT DETAIL
   ======================================== */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 30px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin: 20px 0;
    border: 1px solid var(--border-color);
}

.product-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

.product-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-info h1 {
    margin: 0;
    color: var(--text-color);
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-info h1 i {
    color: var(--text-color);
    font-size: 1.4rem;
}

.product-info .category {
    color: var(--text-light);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-info .category i {
    color: var(--text-light);
    width: 18px;
}

.product-info .price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-info .price i {
    color: var(--primary-color);
    font-size: 1.4rem;
}

.product-info .stock {
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-info .stock i {
    font-size: 1.1rem;
}

.product-info .stock i.fa-check-circle {
    color: var(--success);
}

.product-info .stock i.fa-times-circle {
    color: var(--danger);
}

.description {
    margin: 10px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid var(--primary-color);
}

.description i {
    color: var(--text-light);
    margin-right: 8px;
}

.description p {
    margin: 5px 0 0 0;
    line-height: 1.8;
    color: #444;
}

/* Quantity Selector */
.quantity-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.quantity-selector label {
    font-weight: 600;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 6px;
}

.quantity-selector label i {
    color: var(--text-light);
}

.quantity-selector input {
    width: 80px;
    padding: 10px 12px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    text-align: center;
    transition: border-color 0.3s;
}

.quantity-selector input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.max-stock {
    font-size: 0.8rem;
    color: var(--text-light);
    background: #f5f5f5;
    padding: 4px 12px;
    border-radius: 20px;
}

/* Add to Cart Button */
.product-info .btn-primary {
    padding: 14px 32px;
    background: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
}

.product-info .btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

/* Out of Stock */
.out-of-stock {
    color: var(--danger);
    font-weight: 700;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: #fef2f2;
    border-radius: 6px;
    border: 1px solid #fcd5d5;
}

.out-of-stock i {
    font-size: 1.4rem;
}

/* Related Products */
.related-products {
    margin: 40px 0;
}

.related-products h2 {
    margin-bottom: 20px;
    color: var(--text-color);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

/* ========================================
   CART TABLE ENHANCEMENTS
   ======================================== */
.cart-table .update-cart-form {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.cart-table .update-cart-form input {
    width: 60px;
    padding: 6px 8px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    text-align: center;
}

.cart-table .update-cart-form .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    font-size: 0.8rem;
}
/* ========================================
   PRODUCT CARD - INTERACTIVE
   ======================================== */

/* Discount Badge */
.discount-badge {
    background: #e74c3c !important;
    color: #fff !important;
    animation: pulse-discount 1.5s ease-in-out infinite;
}

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

.out-of-stock-badge {
    background: #95a5a6 !important;
    color: #fff !important;
}

/* Product Price Wrapper */
.product-price-wrapper {
    padding: 0 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.product-price-wrapper .price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.product-price-wrapper .original-price {
    font-size: 0.9rem;
    color: #999;
    text-decoration: line-through;
}

/* Product Actions */
.product-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 1rem 1rem;
    margin-top: 8px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    background: var(--white);
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--secondary-color);
    color: var(--text-color);
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.qty-btn:active {
    transform: scale(0.9);
}

.qty-input {
    width: 40px;
    height: 32px;
    border: none;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    background: var(--white);
    color: var(--text-color);
}

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

/* Hide number input arrows */
.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.qty-input {
    -moz-appearance: textfield;
}

/* Add to Cart Button */
.btn-add-cart {
    flex: 1;
    padding: 8px 12px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-add-cart:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

.btn-add-cart:active {
    transform: scale(0.95);
}

.btn-add-cart i {
    font-size: 1rem;
}

/* Out of Stock Button */
.btn-out-of-stock {
    flex: 1;
    padding: 8px 12px;
    background: #f0f0f0;
    color: #999;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    cursor: not-allowed;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0 1rem 1rem;
}

.btn-out-of-stock i {
    color: #e74c3c;
}

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

/* Responsive */
@media (max-width: 768px) {
    .product-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .quantity-selector {
        justify-content: center;
    }
    
    .btn-add-cart {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .product-price-wrapper .price {
        font-size: 1rem;
    }
    
    .product-price-wrapper .original-price {
        font-size: 0.8rem;
    }
    
    .qty-btn {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }
    
    .qty-input {
        width: 35px;
        height: 28px;
        font-size: 0.8rem;
    }
    
    .btn-add-cart {
        font-size: 0.8rem;
        padding: 6px 10px;
    }
}
/* ========================================
   CHECKOUT ENHANCEMENTS
   ======================================== */
#checkoutForm .btn-primary {
    width: 100%;
    margin-top: 1rem;
    justify-content: center;
}

/* Tracking Number Box */
.tracking-number-box {
    background: var(--secondary-color);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    border: 2px dashed var(--primary-color);
}

.tracking-number-box p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

.tracking-number-box p i {
    color: var(--primary-color);
    margin-right: 6px;
}

.tracking-number-box h3 {
    margin: 5px 0;
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Track Order Form */
.track-order-form {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    max-width: 500px;
    margin: 30px auto;
    border: 1px solid var(--border-color);
}

.track-order-form p {
    color: var(--text-light);
    margin-bottom: 20px;
    text-align: center;
}

.track-order-form p i {
    color: var(--primary-color);
    margin-right: 6px;
}

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

.track-order-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--text-color);
}

.track-order-form label i {
    margin-right: 6px;
    color: var(--text-light);
}

.track-order-form input {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.95rem;
    transition: border-color 0.3s;
    background: #fafafa;
}

.track-order-form input:focus {
    border-color: var(--primary-color);
    outline: none;
    background: var(--white);
}

.track-order-form .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    width: 100%;
    padding: 12px;
}

/* Tracking Actions */
.tracking-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.tracking-actions .btn-primary,
.tracking-actions .btn-secondary,
.tracking-actions .btn-success {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tracking-actions .btn-primary {
    background: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
}

.tracking-actions .btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.tracking-actions .btn-secondary {
    background: #f0f0f0;
    color: var(--text-color);
    border: 2px solid var(--border-color);
}

.tracking-actions .btn-secondary:hover {
    background: #e5e5e5;
    border-color: #bbb;
}

.tracking-actions .btn-success {
    background: var(--success);
    color: var(--white);
    border: 2px solid var(--success);
}

.tracking-actions .btn-success:hover {
    background: #2e7d32;
    border-color: #2e7d32;
}

.track-order-page h1,
.container > h1:first-of-type {
    margin-top: 20px;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .product-detail {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 25px;
    }
    
    .product-image img {
        height: 250px;
    }
    
    .product-info h1 {
        font-size: 1.4rem;
    }
    
    .product-info .price {
        font-size: 1.5rem;
    }
    
    .quantity-selector {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .quantity-selector input {
        width: 70px;
    }
    
    .product-info .btn-primary {
        width: 100%;
        justify-content: center;
    }
    
    .related-products .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .product-detail {
        padding: 15px;
    }
    
    .product-image img {
        height: 200px;
    }
    
    .product-info h1 {
        font-size: 1.2rem;
    }
    
    .product-info .price {
        font-size: 1.3rem;
    }
    
    .description {
        padding: 10px;
        font-size: 0.9rem;
    }
    
    .related-products .product-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
}