/* assets/css/style.css - New Excellence Editorial Design System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,700;1,400;1,700&display=swap');

:root {
    --primary: #c14300; /* Deep Orange/Burnt Sienna */
    --primary-hover: #a03800;
    --navy: #050b16;
    --off-white: #f8f8f8;
    --white: #ffffff;
    --text-main: #1a1a1a;
    --text-muted: #666666;
    --border: #e5e5e5;
    --radius-sm: 4px;
    --radius-lg: 12px;
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Playfair Display', serif;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --shadow: 0 4px 20px rgba(0,0,0,0.04);
}

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

body {
    background-color: var(--white);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Header */
header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.search-bar {
    flex: 1;
    max-width: 500px;
    margin: 0 40px;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 12px 20px 12px 45px;
    background: var(--off-white);
    border: none;
    border-radius: 30px;
    font-size: 14px;
    outline: none;
}

.search-bar i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.nav-links {
    display: flex;
    gap: 30px;
    font-size: 14px;
    font-weight: 500;
    text-transform: capitalize;
}

/* Hero Section (Editorial) */
.hero-editorial {
    padding: 80px 0;
    background: var(--white);
}

.hero-editorial h1 {
    font-size: 84px;
    margin-bottom: 24px;
}

.hero-editorial p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 40px;
}

/* Grid Layouts */
.editorial-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 80px;
}

.card-large {
    background: var(--off-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    height: 500px;
}

.card-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    background: linear-gradient(transparent, rgba(0,0,0,0.4));
    color: white;
}

/* Sidebar Sections */
.sidebar-section {
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 30px;
}

.sidebar-title {
    font-size: 20px;
    margin-bottom: 20px;
}

.quick-reorder-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.quick-reorder-item img {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

/* Product Cards (Refined) */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 40px;
}

.product-card-editorial {
    transition: var(--transition);
    padding: 15px;
    border-radius: var(--radius-lg);
    border: 1px solid transparent;
    cursor: pointer;
}

.product-card-editorial:hover {
    transform: translateY(-8px);
    background: var(--white);
    border-color: var(--border);
    box-shadow: 0 15px 35px rgba(0,0,0,0.06);
}

.product-card-editorial:hover h3 {
    color: var(--primary);
}

.product-card-editorial h3 {
    transition: color 0.3s ease;
}

.product-card-img {
    aspect-ratio: 1;
    background: var(--off-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
}

.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 30px;
}

.add-btn-circle {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    cursor: pointer;
}

/* Footer (Navy) */
footer {
    background: var(--navy);
    color: var(--white);
    padding: 100px 0 40px;
    margin-top: 100px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 60px;
}

.footer-col h4 {
    color: var(--white);
    font-family: var(--font-main);
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1.5px;
    margin-bottom: 30px;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    display: block;
    margin-bottom: 15px;
    font-size: 14px;
}

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

/* Custom Buttons */
.btn-editorial {
    padding: 16px 32px;
    background: var(--primary);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
    border: none;
    cursor: pointer;
}

.btn-editorial:hover {
    background: var(--primary-hover);
}

/* Product Detail Page */
.product-single-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    padding: 60px 0;
}

.sticky-details {
    position: sticky;
    top: 140px;
    height: fit-content;
}

.nutritional-info {
    border-top: 1px solid var(--border);
    margin-top: 40px;
    padding-top: 40px;
}

.nutritional-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

/* Checkout */
.checkout-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
}

.checkout-step {
    margin-bottom: 60px;
}

.step-number {
    width: 32px;
    height: 32px;
    background: var(--navy);
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 14px;
}

.checkout-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
}

@media (max-width: 992px) {
    .editorial-grid, .product-single-grid, .checkout-grid {
        grid-template-columns: 1fr;
    }
}

/* Form Styling */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-main);
    margin-bottom: 12px;
}

.form-control {
    width: 100%;
    padding: 16px 20px;
    background: var(--off-white);
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
    font-size: 14px;
    color: var(--text-main);
    transition: var(--transition);
    outline: none;
}

.form-control:focus {
    background: var(--white);
    border-color: var(--text-main);
    box-shadow: 0 0 0 4px rgba(0,0,0,0.03);
}

.form-control::placeholder {
    color: #aaaaaa;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
}

.btn {
    display: inline-block;
    padding: 20px 40px;
    background: var(--navy);
    color: var(--white);
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(193, 67, 0, 0.15);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--off-white);
    border-color: var(--text-main);
    color: var(--text-main);
    transform: none;
    box-shadow: none;
}

/* Tab Navigation (Account Page) */
.tab-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 20px;
}

.tab-link {
    padding: 10px 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.tab-link:hover, .tab-link.active {
    color: var(--text-main);
    background: var(--off-white);
}

/* User Profile Section */
.profile-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 50px;
}
