* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #10b981;
    --primary-dark: #059669;
    --secondary: #fbbf24;
    --bg: #ffffff;
    --bg-secondary: #f3f4f6;
    --text: #1f2937;
    --text-muted: #6b7280;
    --border: #e5e7eb;
}

body.dark-mode {
    --bg: #1f2937;
    --bg-secondary: #111827;
    --text: #f3f4f6;
    --text-muted: #9ca3af;
    --border: #374151;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    transition: all 0.3s ease;
}

/* Header */
.header {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    animation: slideDown 0.4s ease-out;
}

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

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--primary);
    font-weight: bold;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-img {
    width: 40px;
    height: 40px;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(10deg); }
}

.logo:hover .logo-img {
    animation: rotateFast 1s linear;
}

@keyframes rotateFast {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (min-width: 640px) {
    .logo-text {
        display: inline;
    }
}

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.theme-toggle,
.cart-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.theme-toggle:hover,
.cart-btn:hover {
    background: var(--border);
}

.cart-count {
    background: var(--primary);
    color: white;
    border-radius: 50%;
    padding: 0.1rem 0.4rem;
    font-weight: bold;
    font-size: 0.75rem;
    margin-left: 0.3rem;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.45) 0%, rgba(5, 150, 105, 0.45) 100%), url('images/Rice.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 2.5rem 0;
    margin-bottom: 3rem;
    border-radius: 1rem;
    margin: 2rem 1rem;
    position: relative;
    overflow: hidden;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
    pointer-events: none;
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background: radial-gradient(circle at 20% 50%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
    }
    50% {
        background: radial-gradient(circle at 80% 50%, rgba(251, 191, 36, 0.05) 0%, transparent 50%);
    }
}

.hero-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
    animation: slideInUp 0.8s ease-out;
}

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

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    animation: fadeInScale 0.8s ease-out 0.2s both;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    letter-spacing: -1px;
    line-height: 1.2;
}

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

.hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: fadeInScale 0.8s ease-out 0.4s both;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

/* Button */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.3s ease;
    z-index: 1;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--primary);
    color: white;
    z-index: 1;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(16, 185, 129, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text);
    border: 1px solid var(--border);
    z-index: 1;
}

.btn-secondary:hover {
    background: var(--border);
    transform: translateY(-2px);
}

/* Categories */
.categories {
    background: var(--bg-secondary);
    padding: 3rem 0;
    margin-bottom: 3rem;
    animation: fadeIn 0.6s ease-out;
}

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

.categories h2 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    animation: slideInUp 0.6s ease-out;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.category-card {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1;
    transition: all 0.3s ease;
    animation: scaleIn 0.5s ease-out backwards;
    border: 3px solid transparent;
}

.category-card.active {
    border-color: var(--primary);
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.4);
}

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

.category-card:nth-child(1) { animation-delay: 0.1s; }
.category-card:nth-child(2) { animation-delay: 0.15s; }
.category-card:nth-child(3) { animation-delay: 0.2s; }
.category-card:nth-child(4) { animation-delay: 0.25s; }
.category-card:nth-child(5) { animation-delay: 0.3s; }
.category-card:nth-child(6) { animation-delay: 0.35s; }
.category-card:nth-child(7) { animation-delay: 0.4s; }
.category-card:nth-child(8) { animation-delay: 0.45s; }

.category-card:hover {
    transform: scale(1.08) translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-card:hover img {
    transform: scale(1.1);
}

.category-card span {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* Products */
.products {
    padding: 3rem 0;
    animation: fadeIn 0.8s ease-out;
}

.products h2 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    animation: slideInUp 0.8s ease-out;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.product-card {
    border: 1px solid var(--border);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    animation: scaleIn 0.6s ease-out backwards;
    position: relative;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.15s; }
.product-card:nth-child(3) { animation-delay: 0.2s; }
.product-card:nth-child(4) { animation-delay: 0.25s; }
.product-card:nth-child(5) { animation-delay: 0.3s; }
.product-card:nth-child(6) { animation-delay: 0.35s; }
.product-card:nth-child(7) { animation-delay: 0.4s; }
.product-card:nth-child(8) { animation-delay: 0.45s; }

.product-card:hover {
    box-shadow: 0 16px 32px rgba(0,0,0,0.12);
    transform: translateY(-8px);
    border-color: var(--primary);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--primary));
    background-size: 200% 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.product-card:hover::before {
    opacity: 1;
    animation: shimmer 1.5s ease infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: -200% 0; }
    50% { background-position: 200% 0; }
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--bg-secondary);
    transition: transform 0.3s ease;
}

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

.product-info {
    padding: 1rem;
}

.product-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.product-category {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.price {
    font-weight: bold;
    color: var(--primary);
    font-size: 1.25rem;
}

.original-price {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.discount {
    background: var(--secondary);
    color: #1f2937;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.rating {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.stars {
    color: #fbbf24;
}

.add-to-cart-btn {
    width: 100%;
    padding: 0.75rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.add-to-cart-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    pointer-events: none;
}

.add-to-cart-btn:active::before {
    width: 300px;
    height: 300px;
}

.add-to-cart-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(16, 185, 129, 0.3);
}

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

/* Contact */
.contact {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(16, 185, 129, 0.05) 100%);
    padding: 3rem 0;
    margin-bottom: 3rem;
    border-radius: 1rem;
    animation: fadeIn 0.8s ease-out;
}

.contact h2 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    text-align: center;
    animation: slideInUp 0.8s ease-out;
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    animation: fadeInScale 0.8s ease-out 0.2s both;
}

@media (max-width: 640px) {
    .contact-info {
        grid-template-columns: 1fr;
    }
}

.contact-info h3 {
    margin-bottom: 1rem;
    color: var(--primary);
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.contact-links {
    display: flex;
    gap: 1rem;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    padding: 2.5rem 0 1.5rem;
    animation: fadeIn 1s ease-out;
    margin-top: 3rem;
    border-top: 3px solid var(--primary);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer {
        padding: 2rem 0 1.5rem;
    }
}

.footer-section {
    animation: slideInUp 0.8s ease-out backwards;
}

.footer-section:nth-child(1) { animation-delay: 0.1s; }
.footer-section:nth-child(2) { animation-delay: 0.2s; }
.footer-section:nth-child(3) { animation-delay: 0.3s; }
.footer-section:nth-child(4) { animation-delay: 0.4s; }

.footer-brand {
    text-align: left;
}

.footer-logo-container {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 12px;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.footer-logo {
    width: 50px;
    height: 50px;
    transition: transform 0.3s ease;
    filter: brightness(0) invert(1);
}

.footer-brand:hover .footer-logo {
    transform: scale(1.1);
}

.footer h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: transform 0.3s ease;
}

.footer h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: white;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 0.8rem;
}

.footer a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.footer a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.footer a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer a:hover::before {
    width: 100%;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    padding: 8px;
    background: rgba(16, 185, 129, 0.2);
    border: 2px solid var(--primary);
    border-radius: 50%;
    color: var(--primary);
    font-size: 1.3rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.social-icon:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.4);
}

/* Contact Info */
.contact-info {
    font-size: 0.95rem;
    line-height: 1.8;
}

.contact-info p {
    margin-bottom: 0.8rem;
}

.contact-info strong {
    color: var(--primary);
}

.contact-info small {
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
}

/* Newsletter Section */
.newsletter-section {
    background: rgba(16, 185, 129, 0.1);
    border: 2px solid var(--primary);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    animation: slideInUp 0.8s ease-out 0.5s backwards;
}

.newsletter-section h4 {
    color: var(--primary);
    border: none;
    margin-bottom: 0.5rem;
}

.newsletter-section p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.newsletter-form input {
    flex: 1;
    min-width: 200px;
    padding: 0.75rem 1rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 6px;
    color: white;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.newsletter-form input::placeholder {
    color: rgba(255,255,255,0.5);
}

.newsletter-form input:focus {
    outline: none;
    background: rgba(255,255,255,0.15);
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.newsletter-form button {
    min-width: 120px;
}

@media (max-width: 768px) {
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
    }
}

/* Footer Bottom */
.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

.footer-links {
    margin-top: 1rem;
    font-size: 0.85rem;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-links span {
    margin: 0 0.5rem;
    color: rgba(255,255,255,0.4);
}

/* Cart Overlay */
.cart-overlay {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    z-index: 999;
    cursor: pointer;
}

.cart-overlay.open {
    display: block;
}

/* Cart Drawer */
.cart-drawer {
    position: fixed;
    right: 0;
    top: 0;
    width: 400px;
    height: 100vh;
    background: var(--bg);
    box-shadow: -2px 0 8px rgba(0,0,0,0.2);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.cart-drawer.open {
    transform: translateX(0);
}

.cart-drawer::before {
    display: none;
}

.cart-drawer.open::before {
    display: none;
}

.cart-drawer.open::before {
    display: block;
}

.cart-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--bg);
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    animation: slideInLeft 0.3s ease-out;
    transition: all 0.3s ease;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.cart-item:hover {
    border-color: var(--primary);
    background: var(--bg-secondary);
}

.cart-item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 0.5rem;
    transition: transform 0.3s ease;
}

.cart-item:hover .cart-item-image {
    transform: scale(1.1);
}

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

.cart-item-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.cart-item-price {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.cart-item-controls {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.cart-item-controls button {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    width: 30px;
    height: 30px;
    border-radius: 0.25rem;
    cursor: pointer;
}

.cart-item-remove {
    background: #fee2e2;
    color: #991b1b;
    border: none;
    padding: 0.5rem;
    border-radius: 0.25rem;
    cursor: pointer;
}

.empty-cart {
    text-align: center;
    color: var(--text-muted);
    padding: 2rem;
}

.cart-footer {
    border-top: 1px solid var(--border);
    padding: 1.5rem;
    background: var(--bg-secondary);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

@media (max-width: 640px) {
    .cart-overlay {
        z-index: 998;
    }

    .cart-overlay.open {
        display: block;
    }

    .cart-drawer {
        width: 100%;
        height: auto;
        max-height: 85vh;
        right: 0;
        top: auto;
        bottom: 0;
        border-radius: 1.5rem 1.5rem 0 0;
        transform: translateY(100%);
        box-shadow: 0 -2px 8px rgba(0,0,0,0.2);
        z-index: 999;
    }
    
    .cart-drawer.open {
        transform: translateY(0);
    }
    
    .cart-content {
        overflow-y: auto;
        max-height: 85vh;
    }
    
    .cart-header {
        padding: 1.2rem;
        position: sticky;
        top: 0;
        z-index: 10;
        background: var(--bg);
        border-bottom: 2px solid var(--border);
    }
    
    .cart-items {
        overflow-y: auto;
        flex: 1;
        padding: 0.75rem 0;
    }
    
    .cart-footer {
        padding: 1.2rem;
        border-top: 2px solid var(--border);
        background: var(--bg);
        position: sticky;
        bottom: 0;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
}
/* Checkout Screen */
.checkout-screen {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    z-index: 2000;
    overflow-y: auto;
}

.checkout-screen.open {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem 0;
}

.checkout-container {
    background: var(--bg);
    border-radius: 1rem;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: slideUp 0.3s ease-out;
}

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

.checkout-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.checkout-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.checkout-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text);
}

.checkout-content {
    padding: 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
}

.checkout-section {
    margin-bottom: 2rem;
}

.checkout-section h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.checkout-items {
    background: var(--bg-secondary);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.checkout-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.checkout-item:last-child {
    border-bottom: none;
}

.checkout-item-title {
    font-weight: 600;
}

.checkout-item-qty {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.checkout-summary {
    background: var(--bg-secondary);
    border-radius: 0.5rem;
    padding: 1rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 0.95rem;
}

.summary-row.total {
    border-top: 2px solid var(--border);
    padding-top: 1rem;
    margin-top: 0.5rem;
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--primary);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    background: var(--bg);
    color: var(--text);
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.payment-option {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-option input {
    margin-right: 1rem;
    cursor: pointer;
}

.payment-option:hover {
    border-color: var(--primary);
    background: var(--bg-secondary);
}

.payment-option input:checked + span {
    font-weight: bold;
}

.payment-option input:checked ~ * {
    color: var(--primary);
}

.checkout-footer {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid var(--border);
    background: var(--bg-secondary);
}

.checkout-footer .btn {
    flex: 1;
}

/* Confirmation Screen */
.confirmation-screen {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: none;
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.confirmation-screen.open {
    display: flex;
}

.confirmation-container {
    background: var(--bg);
    border-radius: 2rem;
    padding: 2rem;
    text-align: center;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
    animation: popIn 0.5s ease-out;
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    70% {
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.confirmation-icon {
    width: 80px;
    height: 80px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto 1rem;
    animation: checkmark 0.6s ease-out 0.2s both;
}

@keyframes checkmark {
    0% {
        transform: scale(0) rotate(-45deg);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1) rotate(0);
    }
}

.confirmation-container h2 {
    margin: 1rem 0;
    color: var(--text);
}

.confirmation-message {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.confirmation-details {
    background: var(--bg-secondary);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: left;
    margin-bottom: 1.5rem;
}

.confirmation-detail-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

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

.confirmation-detail-label {
    color: var(--text-muted);
}

.confirmation-detail-value {
    font-weight: 600;
    color: var(--text);
}

/* Mobile Responsiveness for Checkout & Confirmation */
@media (max-width: 768px) {
    .checkout-screen.open {
        padding: 1rem 0;
    }

    .checkout-container {
        width: 95%;
        max-width: 100%;
        max-height: 90vh;
        border-radius: 1rem 1rem 0 0;
    }

    .checkout-content {
        max-height: 60vh;
        padding: 1rem;
    }

    .checkout-header h2 {
        font-size: 1.2rem;
    }

    .checkout-section {
        margin-bottom: 1.5rem;
    }

    .form-group {
        margin-bottom: 0.75rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.6rem;
        font-size: 16px;
    }

    .checkout-footer {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem;
    }

    .checkout-footer .btn {
        padding: 0.75rem;
        font-size: 0.95rem;
    }

    .confirmation-container {
        width: 95%;
        max-width: 100%;
        padding: 1.5rem;
    }

    .confirmation-icon {
        width: 60px;
        height: 60px;
    }

    .confirmation-container h2 {
        font-size: 1.2rem;
    }

    .confirmation-details {
        margin: 1.5rem 0;
        text-align: left;
        font-size: 0.9rem;
    }
}