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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: #222;
    background: #fff;
    line-height: 1.5;
}

/* ---------- Top promo bar ---------- */
.top-promo {
    background: #1a1a1a;
    color: #fff;
    text-align: center;
    padding: 12px 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    font-size: 18px;
    position: relative;
}

.top-promo::before,
.top-promo::after {
    content: "";
    position: absolute;
    top: 0;
    width: 15%;
    height: 100%;
    background: repeating-linear-gradient(
        -45deg,
        #f5c518,
        #f5c518 10px,
        transparent 10px,
        transparent 20px
    );
    opacity: 0.85;
}
.top-promo::before { left: 0; clip-path: polygon(0 0, 100% 0, 60% 100%, 0 100%); }
.top-promo::after  { right: 0; clip-path: polygon(40% 0, 100% 0, 100% 100%, 0 100%); }

/* ---------- Red info bar ---------- */
.info-bar {
    background: #d80000;
    color: #fff;
    font-size: 13px;
}
.info-bar-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 8px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.info-bar-text {
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}
.info-bar-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}
.info-bar-actions a {
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: opacity 0.2s;
}
.info-bar-actions a:hover { opacity: 0.75; }
.info-bar-actions .social {
    width: 26px;
    height: 26px;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
}
.wishlist { position: relative; }
.wishlist .badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: #fff;
    color: #d80000;
    font-size: 10px;
    font-weight: 700;
    border-radius: 50%;
    padding: 1px 5px;
    min-width: 16px;
    text-align: center;
}
.auth-link {
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.5px;
    padding-left: 8px;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
}

/* ---------- Main header ---------- */
.main-header {
    background: #fff;
    border-bottom: 1px solid #eee;
}
.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.logo {
    text-decoration: none;
    color: #d80000;
    display: flex;
    flex-direction: column;
    line-height: 1;
    flex-shrink: 0;
}
.logo-brand {
    font-family: "Brush Script MT", "Segoe Script", cursive;
    font-size: 42px;
    font-weight: 700;
}
.logo-brand sup { font-size: 14px; margin-left: 2px; }
.logo-tagline {
    font-size: 11px;
    letter-spacing: 1px;
    color: #333;
    font-style: italic;
    text-align: center;
    margin-top: 2px;
}

/* Search */
.search-form {
    flex: 1;
    display: flex;
    align-items: stretch;
    border: 2px solid #d80000;
    border-radius: 4px;
    overflow: hidden;
    max-width: 700px;
}
.search-input {
    flex: 1;
    padding: 10px 14px;
    border: none;
    outline: none;
    font-size: 14px;
}
.search-cat {
    border: none;
    border-left: 1px solid #eee;
    background: #fafafa;
    padding: 0 12px;
    font-size: 13px;
    outline: none;
    cursor: pointer;
    max-width: 180px;
}
.search-btn {
    background: #d80000;
    border: none;
    color: #fff;
    padding: 0 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.search-btn:hover { background: #b00000; }

/* Right side */
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}
.header-phone {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.phone-label { font-size: 12px; color: #666; }
.phone-number {
    font-size: 16px;
    font-weight: 700;
    color: #222;
    text-decoration: none;
}
.phone-number:hover { color: #d80000; }

.header-cart {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #222;
}
.cart-icon {
    position: relative;
    color: #333;
    display: inline-flex;
}
.cart-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: #d80000;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 50%;
    padding: 1px 5px;
    min-width: 18px;
    text-align: center;
    line-height: 1.3;
}
.cart-total {
    font-weight: 700;
    font-size: 14px;
}

/* ---------- Slider ---------- */
.slider {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 20px auto;
    aspect-ratio: 16 / 6;
    overflow: hidden;
    border-radius: 8px;
    background: #f4f4f4;
}

.slider-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    pointer-events: none;
}

.slide.active {
    opacity: 1;
    pointer-events: auto;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Placeholder when no images provided */
.slide-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffcf40, #ff8c42);
    color: #1a1a1a;
    font-size: clamp(18px, 3vw, 32px);
    font-weight: 700;
    text-align: center;
    padding: 24px;
}

/* Prev / Next buttons */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    z-index: 2;
}
.slider-btn:hover { background: rgba(0, 0, 0, 0.7); }
.slider-btn.prev { left: 16px; }
.slider-btn.next { right: 16px; }

/* Dots */
.slider-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.dot.active {
    background: #fff;
    transform: scale(1.3);
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
    .header-inner { flex-wrap: wrap; gap: 14px; }
    .search-form { order: 3; flex-basis: 100%; max-width: none; }
    .header-right { margin-left: auto; }
}

@media (max-width: 768px) {
    .slider { aspect-ratio: 16 / 9; margin: 12px auto; border-radius: 0; }
    .slider-btn { width: 36px; height: 36px; font-size: 16px; }
    .slider-btn.prev { left: 8px; }
    .slider-btn.next { right: 8px; }

    .info-bar-text { font-size: 11px; }
    .info-bar-actions { gap: 8px; }
    .auth-link { display: none; }

    .logo-brand { font-size: 32px; }
    .search-cat { max-width: 110px; font-size: 12px; }
    .header-phone { display: none; }
}

@media (max-width: 480px) {
    .info-bar-text { display: none; }
    .info-bar-inner { justify-content: flex-end; }
}
