:root {
    --primary-color: #A74463;
    --primary-color-dark: #8c3450;
    --text-color: #212529;
    --text-light: #6c757d;
    --background-color: #f8f9fa;
    --card-background: #ffffff;
    --border-color: #dee2e6;
    --border-light: #f1f3f5;
    --font-body: 'Inter', sans-serif;
    --font-heading: 'Playfair Display', serif;
    --border-radius: 8px;
    --shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.08);
    --section-padding: 30px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.5;
    font-size: 15px;
}

.container { max-width: 1440px; margin: 0 auto; padding: 0 30px; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; }

a { color: var(--primary-color); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--primary-color-dark); }
img { max-width: 100%; display: block; }

.section-title { text-align: center; font-size: 32px; margin-bottom: 30px; color: var(--text-color); }
.section-title.left-aligned { text-align: left; }
.btn { display: inline-block; padding: 8px 20px; font-size: 14px; font-weight: 700; border-radius: var(--border-radius); cursor: pointer; transition: all 0.3s ease; text-align: center; border: 2px solid var(--primary-color);}
.btn-primary { background-color: var(--primary-color); color: white; }
.btn-primary:hover { background-color: var(--primary-color-dark); border-color: var(--primary-color-dark); color: white; }

main > section { padding: 10px 0; }
.hero-slider-section { padding: 0 !important; }
.hero-slider-section + section { padding-top: 30px; }

.hero-slider-section {
    height: var(--hero-height, 500px);
    margin-top: var(--hero-mt, 0px);
    margin-bottom: var(--hero-mb, 0px);
    overflow: hidden;
}

.hero-slider, .slides-wrapper, .slide, .slide img { height: 100%; }
.slide img { width: 100%; object-fit: cover; }

.hero-slider { position: relative; overflow: hidden; background-color: #e9ecef; }
.slides-wrapper { display: flex; transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1); }
.slide { width: 100%; flex-shrink: 0; }
.slider-nav { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 10; }
.nav-btn { background: rgba(255, 255, 255, 0.4); border: none; width: 100px; height: 4px; padding: 0; border-radius: 5px; cursor: pointer; overflow: hidden; }
.nav-btn .progress { background: #ffffff; height: 100%; width: 0; transition: width 0.1s linear; }
.nav-btn.active .progress.filling { animation: fillProgress 5s linear forwards; }

@keyframes fillProgress { from { width: 0%; } to { width: 100%; } }

.products-grid-wrapper { position: relative; }
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); background-color: #fff; border: 1px solid var(--border-color); color: var(--text-color); border-radius: 50%; width: 40px; height: 40px; cursor: pointer; z-index: 10; box-shadow: var(--shadow); transition: all 0.2s ease; }
.slider-arrow:hover { background-color: var(--primary-color); color: #fff; border-color: var(--primary-color); }
.prev-arrow { left: -40px; }
.next-arrow { right: -40px; }

.product-card {
    background: var(--card-background);
    border-radius: var(--border-radius);
    text-align: left;
    padding: 15px;
    transition: box-shadow 0.3s, transform 0.3s;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

.product-card-visuals {
    position: relative;
    overflow: visible;
}

.product-awards-left {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.award-badge-circle {
    width: 38px;
    height: 38px;
    background-color: #d4ccbe;
    border: 2px solid #fff;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    overflow: hidden;
}

.award-badge-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.award-badge-circle i {
    font-size: 16px;
}

.award-badge-circle span {
    font-weight: 900;
    font-size: 12px;
    line-height: 1;
}

.product-badges-right {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: flex-end;
}

.badge-vegan { background: #28a745; color: #fff; padding: 3px 8px; border-radius: 3px; font-weight: bold; font-size: 10px; }
.badge-bio { background: #8e44ad; color: #fff; padding: 3px 8px; border-radius: 3px; font-weight: bold; font-size: 10px; }
.badge-soldout { background: #6c757d; color: #fff; padding: 3px 8px; border-radius: 3px; font-weight: bold; font-size: 10px; }
.badge-sale { background: #d9534f; color: #fff; padding: 3px 8px; border-radius: 3px; font-weight: bold; font-size: 10px; }
.badge-promo { background: #ffc107; color: #000; padding: 3px 8px; border-radius: 3px; font-weight: bold; font-size: 10px; }

.product-image-link {
    text-align: center;
    margin-bottom: 0;
    display: block;
}

.image-container-inner {
    position: relative;
    width: 100%;
    height: 230px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    overflow: visible;
}

.bg-circle {
    position: absolute;
    width: 155px;
    height: 155px;
    border-radius: 50%;
    background-color: var(--bg-color);
    z-index: 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.image-container-inner img {
    position: relative;
    z-index: 1;
    max-height: 105%;
    max-width: 95%;
    object-fit: contain;
}

.product-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    margin-top: -30px;
}

.product-winery {
    text-transform: uppercase;
    font-size: 10px;
    color: #888;
    margin-bottom: 2px;
}

.product-title {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 14px;
    height: 38px;
    overflow: hidden;
    line-height: 1.3;
    margin-bottom: 8px;
    color: var(--text-color);
}

.product-price-container {
    margin-bottom: 8px;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.sale-price {
    font-size: 16px;
    font-weight: bold;
    color: #a73851;
}

.original-price {
    text-decoration: line-through;
    color: #888;
    font-size: 12px;
}

.main-price {
    font-size: 16px;
    font-weight: bold;
    color: var(--text-color);
}

.product-base-price {
    font-size: 10px;
    color: #28a745;
    margin-top: 2px;
    font-weight: bold;
}

.product-availability {
    font-size: 10px;
    margin-bottom: 12px;
    font-weight: bold;
}

.status-available { color: #28a745; }
.status-unavailable { color: #d9534f; }

.add-to-cart-form {
    margin-top: auto;
}

.add-to-cart-wrapper {
    display: flex;
    gap: 8px;
}

.quantity-selector-card {
    display: flex;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
}

.qty-btn-card {
    background-color: #f4f5f7;
    border: none;
    width: 32px;
    height: 35px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.qty-btn-card.minus {
    border-radius: 6px 0 0 6px;
}

.qty-btn-card.plus {
    border-radius: 0 6px 6px 0;
}

.qty-btn-card:hover {
    background-color: #e2e6ea;
}

.quantity-input-card {
    width: 36px;
    height: 35px;
    border: none;
    background-color: #f4f5f7;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: #000;
    padding: 0;
}

.quantity-input-card:focus {
    outline: none;
}

.quantity-input-card::-webkit-outer-spin-button,
.quantity-input-card::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity-input-card[type=number] {
    -moz-appearance: textfield;
}

.add-to-cart-btn {
    flex-grow: 1;
    background: #a73851;
    color: #fff;
    border: none;
    border-radius: var(--border-radius);
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 35px;
    transition: background-color 0.2s;
    white-space: nowrap;
    padding: 0 10px;
}

.add-to-cart-btn:hover {
    background: #8c3450;
}

.add-to-cart-btn:disabled {
    background: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
}

.promo-banners-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.promo-card { display: block; border-radius: var(--border-radius); overflow: hidden; box-shadow: var(--shadow); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.promo-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.promo-card img { width: 100%; height: 100%; object-fit: cover; }

.about-us { background-color: var(--card-background); border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }
.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center; }
.about-image img { border-radius: var(--border-radius); box-shadow: var(--shadow); }
.about-content p { color: var(--text-light); font-size: 16px; margin-bottom: 20px; }

.newsletter { background-color: var(--primary-color); color: white; padding: 50px 30px; text-align: center; }
.newsletter h2 { font-size: 28px; margin-bottom: 8px; }
.newsletter p { max-width: 500px; margin: 0 auto 20px auto; opacity: 0.9; font-size: 14px; }
.newsletter-form { display: flex; justify-content: center; max-width: 500px; margin: 0 auto; gap: 10px; }
.newsletter-form input { flex-grow: 1; height: 44px; padding: 0 15px; border: none; border-radius: var(--border-radius); font-size: 15px; }
.newsletter-form .btn-primary { background-color: transparent; border-color: white; height: 44px; padding: 0 20px; }
.newsletter-form .btn-primary:hover { background-color: white; color: var(--primary-color); }

.page-container { padding: 30px 0; }
.page-title { font-size: 32px; margin-bottom: 30px; text-align: center; }

.btn-secondary { background-color: var(--border-color); color: var(--text-color); border-color: var(--border-color); margin-right: 10px; }
.btn-secondary:hover { background-color: #ced4da; border-color: #ced4da; color: var(--text-color); }
.alert { padding: 12px 18px; margin-bottom: 15px; border: 1px solid transparent; border-radius: var(--border-radius); font-size: 14px; }
.alert-success { color: #0f5132; background-color: #d1e7dd; border-color: #badbcc; }
.auth-container { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; max-width: 1000px; margin: 0 auto; }
.auth-box { background-color: var(--card-background); padding: 25px; border: 1px solid var(--border-color); border-radius: var(--border-radius); box-shadow: var(--shadow); }
.auth-box h2 { font-size: 22px; margin-bottom: 20px; }
.new-customer-box p { color: var(--text-light); margin-bottom: 15px; font-size: 14px; }
.new-customer-box h3 { font-size: 16px; margin-bottom: 12px; font-family: var(--font-body); }
.new-customer-box ul { list-style: none; margin-bottom: 25px; padding-left: 0; }
.new-customer-box ul li { margin-bottom: 8px; display: flex; align-items: flex-start; font-size: 14px; }
.new-customer-box ul li i { color: #198754; margin-right: 10px; margin-top: 3px; }
.form-group { margin-bottom: 15px; }
.form-group label, .form-group-checkbox label { display: block; font-weight: 500; margin-bottom: 6px; font-size: 14px; }
.form-group small { display: block; color: var(--text-light); font-size: 11px; margin-top: -4px; margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; height: 40px; padding: 8px 12px; border: 1px solid var(--border-color); border-radius: var(--border-radius); font-size: 14px; font-family: var(--font-body); transition: border-color 0.3s ease, box-shadow 0.3s ease; }
.form-group textarea { height: 100px; resize: vertical; padding-top: 8px; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(167, 68, 99, 0.1); }
.form-error { color: #dc3545; font-size: 12px; margin-top: 4px; display: block; }
.form-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; }
.forgot-password { font-size: 13px; }
.form-container-full { max-width: 1000px; margin: 0 auto; background-color: var(--card-background); padding: 30px; border: 1px solid var(--border-color); border-radius: var(--border-radius); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.form-group-row { display: flex; gap: 15px; }
.form-group-row .form-group { flex: 1; }
.form-group-checkbox { display: flex; align-items: flex-start; gap: 12px; margin-top: 15px; }
.form-group-checkbox input[type="checkbox"] { width: 16px; height: 16px; margin-top: 4px; flex-shrink: 0; }
.privacy-note { font-size: 12px; color: var(--text-light); margin-top: 15px; line-height: 1.4; }
.form-actions-full { border-top: 1px solid var(--border-color); margin-top: 25px; padding-top: 25px; display: flex; justify-content: space-between; align-items: center; }
.required-note { color: var(--text-light); font-size: 13px; }
.password-wrapper { position: relative; }
.password-toggle-icon { position: absolute; top: 50%; right: 12px; transform: translateY(-50%); color: var(--text-light); cursor: pointer; transition: color 0.2s ease; height: 40px; display: flex; align-items: center; }
.password-toggle-icon:hover { color: var(--primary-color); }

.notification { position: fixed; top: 80px; right: 20px; padding: 0.8rem 2.2rem 0.8rem 1.1rem; border-radius: var(--border-radius); box-shadow: 0 8px 24px rgba(0,0,0,0.15); z-index: 10000; min-width: 300px; max-width: 400px; color: #ffffff; opacity: 1; transform: translateX(0); transition: opacity 0.4s ease, transform 0.4s ease; font-weight: 500; font-size: 14px; }
.notification.success { background-color: #28a745; }
.notification.error { background-color: #dc3545; }
.notification p { margin: 0; }
.notification__close { position: absolute; top: 50%; right: 12px; transform: translateY(-50%); background: none; border: none; color: inherit; font-size: 20px; font-weight: bold; cursor: pointer; opacity: 0.7; line-height: 1; padding: 0; }
.notification__close:hover { opacity: 1; }
.notification.fade-out { opacity: 0; transform: translateX(20px); }

.profile-container { display: grid; grid-template-columns: 240px 1fr; gap: 20px; align-items: flex-start; }
.profile-sidebar { background-color: #f8f9fa; border: 1px solid #e9ecef; border-radius: var(--border-radius); padding: 15px; }
.profile-sidebar-header { padding-bottom: 15px; margin-bottom: 15px; border-bottom: 1px solid #e9ecef; }
.profile-sidebar-header h3 { font-family: var(--font-body); font-size: 16px; margin: 0; }
.profile-sidebar-header p { font-size: 13px; color: var(--text-light); margin: 0; word-break: break-all; }
.profile-sidebar-nav ul { list-style: none; margin: 0; padding: 0; }
.profile-sidebar-nav ul li a, .profile-sidebar-nav ul li button { display: flex; align-items: center; gap: 10px; padding: 10px 12px; color: var(--text-color); font-weight: 500; border-radius: 6px; transition: background-color 0.2s, color 0.2s; width: 100%; text-align: left; background: none; border: none; font-size: 14px; font-family: var(--font-body); cursor: pointer; }
.profile-sidebar-nav ul li a i, .profile-sidebar-nav ul li button i { width: 18px; text-align: center; color: var(--text-light); transition: color 0.2s; }
.profile-sidebar-nav ul li a:hover, .profile-sidebar-nav ul li button:hover { background-color: #e9ecef; }
.profile-sidebar-nav ul li a.active { background-color: #e9ecef; color: var(--primary-color); font-weight: 700; }
.profile-sidebar-nav ul li a.active i { color: var(--primary-color); }
.profile-content .profile-box { background-color: var(--card-background); border: 1px solid #e9ecef; border-radius: var(--border-radius); padding: 25px; margin-bottom: 25px; }
.profile-box-header { border-bottom: 1px solid #e9ecef; padding-bottom: 12px; margin-bottom: 20px; }
.profile-box-header h2 { font-size: 20px; margin: 0; }
.form-actions { margin-top: 20px; text-align: right; }

@media (max-width: 1600px) { .slider-arrow { display: none; } }
@media (max-width: 1200px) { .products-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); } .promo-banners-grid { grid-template-columns: 1fr; } }
@media (max-width: 992px) {
    .container { padding: 0 15px; }
    .about-grid { grid-template-columns: 1fr; gap: 30px; }
    .about-image { order: -1; }
    .auth-container, .form-grid, .profile-container { grid-template-columns: 1fr; }
    .form-container-full { padding: 15px; }
}
@media (max-width: 768px) {
    .section-title { font-size: 28px; margin-bottom: 25px; }
    .page-title { font-size: 28px; margin-bottom: 20px; }
    .newsletter-form { flex-direction: column; gap: 8px; }
    
    header, .header, #header, .site-header, .header-wrapper { 
        margin-bottom: 0 !important; 
        padding-bottom: 0 !important; 
    }
    main, .main, #main, .main-content { 
        padding-top: 0 !important; 
        margin-top: 0 !important; 
    }
    main > section:first-of-type {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
    
    .hero-slider-section { 
        height: auto !important; 
        margin-top: -45px !important; 
        padding-top: 0 !important; 
    }
    .hero-slider, .slides-wrapper, .slide { 
        height: auto !important; 
    }
    .slide img { 
        height: auto !important; 
        width: 100% !important; 
        object-fit: contain !important; 
        display: block !important; 
    }
    
    .nav-btn { width: 70px; height: 3px; }
    .slider-nav { bottom: 12px; }
}