@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #F59E0B; /* Golden Yellow */
    --primary-light: #FDE68A;
    --primary-glow: rgba(245, 158, 11, 0.3);
    --secondary: #D97706; /* Darker amber */
    --bg-light: #FFFBEB; /* Premium warm amber-tinted background */
    --bg-white: #FFFFFF;
    --text-dark: #0F172A; /* Slate 900 */
    --text-muted: #64748B; /* Slate 500 */
    --card-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.05);
    --card-shadow-hover: 0 20px 35px -5px rgba(245, 158, 11, 0.15);
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

/* Glassmorphism Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(245, 158, 11, 0.15);
    padding: 1rem 2rem;
    transition: var(--transition);
}

.navbar-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.8rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

.brand-logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-item {
    font-weight: 600;
    color: var(--text-dark);
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition);
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background-color: var(--primary);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-item:hover::after,
.nav-item.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.cart-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: var(--secondary);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.cart-btn:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--primary-glow);
}

.cart-counter {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--text-dark);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

/* Button Components */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.8rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    background-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(217, 119, 6, 0.3);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--secondary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 15px var(--primary-glow);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding: 8rem 2rem 4rem;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 80% 20%, #FEF3C7 0%, var(--bg-light) 100%);
}

.hero-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 4.2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-content h1 span {
    color: var(--primary);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 550px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: float 6s ease-in-out infinite;
}

.hero-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    background: var(--primary-glow);
    filter: blur(80px);
    border-radius: 50%;
    z-index: 0;
}

.hero-image {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 500px;
    border-radius: var(--radius-lg);
    filter: drop-shadow(0 25px 35px rgba(15, 23, 42, 0.2));
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Badges & Tags */
.badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.badge-yellow {
    background-color: var(--primary-light);
    color: var(--secondary);
}

/* Sections */
.section {
    padding: 6rem 2rem;
    max-width: 1280px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Product Cards Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
}

.product-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(245, 158, 11, 0.08);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--primary);
}

.product-image-container {
    height: 250px;
    overflow: hidden;
    position: relative;
    background-color: #FEF3C7;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.product-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
}

.product-details {
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.product-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-meta {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #F1F5F9;
}

.product-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-dark);
}

.product-weight {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Product Detail Page */
.detail-container {
    padding: 8rem 2rem 6rem;
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

.detail-image-box {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(245, 158, 11, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
}

.detail-image-box img {
    max-width: 100%;
    border-radius: var(--radius-md);
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.1));
}

.detail-info {
    display: flex;
    flex-direction: column;
}

.detail-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.detail-price-box {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 2rem;
}

.detail-price {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
}

.detail-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.qty-cart-box {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.qty-input {
    width: 80px;
    padding: 0.85rem;
    border: 2px solid #E2E8F0;
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    outline: none;
    transition: var(--transition);
}

.qty-input:focus {
    border-color: var(--primary);
}

/* Shopping Cart */
.cart-page {
    padding: 8rem 2rem 6rem;
    max-width: 1280px;
    margin: 0 auto;
}

.cart-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.cart-table-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
    padding: 2rem;
    overflow-x: auto;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px;
}

.cart-table th {
    text-align: left;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #F1F5F9;
    color: var(--text-muted);
    font-family: 'Outfit', sans-serif;
}

.cart-table td {
    padding: 1.5rem 0;
    border-bottom: 1px solid #F1F5F9;
}

.cart-item-preview {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.cart-item-preview img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.cart-summary {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
    padding: 2rem;
    height: fit-content;
    border: 1px solid rgba(245, 158, 11, 0.1);
}

.summary-title {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #F1F5F9;
    padding-bottom: 1rem;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.summary-total {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid #F1F5F9;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
}

/* Checkout Form */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 0.85rem 1.2rem;
    border: 2px solid #E2E8F0;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

/* Footer */
footer {
    background-color: var(--text-dark);
    color: white;
    padding: 5rem 2rem 3rem;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 4rem;
}

.footer-brand .brand-logo {
    color: white;
    margin-bottom: 1rem;
}

.footer-desc {
    color: #94A3B8;
    max-width: 400px;
    margin-bottom: 2rem;
}

.footer-title {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.footer-links li {
    margin-bottom: 0.85rem;
}

.footer-links a {
    color: #94A3B8;
    transition: var(--transition);
}

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

.footer-bottom {
    max-width: 1280px;
    margin: 2rem auto 0;
    text-align: center;
    color: #64748B;
    font-size: 0.9rem;
}

/* Toast Alerts */
.toast-alert {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--text-dark);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-left: 4px solid var(--primary);
    animation: slideUp 0.3s ease-out;
}

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

@media (max-width: 768px) {
    .hero-container, .detail-container, .cart-layout, .footer-container {
        grid-template-columns: 1fr;
    }
    .hero { padding-top: 7rem; }
    .hero-content h1 { font-size: 3rem; }
    .nav-links { display: none; }
}
