/* Modern Design System for Siffis */

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

:root {
    --primary-color: #06B6D4;
    --primary-dark: #0891B2;
    --secondary-color: #F97316;
    --secondary-light: #FB923C;
    --dark: #0F172A;
    --dark-light: #1E293B;
    --gray: #64748B;
    --gray-light: #94A3B8;
    --bg-light: #F1F5F9;
    --bg-white: #FFFFFF;
    --success: #10B981;
    --danger: #EF4444;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', 'Roboto', sans-serif;
    line-height: 1.7;
    color: var(--dark);
    background-color: var(--bg-light);
    font-size: 16px;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header & Navigation */
header {
    background: linear-gradient(135deg, var(--bg-white) 0%, #FAFAFA 100%);
    border-bottom: 1px solid #E2E8F0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.navbar {
    padding: 1.25rem 0;
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.logo {
    width: 48px;
    height: 48px;
    filter: drop-shadow(0 2px 4px rgba(6, 182, 212, 0.3));
}

.nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--gray);
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 10px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
    background-color: rgba(6, 182, 212, 0.08);
}

.nav-link.active {
    color: var(--bg-white);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

.cart-link {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: 2px;
    right: 8px;
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
    color: white;
    border-radius: 20px;
    min-width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0 6px;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.4);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 50%, #0E7490 100%);
    color: white;
    padding: 70px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></svg>');
    opacity: 0.3;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h2 {
    font-size: 2.75rem;
    margin-bottom: 16px;
    font-weight: 800;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Hero Large (Home Page) */
.hero-large {
    padding: 120px 24px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 24px;
    font-weight: 900;
    letter-spacing: -1.5px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 40px;
    opacity: 0.95;
    font-weight: 400;
}

.btn-large {
    padding: 18px 48px;
    font-size: 1.15rem;
    box-shadow: 0 8px 24px rgba(249, 115, 22, 0.35);
}

/* Products Section */
.products {
    padding: 80px 24px;
}

.products h3 {
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-align: center;
    color: var(--dark);
    font-weight: 800;
    letter-spacing: -0.5px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 32px;
}

.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid #F1F5F9;
}

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

.product-quantity-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, var(--success), #059669);
    color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    z-index: 10;
    animation: badge-pop 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes badge-pop {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.product-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.product-info {
    padding: 28px;
}

.product-info h4 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--dark);
    font-weight: 700;
}

.product-description {
    color: var(--gray);
    margin-bottom: 24px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.price {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    padding: 12px 28px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
    text-align: center;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
    color: white;
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.4);
}

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

.btn-secondary {
    background: linear-gradient(135deg, var(--gray), var(--gray-light));
    color: white;
    box-shadow: 0 4px 14px rgba(100, 116, 139, 0.25);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--gray-light), var(--gray));
    transform: translateY(-2px);
}

.btn-link {
    background: transparent;
    color: var(--danger);
    padding: 10px 20px;
    box-shadow: none;
}

.btn-link:hover {
    background-color: rgba(239, 68, 68, 0.1);
}

.btn-block {
    width: 100%;
    margin-bottom: 12px;
}

/* Cart Section */
.cart-section {
    padding: 60px 24px;
    min-height: 70vh;
}

.cart-section h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--dark);
    font-weight: 800;
}

.empty-cart {
    text-align: center;
    padding: 80px 24px;
    background: white;
    border-radius: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.empty-cart p {
    font-size: 1.4rem;
    color: var(--gray);
    margin-bottom: 24px;
    font-weight: 500;
}

.cart-content {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 32px;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.cart-item {
    background: white;
    border-radius: 20px;
    padding: 28px;
    display: grid;
    grid-template-columns: 140px 1fr auto auto auto;
    gap: 24px;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #F1F5F9;
    transition: all 0.3s ease;
}

.cart-item:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.cart-item img {
    width: 140px;
    height: 90px;
    object-fit: cover;
    border-radius: 12px;
}

.item-details h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--dark);
    font-weight: 700;
}

.item-price {
    color: var(--gray);
    font-weight: 600;
    font-size: 1rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg-light);
    padding: 10px 16px;
    border-radius: 12px;
}

.qty-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.qty-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

.quantity {
    font-weight: 700;
    min-width: 32px;
    text-align: center;
    font-size: 1.1rem;
    color: var(--dark);
}

.item-total {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.remove-btn {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.6rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 400;
}

.remove-btn:hover {
    background: var(--danger);
    color: white;
    transform: rotate(90deg);
}

/* Cart Summary */
.cart-summary {
    background: white;
    border-radius: 20px;
    padding: 36px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #F1F5F9;
    height: fit-content;
    position: sticky;
    top: 120px;
}

.cart-summary h3 {
    font-size: 1.75rem;
    margin-bottom: 24px;
    color: var(--dark);
    font-weight: 800;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid #F1F5F9;
    font-size: 1.05rem;
    color: var(--gray);
}

.summary-row span:last-child {
    font-weight: 700;
    color: var(--dark);
}

.summary-row.total {
    border-bottom: none;
    border-top: 2px solid var(--primary-color);
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 12px;
    padding-top: 24px;
}

/* Home Page Sections */
.content-section {
    padding: 100px 24px;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 60px;
    color: var(--dark);
    font-weight: 900;
    letter-spacing: -1px;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.about-card {
    text-align: center;
    padding: 40px;
    border-radius: 20px;
    background: var(--bg-light);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
    background: white;
}

.about-icon {
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
    transition: transform 0.4s ease;
}

.about-card:hover .about-icon {
    transform: scale(1.1) rotate(5deg);
}

.about-card h3 {
    font-size: 1.6rem;
    margin-bottom: 16px;
    color: var(--dark);
    font-weight: 800;
}

.about-card p {
    color: var(--gray);
    line-height: 1.8;
    font-size: 1rem;
}

/* Features Section */
.features-section {
    padding: 100px 24px;
    background: linear-gradient(135deg, #FAFAFA 0%, var(--bg-light) 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-top: 50px;
}

.feature-item {
    background: white;
    padding: 36px;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.feature-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--secondary-color);
}

.feature-number {
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.15;
    margin-bottom: 16px;
    letter-spacing: -2px;
}

.feature-item h4 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--dark);
    font-weight: 800;
}

.feature-item p {
    color: var(--gray);
    line-height: 1.7;
    font-size: 1rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-light) 50%, #FDBA74 100%);
    color: white;
    padding: 100px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></svg>');
    opacity: 0.2;
}

.cta-section .container {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    font-size: 3rem;
    margin-bottom: 24px;
    font-weight: 900;
    letter-spacing: -1px;
}

.cta-section p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .btn-primary {
    background: white;
    color: var(--secondary-color);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.cta-section .btn-primary:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
    color: rgba(255, 255, 255, 0.8);
    padding: 40px 24px;
    text-align: center;
    margin-top: 80px;
}

footer p {
    font-size: 0.95rem;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .cart-content {
        grid-template-columns: 1fr;
    }

    .cart-summary {
        position: static;
    }
}

@media (max-width: 768px) {
    .nav-brand {
        font-size: 1.4rem;
    }

    .logo {
        width: 40px;
        height: 40px;
    }

    .navbar .container {
        flex-direction: column;
        gap: 16px;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.15rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .cart-item {
        grid-template-columns: 120px 1fr;
        gap: 16px;
        position: relative;
    }

    .item-details {
        grid-column: 2;
    }

    .quantity-controls {
        grid-column: 1 / -1;
        justify-content: center;
    }

    .item-total {
        grid-column: 1 / -1;
        text-align: center;
    }

    .item-remove {
        position: absolute;
        top: 16px;
        right: 16px;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .about-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .cta-section h2 {
        font-size: 2.2rem;
    }

    .cta-section p {
        font-size: 1.1rem;
    }
}
