/* Renu'd E-commerce - Clean & Minimal Design */

/* Balgin Font */
@font-face {
    font-family: 'Balgin';
    src: url('/renud/public/fonts/6._Balgin-ExtraLight.807704afc4445291840.dfd84f7217944354c266496fdae2253.woff2') format('woff2');
    font-weight: 200;
    font-style: normal;
}

@font-face {
    font-family: 'Balgin';
    src: url('/renud/public/fonts/7._Balgin-ExtraLightItalic.6268d26ca9519.47dec99d7d41206d3049b7988fb2987a.woff2') format('woff2');
    font-weight: 200;
    font-style: italic;
}

:root {
    --primary: #000000;
    --primary-light: #666666;
    --accent: #E86F18;
    --accent-hover: #d35400;
    --background: #ffffff;
    --background-alt: #f5f5f5;
    --text: #000000;
    --text-light: #666666;
    --border: #d0d0d0;
    --error: #000000;
    --success: #000000;
}

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

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--background);
    font-weight: 400;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

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

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.75rem;
    font-weight: 200;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -0.5px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text);
    padding: 0.5rem;
    margin-left: auto;
    z-index: 150;
}

.main-nav {
    display: block;
}

nav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 200;
    transition: color 0.2s;
}

nav a:hover {
    color: var(--accent);
}

nav a.active {
    color: var(--accent);
    font-weight: 500;
}

.cart-icon {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #E86F18;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

.cart-toggle {
    background: none;
    border: none;
    padding: 0;
    color: var(--text);
    font-weight: 200;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    position: relative;
}

.cart-icon-svg {
    width: 34px;
    height: 34px;
}

.cart-toggle:hover {
    color: var(--accent);
}

.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 150;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 380px;
    max-width: 100%;
    background: #ffffff;
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.25s ease;
    z-index: 200;
    display: flex;
    flex-direction: column;
}

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

body.cart-open .cart-overlay {
    opacity: 1;
    visibility: visible;
}

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

.cart-drawer__header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

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

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

.cart-drawer__empty {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.cart-drawer__items {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-drawer__item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
}

.cart-drawer__item-name {
    font-weight: 500;
    display: block;
}

.cart-drawer__item-meta {
    font-size: 0.875rem;
    color: var(--text-light);
}

.cart-drawer__item-price {
    font-weight: 600;
}

.cart-drawer__footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cart-drawer__total {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

body.cart-open {
    overflow: hidden;
}

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

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: #000000;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 1rem;
}

.btn:hover {
    background: #E86F18;
    color: #ffffff;
}

.btn-secondary {
    background: #000000;
    color: #ffffff;
}

.btn-secondary:hover {
    background: #E86F18;
    color: #ffffff;
}

.btn-outline {
    background: transparent;
    color: #000000;
    border: 2px solid #000000;
}

.btn-outline:hover {
    background: transparent;
    color: #000000;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-card {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    background: var(--background-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 0.875rem;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 1.5rem;
}

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

.product-description {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

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

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

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--accent);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* Cart */
.cart-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--background-alt);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.cart-item-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
    background: var(--background);
}

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

.cart-item-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.cart-item-price {
    color: var(--accent);
    font-weight: 600;
    font-size: 1.125rem;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border);
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

.cart-summary {
    background: var(--background-alt);
    padding: 2rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.summary-row.total {
    font-size: 1.5rem;
    font-weight: 700;
    padding-top: 1rem;
    border-top: 2px solid var(--border);
    color: var(--accent);
}

/* Table */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    font-weight: 600;
    background: var(--background-alt);
}

/* Alerts */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

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

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: white;
}

/* Subscription Options */
.subscription-options {
    display: grid;
    gap: 1rem;
    margin: 1.5rem 0;
}

.subscription-option {
    padding: 1.5rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.subscription-option:hover {
    border-color: var(--accent);
}

.subscription-option.selected {
    border-color: var(--accent);
    background: rgba(0, 184, 148, 0.05);
}

.subscription-option input[type="radio"] {
    margin-right: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        flex-direction: row;
        gap: 1rem;
        align-items: center;
    }

    .nav-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--background);
        border-bottom: 1px solid var(--border);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        z-index: 99;
    }

    .main-nav.is-open {
        max-height: 500px;
    }
    
    nav ul {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem 2rem;
        width: 100%;
        align-items: flex-start;
    }

    .logo img {
        height: 56px !important;
    }
     
    .hero h1 {
        font-size: 2rem;
    }
     
    .product-grid {
        grid-template-columns: 1fr;
    }
     
    .cart-item {
        flex-direction: column;
    }

    .container,
    .container-narrow {
        padding: 2rem 1.25rem;
    }

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

    .cart-drawer {
        width: 100%;
    }
}

@media (max-width: 900px) {
    .two-column-grid {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
    }
}

@media (max-width: 640px) {
    .hero-banner-title {
        font-size: 2.2rem !important;
    }

    .hero-banner-subtitle {
        font-size: 1rem !important;
    }
}
