/* =====================================================
   CUSTOMER STORE - MAIN CSS
   ===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --light-gray: #ecf0f1;
    --dark-gray: #34495e;
    --border-color: #bdc3c7;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --error-color: #e74c3c;
    --text-color: #333;
    --text-light: #666;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fafafa;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== NAVIGATION BAR ===== */
.navbar {
    background: white;
    border-bottom: 1px solid var(--light-gray);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.navbar-brand {
    flex: 0 0 auto;
}

.navbar-brand a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 22px;
    font-weight: bold;
    color: var(--primary-color);
    transition: var(--transition);
}

.navbar-brand a:hover {
    color: var(--secondary-color);
}

.navbar-brand .logo {
    height: 50px;
    width: auto;
}

.navbar-menu {
    display: flex;
    gap: 40px;
}

.navbar-nav {
    list-style: none;
    display: flex;
    gap: 40px;
}

.navbar-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
}

.navbar-nav a:hover {
    color: var(--primary-color);
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-bar {
    display: flex;
    align-items: center;
    background: var(--light-gray);
    border-radius: var(--border-radius);
    padding: 8px 12px;
    gap: 10px;
}

.search-bar input {
    border: none;
    background: none;
    outline: none;
    width: 200px;
    font-size: 14px;
}

.search-bar button {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    font-size: 16px;
}

.cart-link {
    position: relative;
    text-decoration: none;
    color: var(--text-color);
    font-size: 24px;
    transition: var(--transition);
}

.cart-link:hover {
    color: var(--primary-color);
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-color);
}

/* ===== ALERTS ===== */
.alert {
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 15px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.alert-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    margin-left: auto;
    opacity: 0.7;
}

.alert-close:hover {
    opacity: 1;
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 100px 20px;
    text-align: center;
    margin-bottom: 60px;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    text-align: center;
    align-items: center;
    gap: 8px;
    display: inline-flex;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.btn-secondary {
    background: var(--light-gray);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: white;
    border-color: var(--primary-color);
}

.btn-danger {
    background: var(--error-color);
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-small {
    padding: 8px 16px;
    font-size: 12px;
}

.btn-large {
    padding: 15px 30px;
    font-size: 16px;
    width: 100%;
}

.btn-disabled {
    background: var(--border-color);
    cursor: not-allowed;
    opacity: 0.6;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ===== FEATURED SECTION ===== */
.featured-section {
    background: white;
    padding: 60px 20px;
    margin-bottom: 60px;
}

.featured-section h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
    color: var(--text-color);
}

/* ===== PRODUCTS GRID ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.product-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 250px;
    background: var(--light-gray);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-gray);
    color: var(--text-light);
    font-weight: 600;
}

.discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent-color);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 12px;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--text-color);
    min-height: 40px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.price, .normal-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
}

.old-price {
    font-size: 14px;
    color: var(--text-light);
    text-decoration: line-through;
}

.promo-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-color);
}

.stock {
    font-size: 12px;
    margin-bottom: 15px;
}

.in-stock {
    color: var(--success-color);
    font-weight: 600;
}

.out-of-stock {
    color: var(--error-color);
    font-weight: 600;
}

/* ===== CATEGORIES SECTION ===== */
.categories-section {
    padding: 60px 20px;
    background: var(--light-gray);
    margin-bottom: 60px;
}

.categories-section h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.category-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: var(--transition);
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.category-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

.category-card:hover img {
    transform: scale(1.05);
}

.category-card h3 {
    padding: 20px 15px 10px;
    font-size: 18px;
}

.category-card .btn {
    margin: 0 15px 15px;
    width: calc(100% - 30px);
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.cta-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--secondary-color);
    color: white;
    padding: 60px 20px 20px;
    margin-top: 80px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4,
.footer-section h5 {
    margin-bottom: 20px;
    font-size: 16px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: white;
}

.footer-section p {
    margin-bottom: 10px;
    font-size: 14px;
}

.social-links {
    display: flex;
    gap: 15px;
    font-size: 20px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 14px;
}

/* ===== PRODUCTS PAGE ===== */
.products-page {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    padding: 40px 0;
}

.filters-sidebar {
    background: white;
    padding: 20px;
    border-radius: var(--border-radius);
    height: fit-content;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.filters-sidebar h3 {
    margin-bottom: 20px;
    font-size: 18px;
}

.filter-group {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--light-gray);
}

.filter-group h4 {
    font-size: 14px;
    margin-bottom: 12px;
    color: var(--text-color);
}

.filter-options label {
    display: block;
    margin-bottom: 10px;
    cursor: pointer;
    font-size: 14px;
}

.filter-options input[type="radio"] {
    margin-right: 8px;
    cursor: pointer;
}

.filter-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
}

.section-header {
    margin-bottom: 30px;
}

.section-header h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.result-count {
    color: var(--text-light);
    font-size: 14px;
}

.no-products {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: var(--border-radius);
}

.no-products i {
    font-size: 48px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.no-products p {
    font-size: 18px;
    color: var(--text-light);
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--light-gray);
}

.page-info {
    margin: 0 15px;
    font-weight: 600;
}

/* ===== PRODUCT DETAIL PAGE ===== */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    padding: 40px 0;
    align-items: start;
}

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.main-image {
    width: 100%;
    height: 500px;
    background: var(--light-gray);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-images {
    display: flex;
    gap: 15px;
    overflow-x: auto;
}

.thumbnail {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.thumbnail:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.product-details h1 {
    font-size: 32px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.breadcrumb {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.category {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 20px;
}

.price-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--light-gray);
}

.price-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.discount-label {
    background: var(--accent-color);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.description {
    margin: 30px 0;
}

.description h3 {
    margin-bottom: 15px;
    font-size: 18px;
}

.description p {
    color: var(--text-light);
    line-height: 1.8;
}

.product-meta {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--light-gray);
}

.product-meta p {
    margin-bottom: 10px;
    color: var(--text-light);
}

.stock-status {
    margin-bottom: 25px;
    font-weight: 600;
}

.add-to-cart-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.quantity-selector {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quantity-selector label {
    font-weight: 600;
}

.quantity-selector input {
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
}

.related-products {
    padding: 60px 0;
    border-top: 1px solid var(--light-gray);
}

.related-products h2 {
    margin-bottom: 30px;
    font-size: 28px;
}

/* ===== CART PAGE ===== */
.cart-page {
    padding: 40px 0;
}

.empty-cart {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: var(--border-radius);
}

.empty-cart i {
    font-size: 64px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.empty-cart p {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 30px;
}

.cart-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
}

.cart-items {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table thead {
    background: var(--light-gray);
}

.cart-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

.cart-table td {
    padding: 15px;
    border-bottom: 1px solid var(--light-gray);
}

.product-cell {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.product-info a {
    color: var(--primary-color);
    text-decoration: none;
}

.product-info a:hover {
    text-decoration: underline;
}

.quantity-form input[type="number"] {
    width: 60px;
    padding: 5px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.cart-summary {
    background: white;
    padding: 20px;
    border-radius: var(--border-radius);
    height: fit-content;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.cart-summary h2 {
    font-size: 20px;
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 14px;
}

.summary-row.total {
    border-top: 2px solid var(--light-gray);
    padding-top: 15px;
    margin-top: 15px;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
}

.cart-summary .btn {
    width: 100%;
    margin-bottom: 10px;
}

/* ===== CHECKOUT PAGE ===== */
.checkout-page {
    padding: 40px 0;
}

.checkout-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 50px;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
}

.step-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--light-gray);
    font-weight: 700;
    font-size: 16px;
    color: var(--text-light);
    border: 2px solid transparent;
}

.progress-step.active .step-number {
    background: var(--primary-color);
    color: white;
}

.step-label {
    font-size: 12px;
    color: var(--text-light);
    text-align: center;
    width: 80px;
}

.progress-line {
    flex: 0 0 60px;
    height: 2px;
    background: var(--light-gray);
    margin: 0;
}

.progress-line.active {
    background: var(--primary-color);
}

.checkout-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
}

.checkout-main {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.checkout-step h2 {
    font-size: 24px;
    margin-bottom: 25px;
}

.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.payment-option {
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius);
    padding: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.payment-option:has(input:checked) {
    border-color: var(--primary-color);
    background: rgba(52, 152, 219, 0.05);
}

.payment-label {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    cursor: pointer;
}

.payment-label input[type="radio"] {
    margin-top: 5px;
    cursor: pointer;
}

.payment-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    margin-bottom: 8px;
}

.payment-header i {
    font-size: 20px;
    color: var(--primary-color);
}

.payment-description {
    font-size: 12px;
    color: var(--text-light);
}

.checkout-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.checkout-actions .btn {
    flex: 1;
    margin: 0;
}

.order-review {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--light-gray);
}

.review-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.review-table th {
    background: var(--light-gray);
    padding: 12px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

.review-table td {
    padding: 12px;
    border-bottom: 1px solid var(--light-gray);
}

.order-details {
    margin-bottom: 30px;
    padding: 20px;
    background: var(--light-gray);
    border-radius: var(--border-radius);
}

.order-details h3 {
    margin-bottom: 15px;
    font-size: 16px;
}

.payment-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f0f8ff;
    border-radius: var(--border-radius);
}

.payment-section h3 {
    margin-bottom: 10px;
}

.qr-code-container {
    text-align: center;
    margin: 30px 0;
    padding: 30px;
    background: white;
    border-radius: var(--border-radius);
}

.qr-code-container img {
    max-width: 300px;
    height: auto;
    margin-bottom: 20px;
}

.amount-to-pay {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
}

.receipt-upload {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--light-gray);
}

.receipt-upload h4 {
    margin-bottom: 10px;
}

.upload-instruction {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.file-input-wrapper {
    position: relative;
    margin-bottom: 15px;
}

.file-input-wrapper input[type="file"] {
    display: none;
}

.file-input-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    background: var(--light-gray);
    transition: var(--transition);
}

.file-input-label:hover {
    border-color: var(--primary-color);
    background: rgba(52, 152, 219, 0.05);
}

.file-input-label i {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.file-info {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.checkout-sidebar {
    background: white;
    padding: 20px;
    border-radius: var(--border-radius);
    height: fit-content;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 100px;
}

.checkout-sidebar h3 {
    margin-bottom: 20px;
    font-size: 18px;
}

.summary-items {
    margin-bottom: 20px;
    max-height: 300px;
    overflow-y: auto;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--light-gray);
}

.summary-item span:last-child {
    font-weight: 600;
}

/* ===== ORDER CONFIRMATION PAGE ===== */
.order-confirmation {
    padding: 40px 0;
}

.confirmation-header {
    text-align: center;
    margin-bottom: 50px;
}

.success-icon {
    font-size: 64px;
    color: var(--success-color);
    margin-bottom: 20px;
    animation: scaleUp 0.5s ease;
}

@keyframes scaleUp {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.confirmation-header h1 {
    font-size: 36px;
    color: var(--success-color);
    margin-bottom: 10px;
}

.confirmation-message {
    font-size: 16px;
    color: var(--text-light);
}

.order-info-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.info-card {
    background: white;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.info-card h3 {
    margin-bottom: 20px;
    font-size: 18px;
    border-bottom: 2px solid var(--light-gray);
    padding-bottom: 15px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 14px;
}

.info-row .label {
    font-weight: 600;
    color: var(--text-light);
}

.info-row .value {
    color: var(--text-color);
}

.status-pending {
    color: var(--warning-color);
    font-weight: 600;
}

.status-verified {
    color: var(--success-color);
    font-weight: 600;
}

.status-failed {
    color: var(--error-color);
    font-weight: 600;
}

.order-items-section {
    background: white;
    padding: 25px;
    border-radius: var(--border-radius);
    margin-bottom: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.order-items-section h2 {
    margin-bottom: 20px;
    font-size: 20px;
}

.order-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.order-table th {
    background: var(--light-gray);
    padding: 12px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

.order-table td {
    padding: 12px;
    border-bottom: 1px solid var(--light-gray);
}

.order-totals {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
    padding-top: 20px;
    border-top: 2px solid var(--light-gray);
}

.total-row {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    font-size: 14px;
    margin-bottom: 8px;
}

.total-row.total {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 15px;
}

.payment-info-section {
    background: white;
    padding: 25px;
    border-radius: var(--border-radius);
    margin-bottom: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.status-card {
    background: #fffbea;
    border-left: 4px solid var(--warning-color);
    padding: 20px;
    border-radius: 4px;
}

.status-message {
    margin-bottom: 15px;
    font-weight: 600;
}

.status-description {
    color: var(--text-light);
    margin-bottom: 10px;
}

.status-timeline {
    color: var(--text-light);
    font-size: 14px;
}

.next-steps-section {
    background: white;
    padding: 25px;
    border-radius: var(--border-radius);
    margin-bottom: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.next-steps-section h2 {
    margin-bottom: 25px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.step-item {
    text-align: center;
    padding: 20px;
    background: var(--light-gray);
    border-radius: var(--border-radius);
}

.step-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 18px;
    margin: 0 auto 15px;
}

.step-item h4 {
    margin-bottom: 10px;
}

.step-item p {
    font-size: 14px;
    color: var(--text-light);
}

.confirmation-actions {
    text-align: center;
}

.confirmation-note {
    margin-bottom: 20px;
    color: var(--text-light);
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.action-buttons .btn {
    margin: 0;
    width: auto;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .checkout-content,
    .cart-content {
        grid-template-columns: 1fr;
    }
    
    .checkout-sidebar,
    .cart-summary {
        position: static;
    }
    
    .product-detail {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .order-info-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .navbar-menu {
        display: none;
    }
    
    .hamburger {
        display: block;
    }
    
    .navbar-container {
        gap: 15px;
    }
    
    .search-bar {
        display: none;
    }
    
    .search-bar input {
        width: 100px;
    }
    
    .products-page {
        grid-template-columns: 1fr;
    }
    
    .filters-sidebar {
        display: none;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .product-image {
        height: 200px;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .featured-section h2,
    .categories-section h2 {
        font-size: 28px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-detail {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .checkout-progress {
        flex-wrap: wrap;
    }
    
    .progress-line {
        display: none;
    }
    
    .progress-step {
        flex: 1;
        min-width: 80px;
    }
    
    .order-info-section {
        grid-template-columns: 1fr;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-buttons .btn {
        width: 100%;
    }
    
    .cart-table {
        font-size: 12px;
    }
    
    .cart-table th,
    .cart-table td {
        padding: 8px;
    }
    
    .product-cell {
        flex-direction: column;
    }
    
    .cart-image {
        width: 50px;
        height: 50px;
    }
    
    .thumbnail {
        width: 80px;
        height: 80px;
    }
    
    .main-image {
        height: 350px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-card {
        border-radius: 6px;
    }
    
    .product-image {
        height: 150px;
    }
    
    .hero-content h1 {
        font-size: 24px;
    }
    
    .hero-content p {
        font-size: 14px;
    }
    
    .featured-section h2,
    .categories-section h2,
    .checkout-page h1,
    .cart-page h1 {
        font-size: 22px;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .checkout-form,
    .payment-methods {
        gap: 15px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 10px;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .btn-large {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .btn {
        padding: 10px 15px;
        font-size: 12px;
    }
    
    .summary-row {
        font-size: 12px;
    }
    
    .info-card {
        padding: 15px;
    }
    
    .info-row {
        font-size: 12px;
    }
    
    .navbar-container {
        padding: 12px 15px;
        gap: 10px;
    }
    
    .navbar-brand a {
        font-size: 18px;
    }
}
