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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    background-color: #f5f5f5;
    line-height: 1.6;
}

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

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

/* ===== КОРЗИНА ===== */

.cart-container {
    margin-top: 30px;
    margin-bottom: 40px;
}

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

.cart-main {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.cart-sidebar {
    background: #fff;
    border-radius: 16px;
    padding: 20px 20px 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.cart-sidebar-title {
    margin-bottom: 15px;
    font-size: 20px;
    color: #333;
}

.cart-empty {
    padding: 20px;
    text-align: center;
    color: #666;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 10px;
}

/* Таблица корзины в стиле каталога */

.cart-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.cart-table th,
.cart-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #e6e9ef;
    text-align: left;
}

.cart-table th {
    font-weight: 600;
    color: #555;
    background: #f8f9fb;
}

.cart-table td:last-child,
.cart-table th:last-child {
    text-align: right;
}

.cart-summary {
    display: flex;
    justify-content: flex-end;
    align-items: baseline;
    margin-top: 15px;
    font-size: 18px;
}

.cart-summary-label {
    margin-right: 8px;
    color: #555;
}

.cart-summary-value {
    font-weight: 700;
}

/* Кнопки количества и удаления */

.qty-btn,
.remove-btn {
    border: none;
    background: #f0f2f7;
    border-radius: 8px;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 14px;
}

.qty-btn:hover,
.remove-btn:hover {
    background: #e2e6f0;
}

.qty {
    display: inline-block;
    min-width: 24px;
    text-align: center;
    margin: 0 4px;
}

/* Формы в сайдбаре – опираемся на твои .form-group и .submit-btn */

.cart-sidebar .form-group {
    margin-bottom: 14px;
}

.cart-sidebar .form-row {
    display: flex;
    gap: 10px;
}

.cart-sidebar .form-row .half {
    flex: 1;
}

.cart-sidebar select,
.cart-sidebar input,
.cart-sidebar textarea {
    width: 100%;
    border-radius: 12px;
    border: 2px solid #e1e5e9;
    padding: 10px 12px;
    font-size: 14px;
    background: #f8f9fa;
    transition: all 0.2s;
    box-sizing: border-box;
}

.cart-sidebar select:focus,
.cart-sidebar input:focus,
.cart-sidebar textarea:focus {
    outline: none;
    border-color: #667eea;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.12);
}

.cart-sidebar textarea {
    resize: vertical;
}

/* Адаптив */

@media (max-width: 960px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }
}


/* Header Styles */
.header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background-color: #f8f8f8;
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid #e0e0e0;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-links a {
    margin-right: 20px;
    color: #666;
}

.top-links a:hover {
    color: #d9534f;
}

.top-right {
    display: flex;
    gap: 20px;
    align-items: center;
}

.phone {
    font-weight: 600;
    color: #333;
}

.hours {
    color: #666;
    font-size: 13px;
}

/* Navbar */
.navbar {
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: bold;
}

.logo img {
    height: 40px;
}

.logobtn {
    height: 40px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
    flex: 1;
    justify-content: center;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color: #333;
    font-size: 15px;
    transition: color 0.3s;
    display: block;
    padding: 5px 0;
}

.nav-menu a:hover {
    color: #d9534f;
}

.modal {
  display: none;               /* скрыто по умолчанию */
  position: fixed;
  inset: 0;
  z-index: 1000;
  background-color: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: #fff;
  border-radius: 10px;
  padding: 24px 28px;
  width: 100%;
  max-width: 400px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.modal-close {
  position: absolute;
  top: 8px;
  right: 12px;
  border: none;
  background: transparent;
  font-size: 24px;
  cursor: pointer;
}

.auth-form {
  display: block;
}

.auth-form.hidden {
  display: none;
}

/* При желании можешь чуть развести формы по вертикали */
.auth-form h2 {
  margin-top: 0;
  margin-bottom: 16px;
}


.auth-form label {
  display: block;
  margin-bottom: 12px;
  font-size: 14px;
}

.auth-form input {
  width: 100%;
  padding: 8px 10px;
  margin-top: 4px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.auth-submit {
  width: 100%;
  margin-top: 8px;
  padding: 10px 12px;
  border: none;
  border-radius: 4px;
  background: #e63946;   /* подбери под свою палитру */
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.auth-submit:hover {
  opacity: 0.9;
}

.auth-switch {
  margin-top: 12px;
  font-size: 13px;
  text-align: center;
}


/* Dropdown Menu Styles */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 220px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    padding: 12px 20px;
    color: #333;
    font-size: 15px;
    transition: background 0.2s, color 0.2s;
    border-left: 3px solid transparent;
}

.dropdown-menu a:hover {
    background-color: #f8f8f8;
    color: #d9534f;
    border-left-color: #d9534f;
}

.nav-right {
    display: flex;
    gap: 15px;
}

.imgarrownav {
    
}

.search-btn,
.cart-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 8px 12px;
    transition: background 0.3s;
}

.cart-btn {
    background-color: #f0f0f0;
    border-radius: 5px;
    font-weight: 600;
}

.search-btn:hover,
.cart-btn:hover {
    background-color: #e0e0e0;
}

.acc-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 8px 12px;
    transition: background 0.3s;
    background-color: #f0f0f0;
    border-radius: 5px;
    font-weight: 600;
}

.acc-btn:hover{
    background-color: #e0e0e0;
}

/* Hero Section - Slider */
.hero {
    /*background: linear-gradient(135deg, #e67a6f 0%, #d9534f 100%);*/
    background-image: url(img/bgSlider1.jpg);
    background-size: 100%;
    padding: 60px 0 80px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.slider {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.slides-container {
    width: 80%;
    position: relative;
}

.slide {
    display: none;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 300px;
    color: white;
    animation: fadeIn 0.5s ease-in-out;
    /*background-image: url(img/bg1.png);*/
}

.slide.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-content {
    flex: 1;
}

.slide-content h1 {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.slide-image img {
    max-width: 400px;
    height: auto;
}

.gift-icon,
.discount-badge,
.delivery-icon {
    font-size: 120px;
    animation: bounce 2s infinite;
}

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

.slider-btn {
    position: absolute;
    background: rgba(255,255,255,0.3);
    border: none;
    color: white;
    font-size: 24px;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s;
    z-index: 10;
}

.slider-btn:hover {
    background: rgba(255,255,255,0.5);
}

.slider-btn.prev {
    left: 20px;
}

.slider-btn.next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background-color: white;
    transform: scale(1.3);
}

.dot:hover {
    background-color: rgba(255,255,255,0.8);
}

/* Categories Grid */
.categories {
    padding: 40px 0 60px;
}

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

.category-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: 250px;
}

.category-card.large {
    grid-column: span 2;
    grid-row: span 2;
    height: auto;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.category-card:hover img {
    transform: scale(1.05);
}

.category-label {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Footer */
.footer {
    background-color: #fff;
    padding: 40px 0 20px;
    border-top: 1px solid #e0e0e0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: bold;
}

.footer-logo img {
    width: 40px;
    height: 40px;
}

.footer-section h4 {
    margin-bottom: 15px;
    font-size: 16px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
}

.footer-section ul li a:hover {
    color: #d9534f;
}

.text-small {
    font-size: 12px;
    color: #999;
}

.footer-bottom {
    border-top: 1px solid #e0e0e0;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #666;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a:hover {
    color: #d9534f;
}

.footer-credit a {
    color: #d9534f;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 15px;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        margin-top: 10px;
    }

    .dropdown:hover .dropdown-menu {
        display: block;
    }

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

    .category-card.large {
        grid-column: span 1;
        grid-row: span 1;
    }

    .slide-content h1 {
        font-size: 32px;
    }

    .slide {
        flex-direction: column;
        text-align: center;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* ===== CATALOG PAGE STYLES ===== */

.catalog-section {
    padding: 40px 0 60px;
    background-color: #f5f5f5;
}

.catalog-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    color: #333;
}

.catalog-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

/* Filters Sidebar */
.filters-sidebar {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.filter-group {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e0e0e0;
}

.filter-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.filter-group h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 10px;
    border-radius: 6px;
    transition: background 0.2s;
}

.filter-option:hover {
    background-color: #f8f8f8;
}

.filter-option input[type="radio"] {
    margin-right: 10px;
    cursor: pointer;
    accent-color: #d9534f;
}

.filter-option span {
    font-size: 14px;
    color: #555;
}

/* Price Filter */
.price-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.price-inputs input {
    width: 100%;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
}

.price-inputs span {
    color: #999;
}

.price-slider {
    margin-bottom: 15px;
}

.price-slider input[type="range"] {
    width: 100%;
    accent-color: #d9534f;
}

.apply-filter-btn,
.reset-filter-btn {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.apply-filter-btn {
    background-color: #d9534f;
    color: white;
    margin-bottom: 10px;
}

.apply-filter-btn:hover {
    background-color: #c9302c;
}

.reset-filter-btn {
    background-color: #f0f0f0;
    color: #666;
}

.reset-filter-btn:hover {
    background-color: #e0e0e0;
}

/* Products Container */
.products-container {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

/* Sorting Bar */
.sorting-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.filter-toggle-mobile {
    display: none;
}

.filter-btn {
    background-color: #d9534f;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.filter-btn:hover {
    background-color: #c9302c;
}

.sort-dropdown {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-dropdown label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.sort-dropdown select {
    padding: 8px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    background-color: white;
}

.sort-dropdown select:focus {
    outline: none;
    border-color: #d9534f;
}

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

.product-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    border-color: #d9534f;
}

.product-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background-color: #f8f8f8;
}

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

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

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

.product-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
    line-height: 1.3;
}

.product-description {
    font-size: 13px;
    color: #777;
    margin-bottom: 10px;
    line-height: 1.5;
    flex: 1;
}

.product-weight {
    font-size: 13px;
    color: #999;
    margin-bottom: 15px;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.product-price {
    font-size: 22px;
    font-weight: 700;
    color: #d9534f;
}

.add-to-cart-btn {
    background-color: #d9534f;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.add-to-cart-btn:hover {
    background-color: #c9302c;
    transform: scale(1.05);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
}

.no-results p {
    font-size: 20px;
    color: #999;
    margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .catalog-layout {
        grid-template-columns: 250px 1fr;
        gap: 20px;
    }

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

@media (max-width: 768px) {
    .catalog-layout {
        grid-template-columns: 1fr;
    }

    .filters-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        z-index: 1001;
        transition: left 0.3s;
        overflow-y: auto;
        box-shadow: 2px 0 10px rgba(0,0,0,0.2);
    }

    .filters-sidebar.active {
        left: 0;
    }

    .filter-toggle-mobile {
        display: block;
    }

    .sorting-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .sort-dropdown {
        justify-content: space-between;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }

    .catalog-title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-card {
        max-width: 100%;
    }
}
/* Авторизация + бонусы в хедере */
#auth-btn {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    position: relative !important;
}

.bonus-badge {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    color: white !important;
    padding: 4px 10px !important;
    border-radius: 15px !important;
    font-size: 13px !important;
    font-weight: bold !important;
    box-shadow: 0 4px 12px rgba(102,126,234,0.4) !important;
    animation: bonusPulse 2s infinite !important;
}

@keyframes bonusPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

/* ===== BONUS REDEMPTION IN CART ===== */
.bonus-redeem-section {
    background: linear-gradient(135deg, #f8f9ff 0%, #eef1ff 100%);
    border: 2px solid #e1e5f9;
    border-radius: 14px;
    padding: 18px;
    margin-top: 16px;
}

.bonus-redeem-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.bonus-redeem-icon {
    font-size: 20px;
}

.bonus-redeem-title {
    font-weight: 700;
    font-size: 15px;
    color: #333;
    flex: 1;
}

.bonus-redeem-available {
    font-size: 13px;
    color: #667eea;
    font-weight: 600;
    background: rgba(102,126,234,0.1);
    padding: 4px 10px;
    border-radius: 12px;
}

.bonus-redeem-controls {
    margin-bottom: 14px;
}

.bonus-redeem-controls input[type="range"] {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: #ddd;
    border-radius: 3px;
    outline: none;
    margin-bottom: 10px;
}

.bonus-redeem-controls input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(102,126,234,0.4);
}

.bonus-redeem-controls input[type="range"]::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(102,126,234,0.4);
}

.bonus-redeem-values {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bonus-input-field {
    width: 90px;
    padding: 8px 10px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    color: #667eea;
    text-align: center;
    background: #fff;
}

.bonus-input-field:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.12);
}

.bonus-redeem-label {
    font-size: 14px;
    color: #666;
}

.bonus-redeem-result {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 14px;
    color: #555;
}

.bonus-discount-value {
    color: #27ae60;
    font-weight: 700;
    font-size: 16px;
}

.bonus-redeem-total {
    border-top: 1px solid #d5d9f0;
    padding-top: 10px;
    margin-top: 4px;
}

.bonus-final-value {
    color: #333;
    font-weight: 800;
    font-size: 20px;
}

/* ===== ADDRESS AUTOCOMPLETE ===== */
.address-autocomplete-wrapper {
    position: relative;
}

.address-suggestions {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e1e5e9;
    border-top: none;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    z-index: 100;
    max-height: 250px;
    overflow-y: auto;
}

.address-suggestion-item {
    padding: 12px 14px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    border-bottom: 1px solid #f0f2f5;
    transition: background 0.15s;
}

.address-suggestion-item:last-child {
    border-bottom: none;
}

.address-suggestion-item:hover {
    background: #f0f4ff;
    color: #667eea;
}

/* ===== DISCOUNT STYLES ===== */

/* Catalog - discount ribbon on product image */
.product-image {
    position: relative;
}

.discount-ribbon {
    position: absolute;
    top: 12px;
    left: 0;
    background: linear-gradient(135deg, #e53935, #d32f2f);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 5px 14px 5px 10px;
    border-radius: 0 20px 20px 0;
    z-index: 2;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(229, 57, 53, 0.35);
}

/* Catalog - price block with old/new/badge */
.price-block {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.price-old,
.cart-price-old {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
    font-weight: 400;
}

.price-block .product-price {
    font-size: 22px;
    font-weight: 700;
    color: #d9534f;
}

.discount-badge,
.cart-discount-badge {
    background: linear-gradient(135deg, #e53935, #c62828);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    white-space: nowrap;
}

/* Cart page - discount in table */
.cart-price-new {
    color: #d9534f;
    font-weight: 700;
}

.cart-discount-badge {
    font-size: 10px;
    padding: 1px 5px;
    border-radius: 3px;
    margin-left: 3px;
    vertical-align: middle;
}

/* ==================== BONUS REDEMPTION SECTION ==================== */
.bonus-redeem-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
}

.bonus-redeem-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #dee2e6;
}

.bonus-redeem-icon {
    font-size: 24px;
}

.bonus-redeem-title {
    font-size: 18px;
    font-weight: 600;
    color: #2D4337;
}

.bonus-info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
}

.bonus-info-label {
    color: #6c757d;
}

.bonus-info-value {
    font-weight: 600;
    color: #2D4337;
}

.bonus-min-order {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    padding: 10px 12px;
    margin: 15px 0;
    font-size: 13px;
    color: #856404;
}

.bonus-min-order.bonus-min-warning {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.bonus-redeem-controls {
    margin: 15px 0;
}

.bonus-input-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #495057;
    margin-bottom: 8px;
}

.bonus-input-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.bonus-input-field {
    width: 120px;
    padding: 10px 12px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    transition: border-color 0.2s;
}

.bonus-input-field:focus {
    outline: none;
    border-color: #2D4337;
}

.bonus-input-suffix {
    font-size: 14px;
    color: #6c757d;
}

.bonus-use-max-btn {
    background: linear-gradient(135deg, #2D4337, #3d5a4d);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.bonus-use-max-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(45, 67, 55, 0.3);
}

.bonus-use-max-btn:active {
    transform: translateY(0);
}

.bonus-error-message {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 13px;
    margin: 10px 0;
}

.bonus-redeem-summary {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

.bonus-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
}

.bonus-discount-row {
    color: #28a745;
    font-weight: 500;
}

.bonus-final-row {
    border-top: 2px solid #dee2e6;
    margin-top: 8px;
    padding-top: 12px;
    font-size: 18px;
    font-weight: 700;
    color: #2D4337;
}

.bonus-discount-value {
    color: #28a745;
    font-weight: 600;
}

.bonus-final-value {
    color: #d32f2f;
    font-weight: 700;
}

/* Cart total with discount */
.cart-total-old {
    text-decoration: line-through;
    color: #999;
    font-size: 14px;
    margin-right: 8px;
}

.cart-total-new {
    color: #d32f2f;
    font-weight: 700;
}

@media (max-width: 768px) {
    .bonus-input-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    
    .bonus-input-field {
        width: 100%;
    }
    
    .bonus-use-max-btn {
        width: 100%;
    }
}
