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

:root {
    --bg: #f6efe7;
    --surface: #fffaf5;
    --surface-soft: #f2e9dd;
    --ink: #2d2119;
    --muted: #6f5b4b;
    --line: #e3d5c5;
    --primary: #7f1d1d;
    --primary-2: #991b1b;
    --primary-deep: #5c1212;
    --accent: #c59a63;
    --success: #3f6b4c;
    --danger: #b91c1c;
    --shadow: 0 12px 28px rgba(45, 33, 25, 0.12);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Manrope', 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--ink);
    background: radial-gradient(circle at top left, #fffdf9 0%, var(--bg) 55%, #f3e7d8 100%);
}

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

/* Navigation */
.navbar {
    background: #2b1712;
    color: white;
    padding: 14px 0;
    border-bottom: 1px solid rgba(197, 154, 99, 0.45);
    box-shadow: 0 6px 18px rgba(43, 23, 18, 0.35);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 22px;
    padding: 0 20px;
    max-width: 1200px;
}

.nav-brand {
    padding: 0;
    display: flex;
    align-items: center;
}

.nav-brand h1 {
    font-size: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 11px;
}

.logo-mark {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #3b241b;
    border: 1px solid #c59a63;
    color: #f2dcc1;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0;
    box-shadow: none;
}

.logo-text {
    display: inline-flex;
    flex-direction: column;
    line-height: 1.05;
}

.logo-title {
    font-size: 16px;
    font-weight: 800;
    color: white;
    letter-spacing: 0.4px;
}

.logo-subtitle {
    margin-top: 2px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    color: #cfb08a;
}

.nav-links {
    display: flex;
    gap: 4px;
    align-items: center;
    flex-wrap: nowrap;
    margin-left: auto;
}

.nav-links a {
    color: #f2e7d8;
    text-decoration: none;
    padding: 8px 12px;
    transition: all 0.2s ease;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    border: 1px solid transparent;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}

.nav-links a:hover {
    color: #f8ecd9;
    border-bottom-color: #c59a63;
    background: rgba(255, 255, 255, 0.03);
    transform: none;
    box-shadow: none;
}

.nav-links a.active {
    color: #ffffff;
    border-bottom-color: #c59a63;
}

.nav-links a.btn-signin {
    border: 1px solid #9f7a51;
    border-bottom: 1px solid #9f7a51;
    border-radius: 8px;
    margin-left: 8px;
}

.nav-links a.btn-signin:hover {
    background: rgba(197, 154, 99, 0.1);
    color: #fff4e7;
    border-color: #c59a63;
}

.nav-links a.btn-register {
    margin-left: 6px;
    background: #c59a63 !important;
    color: #2d1b12 !important;
    font-weight: 700;
    border: 1px solid #d7b58a !important;
    border-bottom: 1px solid #d7b58a !important;
    border-radius: 8px;
    box-shadow: none;
}

.nav-links a.btn-register:hover {
    background: #d7b58a !important;
    color: #2d1b12 !important;
    transform: none;
}

.cart-badge {
    background: #c59a63;
    color: #2d1b12;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    margin-left: 4px;
    border: 1px solid #d7b58a;
}

/* Hero Section */
.hero {
    background: linear-gradient(130deg, #3f1616 0%, #5a231f 52%, #74472b 100%);
    color: white;
    padding: 95px 20px;
    text-align: center;
}

.section-intro {
    color: #efd6b8;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 10px;
}

.hero-content h2 {
    font-size: 42px;
    margin-bottom: 16px;
    font-weight: 700;
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 28px;
    opacity: 0.95;
    font-weight: 400;
}

.btn-hero {
    display: inline-block;
    background: linear-gradient(135deg, #e6b06f 0%, #c77b32 100%);
    color: #fff7ea;
    padding: 14px 36px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.2s;
    border: none;
    box-shadow: 0 8px 16px rgba(111, 46, 22, 0.35);
}

.btn-hero:hover {
    background: linear-gradient(135deg, #efc08d 0%, #cf8740 100%);
    box-shadow: 0 12px 20px rgba(111, 46, 22, 0.4);
    transform: translateY(-1px);
}

/* Filter Section */
.filter-section {
    background: var(--surface);
    padding: 18px 0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    border-bottom: 1px solid var(--line);
}

.filter-form {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-group, .search-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.filter-group label {
    font-weight: 600;
    font-size: 14px;
    color: var(--ink);
}

.filter-group select, .search-group input {
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 14px;
    background: var(--surface);
    transition: all 0.2s;
}

.filter-group select:hover, .search-group input:hover {
    border-color: var(--primary-2);
}

.filter-group select:focus, .search-group input:focus {
    outline: none;
    border-color: var(--primary-2);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.search-group {
    flex: 1;
}

.search-group input {
    flex: 1;
    min-width: 200px;
}

.search-group button {
    padding: 10px 24px;
    background: var(--primary);
    color: #fff7ea;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
}

.search-group button:hover {
    background: var(--primary-2);
}

.about-section,
.contact-section {
    padding: 72px 0;
    background: transparent;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 28px;
    align-items: start;
}

.about-text,
.contact-card,
.stat-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
}

.about-text {
    padding: 26px;
}

.about-text h2,
.contact-section h2 {
    font-size: 30px;
    margin-bottom: 14px;
    line-height: 1.2;
}

.about-text p {
    color: var(--muted);
    margin-bottom: 10px;
}

.stats-grid {
    display: grid;
    gap: 14px;
}

.stat-card {
    padding: 20px;
    text-align: center;
}

.stat-card h3 {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 4px;
}

.stat-card p {
    color: var(--muted);
    font-size: 14px;
}

.contact-section h2 {
    margin-bottom: 18px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.contact-card {
    padding: 20px;
}

.contact-card h3 {
    margin-bottom: 8px;
    color: var(--primary-deep);
}

.contact-card p {
    margin-bottom: 6px;
    color: var(--muted);
}

/* Products Section */
.products-section {
    padding: 40px 0;
    background: transparent;
}

.products-section h2 {
    font-size: 28px;
    margin-bottom: 24px;
    color: var(--ink);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    overflow: visible;
}

.product-card {
    background: var(--surface);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--line);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    will-change: transform;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: #c5d2e7;
}

.product-image {
    position: relative;
    height: 220px;
    background: var(--surface-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.placeholder-image {
    font-size: 64px;
    line-height: 1;
    user-select: none;
    pointer-events: none;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #CC0C39;
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.product-info {
    padding: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    font-size: 16px;
    margin-bottom: 4px;
    color: var(--ink);
    font-weight: 600;
    line-height: 1.3;
}

.product-category {
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 8px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.product-description {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 8px;
    line-height: 1.4;
    flex-grow: 1;
}

.product-origin {
    color: var(--success);
    font-size: 12px;
    margin-bottom: 12px;
    font-weight: 600;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.product-price {
    font-size: 21px;
    font-weight: 700;
    color: var(--ink);
}

.product-price::after {
    content: ' €';
    font-size: 14px;
    font-weight: 600;
}

.add-to-cart-form {
    display: flex;
    gap: 6px;
    align-items: center;
}

.quantity-input {
    width: 50px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 8px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
}

.btn-add-cart, .btn-login-required {
    padding: 8px 16px;
    background: var(--primary);
    color: #eff6ff;
    border: 1px solid var(--primary);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-add-cart:hover {
    background: var(--primary-2);
    border-color: var(--primary-2);
}

.btn-login-required {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-login-required:hover {
    background: var(--primary-2);
    border-color: var(--primary-2);
}

.no-products {
    text-align: center;
    font-size: 16px;
    color: var(--muted);
    padding: 60px 20px;
    background: var(--surface);
    border-radius: 12px;
    margin: 20px 0;
}

/* Cart Section */
.cart-section {
    padding: 40px 0;
    min-height: calc(100vh - 200px);
    background: transparent;
}

.cart-section h1 {
    font-size: 28px;
    margin-bottom: 24px;
    color: var(--ink);
    font-weight: 700;
}

.alert-success {
    background: #0f766e;
    color: white;
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-error {
    background: #b91c1c;
    color: white;
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.empty-cart {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 12px;
}

.empty-cart h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #7f8c8d;
}

.btn-primary {
    display: inline-block;
    padding: 12px 32px;
    background: var(--primary);
    color: #eff6ff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s;
    border: 1px solid var(--primary);
    font-size: 14px;
}

.btn-primary:hover {
    background: var(--primary-2);
    border-color: var(--primary-2);
}

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

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

.cart-item {
    background: var(--surface);
    padding: 20px;
    border-radius: 12px;
    display: grid;
    grid-template-columns: 100px 2fr 1fr 1fr auto;
    gap: 20px;
    align-items: center;
    border: 1px solid var(--line);
}

.item-image {
    width: 100px;
    height: 100px;
    background: #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.item-image .placeholder {
    font-size: 48px;
}

.item-details h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.item-category {
    color: #7f8c8d;
    font-size: 14px;
    text-transform: uppercase;
}

.item-price {
    font-weight: 700;
    color: var(--ink);
    font-size: 18px;
}

.quantity-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-update {
    padding: 8px 16px;
    background: #e2e8f0;
    color: var(--ink);
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
}

.btn-update:hover {
    background: #cbd5e1;
}

.item-total {
    text-align: right;
}

.total-label {
    font-size: 14px;
    color: #7f8c8d;
}

.total-price {
    font-size: 20px;
    font-weight: bold;
    color: #2c3e50;
}

.btn-remove {
    background: transparent;
    color: #007185;
    border: none;
    padding: 8px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: underline;
    font-weight: 500;
}

.btn-remove:hover {
    color: #C7511F;
}

.cart-summary {
    background: var(--surface);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--line);
    height: fit-content;
    position: sticky;
    top: 80px;
}

.cart-summary h2 {
    margin-bottom: 20px;
    color: #2c3e50;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #ecf0f1;
}

.summary-row.total {
    border-bottom: none;
    border-top: 2px solid #2c3e50;
    font-size: 20px;
    font-weight: bold;
    color: #2c3e50;
}

.shipping-info {
    margin-top: 15px;
    padding: 15px;
    background: #fff3cd;
    border-radius: 6px;
    text-align: center;
    font-size: 14px;
}

.shipping-info.success {
    background: #d4edda;
    color: #155724;
}

.btn-checkout {
    display: block;
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: #eff6ff;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    margin-top: 16px;
    transition: all 0.2s;
    border: 1px solid var(--primary);
    font-size: 14px;
}

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

.btn-continue {
    display: block;
    width: 100%;
    padding: 10px;
    background: #f8fafc;
    color: var(--ink);
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    margin-top: 8px;
    transition: all 0.2s;
    border: 1px solid var(--line);
    font-size: 13px;
}

.btn-continue:hover {
    background: #eef2ff;
}

/* Checkout Section */
.checkout-section {
    padding: 40px 0;
}

.checkout-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.checkout-form {
    background: var(--surface);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--line);
}

.checkout-form h2 {
    margin-bottom: 20px;
    color: var(--ink);
    font-size: 18px;
    font-weight: 700;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
    color: var(--ink);
    font-size: 13px;
}

.required {
    color: var(--danger);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-2);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.payment-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 15px;
}

.payment-option {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.payment-option:hover {
    border-color: var(--primary-2);
    background: #eff6ff;
}

.payment-option input[type="radio"] {
    margin-right: 10px;
}

.btn-order {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: #eff6ff;
    border: 1px solid var(--primary);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 24px;
    transition: all 0.2s;
}

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

.checkout-summary {
    background: var(--surface);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--line);
    height: fit-content;
    position: sticky;
    top: 80px;
}

.order-items {
    margin-bottom: 20px;
}

.order-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #ecf0f1;
    font-size: 14px;
}

.summary-totals {
    margin-top: 20px;
}

/* Success Section */
.success-section {
    padding: 60px 0;
    min-height: calc(100vh - 200px);
}

.success-box {
    background: var(--surface);
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--line);
    text-align: center;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #067D62;
    color: white;
    font-size: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.success-box h1 {
    font-size: 24px;
    margin-bottom: 16px;
    color: var(--ink);
    font-weight: 700;
}

.success-message {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 32px;
}

.order-details {
    background: var(--surface-soft);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    text-align: left;
    border: 1px solid var(--line);
}

.order-details h2 {
    margin-bottom: 16px;
    color: var(--ink);
    font-size: 18px;
    font-weight: 700;
}

.order-details p {
    margin-bottom: 10px;
}

.next-steps {
    text-align: left;
    margin-bottom: 30px;
}

.next-steps h3 {
    margin-bottom: 12px;
    color: var(--ink);
    font-size: 16px;
    font-weight: 700;
}

.next-steps ul {
    list-style: none;
    padding: 0;
}

.next-steps li {
    padding: 10px 0;
    border-bottom: 1px solid #ecf0f1;
}

/* Footer */
.footer {
    background: linear-gradient(120deg, #2b1712 0%, #4a241b 100%);
    color: white;
    padding: 40px 0 20px;
    margin-top: 60px;
}

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

.footer-section h3 {
    margin-bottom: 15px;
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 700;
}

.footer-section p {
    margin-bottom: 8px;
    color: #e8d7c2;
    font-size: 14px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #6f4c34;
    color: #e8d7c2;
    font-size: 13px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    padding: 20px 0;
}

.page-btn {
    padding: 10px 16px;
    background: var(--surface);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    min-width: 44px;
    text-align: center;
}

.page-btn:hover:not(.active) {
    background: #eef2ff;
    border-color: #c7d2fe;
}

.page-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    cursor: default;
}

/* Login & Register Pages */
.login-container {
    max-width: 360px;
    margin: 60px auto;
    padding: 28px;
    background: var(--surface);
    border-radius: 14px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.register-container {
    max-width: 540px;
    margin: 60px auto;
    padding: 28px;
    background: var(--surface);
    border-radius: 14px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.login-header, .register-header {
    text-align: center;
    margin-bottom: 24px;
}

.login-header h1, .register-header h1 {
    font-size: 28px;
    color: var(--ink);
    margin-bottom: 8px;
    font-weight: 400;
}

.login-header p, .register-header p {
    color: var(--muted);
    font-size: 14px;
}

.error {
    background: #FFF0F0;
    color: #C40000;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 13px;
    border: 1px solid #FED8D8;
}

.success {
    background: #E8F5E9;
    color: #1B5E20;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 13px;
    border: 1px solid #C8E6C9;
}

.btn-login, .btn-register {
    width: 100%;
    padding: 11px;
    background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
    color: #eff6ff;
    border: 1px solid #1d4ed8;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-login:hover, .btn-register:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
}

.register-link, .login-link {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #E7E7E7;
    font-size: 13px;
}

.register-link p, .login-link p {
    color: #0F1111;
    margin-bottom: 8px;
}

.register-link a, .login-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.register-link a:hover, .login-link a:hover {
    color: var(--primary-deep);
    text-decoration: underline;
}

.back-link {
    text-align: center;
    margin-top: 16px;
}

.back-link a {
    color: var(--primary);
    text-decoration: none;
    font-size: 13px;
}

.back-link a:hover {
    color: var(--primary-deep);
    text-decoration: underline;
}

.password-requirements {
    font-size: 12px;
    color: #565959;
    margin-top: 6px;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .nav-brand {
        padding: 4px 2px;
        text-align: center;
        justify-content: center;
    }
    
    .logo-title {
        font-size: 15px;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
        width: 100%;
    }
    
    .nav-links a {
        padding: 8px 11px;
        font-size: 13px;
        border-radius: 6px;
    }

    .nav-links a.btn-signin,
    .nav-links a.btn-register {
        flex: 0 0 auto;
        margin-left: 0;
    }

    .filter-group,
    .search-group {
        width: 100%;
    }

    .filter-group select,
    .search-group input,
    .search-group button {
        width: 100%;
    }
    
    .hero-content h2 {
        font-size: 28px;
    }
    
    .hero-content p {
        font-size: 16px;
    }

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

    .about-section,
    .contact-section {
        padding: 52px 0;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .cart-content,
    .checkout-content {
        grid-template-columns: 1fr;
    }
    
    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: 15px;
    }
    
    .item-quantity,
    .item-total {
        grid-column: 2;
    }
    
    .item-remove {
        grid-column: 2;
        justify-self: end;
    }
    
    .filter-form {
        flex-direction: column;
    }
    
    .form-row,
    .payment-methods {
        grid-template-columns: 1fr;
    }
    
    .login-container,
    .register-container {
        margin: 30px auto;
        padding: 20px;
    }
}

@media (max-width: 560px) {
    .container {
        padding: 0 14px;
    }

    .nav-links {
        width: 100%;
        padding: 0;
    }

    .nav-links a {
        flex: 1 1 auto;
        justify-content: center;
        text-align: center;
        min-height: 34px;
    }

    .nav-links a.btn-signin,
    .nav-links a.btn-register {
        flex: 0 0 auto;
        min-width: 92px;
    }

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

    .hero {
        padding: 76px 14px;
    }

    .about-text,
    .contact-card,
    .stat-card {
        padding: 16px;
    }

    .product-info {
        padding: 14px;
    }

    .product-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .add-to-cart-form {
        width: 100%;
    }

    .quantity-input,
    .btn-add-cart,
    .btn-login-required {
        width: 100%;
    }
}
