/* ============================================
   MIXXTREND OpenCart Theme — Stylesheet
   Renkler, fontlar, header, footer, vitrin
   ============================================ */

@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&family=Poppins:wght@500;600;700;800&display=swap");

:root {
    --mx-primary: #22151c;
    --mx-accent: #d9467a;
    --mx-accent-dark: #be2f63;
    --mx-bg: #fff8fa;
    --mx-muted: #fff0f5;
    --mx-text: #1c1917;
    --mx-soft: #7f6672;
    --mx-border: #f2dce5;
    --mx-gold: #f59e0b;
    --mx-white: #ffffff;
    --mx-radius: 8px;
    --mx-radius-lg: 18px;
    --mx-shadow: 0 12px 34px rgba(31, 22, 25, 0.07);
    --mx-shadow-hover: 0 22px 48px rgba(31, 22, 25, 0.18);
    --mx-transition: 180ms ease;
    --mx-header-height: 82px;
    --mx-header-height-mobile: 64px;
    --mx-font-heading: "Poppins", system-ui, sans-serif;
    --mx-font-body: "Open Sans", system-ui, sans-serif;
}

/* ===== Reset & Base ===== */
* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--mx-bg);
    color: var(--mx-text);
    font-family: var(--mx-font-body);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--mx-accent); text-decoration: none; transition: color var(--mx-transition); }
a:hover { color: var(--mx-accent-dark); }

img { max-width: 100%; display: block; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--mx-font-heading);
    font-weight: 800;
    color: var(--mx-primary);
    line-height: 1.1;
}

.btn-primary,
.btn-dark {
    background: var(--mx-accent);
    border: none;
    color: #fff;
    padding: 12px 28px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
    transition: background var(--mx-transition), transform var(--mx-transition);
}
.btn-primary:hover,
.btn-dark:hover {
    background: var(--mx-accent-dark);
    color: #fff;
    transform: translateY(-1px);
}

.btn-outline-light {
    border: 1px solid rgba(255,255,255,0.58);
    background: rgba(255,255,255,0.14);
    backdrop-filter: blur(12px);
    color: #fff;
    padding: 12px 28px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
    transition: background var(--mx-transition);
}
.btn-outline-light:hover {
    background: rgba(255,255,255,0.22);
    color: #fff;
}

/* ===== Top Banner Strip ===== */
.mx-top-banner {
    background: var(--mx-primary);
    color: #fff;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 16px;
    letter-spacing: 0.5px;
}

/* ===== Header ===== */
#top { display: none !important; }

.mx-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: #fff;
    border-bottom: 1px solid var(--mx-border);
    box-shadow: 0 10px 34px rgba(34, 21, 28, 0.07);
}

.mx-nav {
    height: var(--mx-header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(14px, 2vw, 26px);
    padding: 0 clamp(18px, 5vw, 64px);
    max-width: 1320px;
    margin: 0 auto;
}

.mx-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    text-decoration: none;
}

.mx-logo img {
    max-height: 64px;
    width: auto;
}

.mx-logo-text {
    display: grid;
    font-family: var(--mx-font-heading);
    font-weight: 800;
    font-size: 20px;
    line-height: 1;
    color: var(--mx-primary);
}

.mx-logo-text small {
    margin-top: 4px;
    color: var(--mx-soft);
    font-size: 10px;
    font-weight: 600;
}

/* ===== Nav Links ===== */
.mx-nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    min-height: 48px;
    padding: 4px;
    border: 1px solid var(--mx-border);
    border-radius: 999px;
    background: var(--mx-muted);
}

.mx-nav-links a {
    padding: 8px 16px;
    border-radius: 999px;
    color: var(--mx-soft);
    font-size: 14px;
    font-weight: 600;
    transition: color var(--mx-transition), background var(--mx-transition);
}

.mx-nav-links a:hover,
.mx-nav-links a.active {
    color: var(--mx-primary);
    background: #fff;
}

/* ===== Nav Actions (search, account, cart) ===== */
.mx-nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mx-nav-actions a,
.mx-nav-actions button {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: none;
    background: transparent;
    color: var(--mx-primary);
    font-size: 18px;
    border-radius: 999px;
    cursor: pointer;
    transition: background var(--mx-transition);
}

.mx-nav-actions a:hover,
.mx-nav-actions button:hover {
    background: var(--mx-muted);
}

.mx-cart-badge {
    position: relative;
}

.mx-cart-badge .badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--mx-accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: grid;
    place-items: center;
}

/* ===== Mobile Header ===== */
.mx-mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: none;
    background: transparent;
    font-size: 22px;
    color: var(--mx-primary);
    cursor: pointer;
}

.mx-mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    background: #fff;
    padding: 20px;
    overflow-y: auto;
}

.mx-mobile-menu .mx-mobile-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
    border: none;
    background: transparent;
    font-size: 24px;
    cursor: pointer;
}

.mx-mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 60px;
}

.mx-mobile-menu nav a {
    padding: 14px 16px;
    border-radius: 12px;
    color: var(--mx-primary);
    font-weight: 700;
    font-size: 16px;
    border-bottom: 1px solid var(--mx-border);
}

@media (max-width: 900px) {
    .mx-nav-links { display: none; }
    .mx-mobile-toggle { display: grid; place-items: center; }
    .mx-nav { height: var(--mx-header-height-mobile); }
    .mx-logo img { max-height: 44px; }
}

/* ===== Hero Slider ===== */
.mx-hero {
    position: relative;
    min-height: min(76vh, 720px);
    display: grid;
    align-items: end;
    overflow: hidden;
    background: linear-gradient(135deg, #2a1a20 0%, #1e1518 50%, #3a2530 100%);
}

.mx-hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 18%;
    opacity: 0;
    transition: opacity 700ms ease;
}

.mx-hero img.active { opacity: 1; }

.mx-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(18, 11, 13, 0.12), rgba(18, 11, 13, 0.52));
}

.mx-hero-copy {
    position: relative;
    z-index: 1;
    width: min(760px, calc(100% - 40px));
    margin: 0 auto;
    padding: clamp(64px, 10vw, 110px) 0 clamp(42px, 7vw, 70px);
    color: #fff;
    text-align: center;
}

.mx-hero-copy span {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 7px 14px;
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
    font-size: 13px;
    font-weight: 800;
}

.mx-hero-copy h1 {
    margin: 0;
    font: 800 clamp(36px, 7vw, 88px) var(--mx-font-heading);
    line-height: 0.95;
    color: #fff;
}

.mx-hero-copy p {
    width: min(620px, 100%);
    margin: 18px auto 26px;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(15px, 2vw, 19px);
}

.mx-hero-actions {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.mx-hero-dots {
    position: absolute;
    left: 50%;
    bottom: 18px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transform: translateX(-50%);
}

.mx-hero-dots button {
    width: 9px;
    height: 9px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.36);
    cursor: pointer;
    transition: width var(--mx-transition), background var(--mx-transition);
}

.mx-hero-dots button.active {
    width: 28px;
    background: #fff;
}

@media (max-width: 620px) {
    .mx-hero { min-height: 68vh; }
    .mx-hero-copy { width: min(100% - 28px, 520px); text-align: left; }
}

/* ===== Service Strip ===== */
.mx-service-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 18px clamp(16px, 4vw, 32px);
    background: #fff;
}

.mx-service-strip article {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid #f0e3e6;
    background: #fff;
}

.mx-service-strip .mx-service-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    border-radius: 999px;
    border: 2px solid var(--mx-primary);
    display: grid;
    place-items: center;
    color: var(--mx-accent);
    font-size: 16px;
}

.mx-service-strip strong { display: block; color: #1f1619; font-size: 14px; }
.mx-service-strip p { display: block; color: #7b666c; font-size: 12px; margin: 0; }

@media (max-width: 900px) {
    .mx-service-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
    .mx-service-strip { grid-template-columns: 1fr; }
}

/* ===== Category Bubbles ===== */
.mx-category-section { padding-top: clamp(28px, 4vw, 54px); }

.mx-section-title {
    text-align: center;
    margin-bottom: clamp(24px, 4vw, 40px);
}

.mx-section-title h2 {
    font: 800 clamp(24px, 4vw, 42px) var(--mx-font-heading);
    margin: 0 0 8px;
}

.mx-section-title p {
    color: var(--mx-soft);
    font-size: 15px;
    margin: 0;
}

.mx-category-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(16px, 3vw, 34px);
    align-items: start;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 clamp(16px, 5vw, 32px);
}

.mx-category-bubble {
    display: grid;
    justify-items: center;
    gap: 12px;
    text-align: center;
    text-decoration: none;
}

.mx-category-bubble img {
    width: min(174px, 100%);
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 999px;
    border: 5px solid #fff;
    box-shadow: 0 16px 38px rgba(31, 22, 25, 0.13);
    transition: transform var(--mx-transition), box-shadow var(--mx-transition);
}

.mx-category-bubble:hover img {
    transform: translateY(-3px);
    box-shadow: var(--mx-shadow-hover);
}

.mx-category-bubble strong {
    color: #25191d;
    font-size: 15px;
    font-weight: 800;
}

@media (max-width: 900px) { .mx-category-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .mx-category-bubble img { width: min(138px, 100%); } }

/* ===== Product Grid ===== */
.mx-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(16px, 2vw, 24px);
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 clamp(16px, 5vw, 32px) clamp(24px, 5vw, 60px);
}

.mx-product-card {
    background: #fff;
    border: 1px solid #f0e3e6;
    border-radius: var(--mx-radius);
    box-shadow: var(--mx-shadow);
    overflow: hidden;
    transition: box-shadow var(--mx-transition), transform var(--mx-transition);
    display: flex;
    flex-direction: column;
}

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

.mx-product-image {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--mx-bg);
    position: relative;
}

.mx-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.mx-product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    color: #fff;
    background: var(--mx-accent);
}

.mx-product-badge.discount { background: var(--mx-gold); }
.mx-product-badge.bestseller { background: var(--mx-accent-dark); }

.mx-product-info {
    padding: 14px 16px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mx-product-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--mx-primary);
    line-height: 1.3;
    text-decoration: none;
}

.mx-product-name:hover { color: var(--mx-accent); }

.mx-product-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

.mx-price-current {
    font: 800 18px var(--mx-font-heading);
    color: var(--mx-primary);
}

.mx-price-old {
    font-size: 14px;
    color: var(--mx-soft);
    text-decoration: line-through;
}

.mx-product-meta {
    font-size: 12px;
    color: var(--mx-soft);
}

@media (max-width: 900px) { .mx-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .mx-product-grid { grid-template-columns: 1fr; } }

/* ===== Footer CTA ===== */
.mx-footer-cta {
    margin-top: clamp(24px, 5vw, 60px);
    padding: clamp(42px, 7vw, 82px) clamp(18px, 5vw, 64px);
    background: #181113;
    color: #fff;
    text-align: center;
}

.mx-footer-cta p { margin: 0 0 8px; color: #f7b9ca; font-weight: 800; }

.mx-footer-cta h2 {
    width: min(760px, 100%);
    margin: 0 auto 22px;
    font: 800 clamp(26px, 4vw, 48px) var(--mx-font-heading);
    line-height: 1.08;
    color: #fff;
}

/* ===== Footer ===== */
.mx-footer {
    background: var(--mx-primary);
    color: rgba(255, 255, 255, 0.72);
    padding: clamp(40px, 6vw, 72px) clamp(18px, 5vw, 64px) 24px;
}

.mx-footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: clamp(24px, 4vw, 48px);
}

.mx-footer-brand img { max-height: 54px; margin-bottom: 16px; }
.mx-footer-brand p { font-size: 13px; line-height: 1.6; }

.mx-footer-col h5 {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 16px;
    font-family: var(--mx-font-body);
}

.mx-footer-col ul { list-style: none; padding: 0; margin: 0; }
.mx-footer-col ul li { margin-bottom: 8px; }
.mx-footer-col ul a { color: rgba(255,255,255,0.62); font-size: 13px; }
.mx-footer-col ul a:hover { color: #fff; }

.mx-footer-newsletter {
    background: rgba(255,255,255,0.06);
    border-radius: var(--mx-radius-lg);
    padding: 28px;
    text-align: center;
    margin-bottom: clamp(32px, 5vw, 48px);
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
}

.mx-footer-newsletter strong {
    display: block;
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 6px;
}

.mx-footer-newsletter p {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    margin: 0 0 16px;
}

.mx-footer-newsletter-form {
    display: flex;
    gap: 8px;
    max-width: 420px;
    margin: 0 auto;
}

.mx-footer-newsletter-form input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 14px;
}

.mx-footer-newsletter-form input::placeholder { color: rgba(255,255,255,0.4); }

.mx-footer-newsletter-form button {
    padding: 12px 24px;
    border: none;
    border-radius: 999px;
    background: var(--mx-accent);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: background var(--mx-transition);
    white-space: nowrap;
}

.mx-footer-newsletter-form button:hover { background: var(--mx-accent-dark); }

.mx-footer-trust {
    display: flex;
    justify-content: center;
    gap: clamp(20px, 4vw, 48px);
    flex-wrap: wrap;
    padding: clamp(24px, 4vw, 36px) 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin: clamp(24px, 4vw, 36px) auto;
    max-width: 1180px;
}

.mx-trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.68);
    font-size: 13px;
    font-weight: 600;
}

.mx-trust-item i { font-size: 22px; color: var(--mx-accent); }

.mx-footer-bottom {
    text-align: center;
    font-size: 12px;
    color: rgba(255,255,255,0.42);
    padding-top: 16px;
}

@media (max-width: 900px) {
    .mx-footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
    .mx-footer-inner { grid-template-columns: 1fr; }
    .mx-footer-newsletter-form { flex-direction: column; }
}

/* ===== OpenCart Overrides ===== */
#container { max-width: 100%; }
.container { max-width: 1180px; }

#logo img { max-height: 64px; }

/* Hide default OpenCart header/footer, use theme versions */
nav#top,
header > .container,
footer > .container { display: none !important; }

/* Breadcrumb */
.breadcrumb {
    background: transparent;
    padding: 16px 0;
    font-size: 13px;
}

.breadcrumb a { color: var(--mx-soft); }
.breadcrumb a:hover { color: var(--mx-accent); }

/* Product page */
.product-info .image img { border-radius: var(--mx-radius-lg); }

/* Buttons */
.btn-light { border-radius: 999px; }

/* Alerts */
.alert { border-radius: var(--mx-radius); border: none; }
/* ===== Search Bar (slide-down) ===== */
.mx-search-bar {
    max-height: 0;
    overflow: hidden;
    transition: max-height 300ms ease;
    padding: 0 clamp(18px, 5vw, 64px);
}
.mx-search-bar.mx-search-open {
    max-height: 80px;
    padding-top: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--mx-border);
}
.mx-search-bar .input-group { max-width: 600px; margin: 0 auto; }
.mx-search-bar .form-control { border-radius: 999px 0 0 999px; border-color: var(--mx-border); }
.mx-search-bar .btn { border-radius: 0 999px 999px 0; background: var(--mx-accent); color: #fff; border: none; }
.mx-search-bar .btn:hover { background: var(--mx-accent-dark); }
