/* Hanymish — public theme
   Brand: Hanymish signature purple #8059AD, warm heart-pink accent. */

:root {
    --purple: #8059AD;
    --purple-600: #6d4796;
    --purple-700: #573a7c;
    --purple-800: #3f2a5c;
    --purple-900: #2f1f45;
    --purple-050: #f7f4fb;
    --purple-100: #efe8f7;
    --purple-200: #e2d6f0;
    --accent: #ff5c7c;        /* heart pink, used sparingly */
    --accent-soft: #ffe6ec;

    --ink: #2b2533;
    --heading: #3a2d51;
    --muted: #756d84;
    --bg: #ffffff;
    --bg-soft: #f7f4fb;
    --bg-mute: #efe9f5;
    --line: #ece6f3;

    --radius: 18px;
    --radius-sm: 12px;
    --shadow-sm: 0 4px 16px rgba(63, 42, 92, 0.07);
    --shadow: 0 14px 40px rgba(63, 42, 92, 0.12);
    --shadow-lg: 0 24px 60px rgba(63, 42, 92, 0.16);
    --container: 1220px;

    --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--purple-600); text-decoration: none; transition: color .18s; }
a:hover { color: var(--purple); }

h1, h2, h3, h4 { font-weight: 700; color: var(--heading); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -0.01em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 22px; }
.section { padding: 72px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 36px; flex-wrap: wrap; gap: 12px; }
.section-head h2 { font-family: var(--font-display); font-weight: 600; font-size: 2.1rem; margin: 0; }
.section-link { font-weight: 600; color: var(--purple); }
.section-link:hover { color: var(--purple-700); }

/* Buttons */
.btn { display: inline-block; padding: 14px 30px; border-radius: 50px; font-weight: 600; cursor: pointer; border: 2px solid transparent; transition: .2s; font-size: .95rem; letter-spacing: .01em; }
.btn-primary { background: var(--purple); color: #fff; box-shadow: 0 8px 20px rgba(128, 89, 173, .28); }
.btn-primary:hover { background: var(--purple-700); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(128, 89, 173, .34); }
.btn-outline { background: transparent; border-color: var(--purple); color: var(--purple-600); }
.btn-outline:hover { background: var(--purple); color: #fff; }

/* Topbar */
.topbar { background: var(--purple-800); color: #d8cfe6; font-size: .82rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; height: 40px; }
.topbar a { color: #d8cfe6; margin-right: 18px; font-weight: 500; }
.topbar a:hover { color: #fff; }
.lang-switch { font-weight: 600; border: 1px solid rgba(255,255,255,.28); padding: 4px 16px; border-radius: 40px; margin: 0 !important; }
.lang-switch:hover { background: rgba(255,255,255,.12); }

/* Header */
.site-header { background: rgba(255,255,255,.9); backdrop-filter: saturate(180%) blur(10px); position: sticky; top: 0; z-index: 50; box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 90px; gap: 20px; }
.logo img { height: 44px; width: auto; }
.main-nav > ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; align-items: center; }
.main-nav > ul > li > a { display: flex; align-items: center; gap: 5px; padding: 12px 18px; font-weight: 600; color: var(--heading); border-radius: 10px; }
.main-nav > ul > li > a:hover { background: var(--purple-050); color: var(--purple); }
.sub-caret { font-size: .9em; opacity: .6; transform: translateY(1px); }

/* Multi-level dropdown menus */
.has-sub { position: relative; }
.submenu {
    list-style: none; margin: 0; padding: 8px;
    position: absolute; top: 100%; left: 0; min-width: 250px;
    background: #fff; box-shadow: var(--shadow); border: 1px solid var(--line); border-radius: var(--radius-sm);
    opacity: 0; visibility: hidden; transform: translateY(10px); transition: .18s; z-index: 60;
}
.main-nav .has-sub:hover > .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu li { position: relative; }
.submenu li a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-radius: 9px; color: var(--ink); font-weight: 500; font-size: .93rem; }
.submenu li a:hover { background: var(--purple-050); color: var(--purple); }
/* Nested (level 2+) fly out to the side */
.submenu .submenu { top: -8px; left: 100%; }
.submenu .has-sub > a .sub-caret { transform: rotate(0); margin-left: auto; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 3px; background: var(--purple-700); border-radius: 3px; transition: .2s; }

/* Flash */
.flash { padding: 14px 18px; border-radius: var(--radius-sm); margin: 18px 0; font-weight: 500; }
.flash-success { background: #e7f7ec; color: #1f7a3d; border: 1px solid #b6e6c4; }
.flash-error { background: var(--accent-soft); color: #c0324f; border: 1px solid #f6c6d1; }

/* Hero slider */
.hero-slider { position: relative; overflow: hidden; background: var(--bg-mute); }
.hero-slider .slide { display: none; position: relative; }
.hero-slider .slide.is-active { display: block; animation: fade .6s ease; }
.hero-slider .slide img { width: 100%; height: auto; object-fit: cover; }
@keyframes fade { from { opacity: .35; } to { opacity: 1; } }
.slide-caption { position: absolute; left: 50%; bottom: 15%; transform: translateX(-50%); color: #fff; text-align: center; text-shadow: 0 2px 16px rgba(0,0,0,.45); }
.slide-caption h2 { color: #fff; font-family: var(--font-display); font-size: 2.6rem; }
.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.9); border: 0; width: 50px; height: 50px; border-radius: 50%; font-size: 1.6rem; color: var(--purple-700); cursor: pointer; box-shadow: var(--shadow-sm); transition: .2s; }
.slider-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.slider-arrow.prev { left: 20px; }
.slider-arrow.next { right: 20px; }
.slider-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; }
.slider-dots .dot { width: 11px; height: 11px; border-radius: 50%; border: 0; background: rgba(255,255,255,.55); cursor: pointer; transition: .2s; }
.slider-dots .dot.is-active { background: var(--purple); width: 26px; border-radius: 6px; }

/* Intro */
.intro { text-align: center; background:
    radial-gradient(1200px 400px at 50% -10%, var(--purple-100), transparent),
    var(--bg-soft); }
.intro-inner { max-width: 780px; margin: 0 auto; }
.eyebrow { text-transform: uppercase; letter-spacing: .22em; color: var(--purple); font-weight: 700; font-size: .78rem; margin: 0 0 12px; }
.intro h1 { font-family: var(--font-display); font-weight: 600; font-size: 2.7rem; line-height: 1.12; }
.lead { color: var(--muted); font-size: 1.1rem; margin-bottom: 30px; }

/* Section titles used on inner pages */
.subsection-title { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; margin: 40px 0 22px; }

/* Category grid */
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.category-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: .25s; display: block; border: 1px solid var(--line); }
.category-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: var(--purple-200); }
.category-card-img { aspect-ratio: 4/3; background: var(--bg-mute); }
.category-card-img img { width: 100%; height: 100%; object-fit: cover; }
.category-card-body { padding: 20px 22px; text-align: center; }
.category-card-body h3 { margin: 0 0 8px; font-size: 1.2rem; }
.category-meta { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.category-count, .category-subcount { font-weight: 600; font-size: .8rem; padding: 3px 12px; border-radius: 40px; }
.category-count { color: var(--purple); background: var(--purple-050); }
.category-subcount { color: var(--accent); background: var(--accent-soft); }

/* Product grid */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.product-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: .25s; display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; }
.product-card-img { aspect-ratio: 1/1; background: #fff; padding: 16px; display: flex; align-items: center; justify-content: center; }
.product-card-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .3s; }
.product-card:hover .product-card-img img { transform: scale(1.05); }
.product-card-body { padding: 16px 18px 22px; border-top: 1px solid var(--line); text-align: center; }
.product-card-body h3 { font-size: 1rem; margin: 0 0 8px; min-height: 2.4em; }
.product-card-link { color: var(--purple); font-weight: 600; font-size: .85rem; }

/* Page hero / breadcrumb */
.page-hero { background:
    radial-gradient(900px 300px at 10% -20%, var(--purple-100), transparent),
    var(--bg-soft); padding: 52px 0; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-family: var(--font-display); font-weight: 600; font-size: 2.5rem; margin: 0 0 10px; }
.breadcrumb { color: var(--muted); font-size: .9rem; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--purple); }
.page-hero-desc { color: var(--muted); margin-top: 14px; max-width: 720px; }

/* Catalog layout */
.catalog-layout { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: start; }
.catalog-aside { background: var(--bg-soft); border-radius: var(--radius); padding: 24px; position: sticky; top: 116px; }
.catalog-aside h3 { font-size: 1.05rem; }
.cat-list { list-style: none; margin: 0; padding: 0; }
.cat-list .cat-list { margin-left: 12px; border-left: 2px solid var(--line); padding-left: 8px; }
.cat-list li a { display: block; padding: 9px 12px; border-radius: 9px; color: var(--ink); font-weight: 500; font-size: .93rem; }
.cat-list li a:hover, .cat-list li.active > a { background: #fff; color: var(--purple); box-shadow: var(--shadow-sm); }
.empty-state { color: var(--muted); padding: 46px 0; text-align: center; }
.subcat-grid { margin-bottom: 12px; }

/* Product detail */
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; margin-top: 26px; }
.gallery-main { border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; background: #fff; aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumbs { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.gthumb { width: 80px; height: 80px; border: 1px solid var(--line); border-radius: 12px; padding: 6px; background: #fff; cursor: pointer; transition: .18s; }
.gthumb.is-active, .gthumb:hover { border-color: var(--purple); }
.gthumb img { width: 100%; height: 100%; object-fit: contain; }
.product-cat-tag { display: inline-block; background: var(--purple-050); color: var(--purple-600); padding: 6px 16px; border-radius: 40px; font-size: .8rem; font-weight: 600; margin-bottom: 14px; }
.product-info h1 { font-family: var(--font-display); font-weight: 600; font-size: 2.2rem; }
.product-description { color: var(--muted); margin: 18px 0 26px; }
.variants-title { font-size: 1.05rem; margin-top: 26px; }
.variants-list { list-style: none; padding: 0; margin: 0 0 30px; display: flex; flex-wrap: wrap; gap: 10px; }
.variants-list li { background: var(--bg-soft); border: 1px solid var(--line); padding: 9px 18px; border-radius: 40px; font-weight: 500; font-size: .9rem; }
.related { margin-top: 72px; }
.related h2 { font-family: var(--font-display); font-weight: 600; margin-bottom: 28px; }

/* News */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.news-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: .25s; }
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.news-card-img { aspect-ratio: 16/9; background: var(--bg-mute); }
.news-card-img img { width: 100%; height: 100%; object-fit: cover; }
.news-card-body { padding: 20px 22px 24px; }
.news-card-body time { color: var(--purple); font-weight: 600; font-size: .8rem; }
.news-card-body h3 { font-size: 1.12rem; margin: 6px 0 8px; }
.news-card-body p { color: var(--muted); font-size: .92rem; margin: 0; }

/* Article */
.article-layout { display: grid; grid-template-columns: 1fr 290px; gap: 48px; align-items: start; }
.article-hero { border-radius: var(--radius); margin: 14px 0 24px; }
.article-date { color: var(--purple); font-weight: 600; }
.article-aside { background: var(--bg-soft); border-radius: var(--radius); padding: 26px; position: sticky; top: 116px; }
.recent-list { list-style: none; padding: 0; margin: 0; }
.recent-list li { padding: 11px 0; border-bottom: 1px solid var(--line); }
.recent-list li:last-child { border-bottom: 0; }

/* Prose */
.prose { max-width: 820px; color: #40384d; }
.prose h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.7rem; margin-top: 1.4em; }
.prose h3 { font-size: 1.3rem; margin-top: 1.2em; }
.prose p { margin: 0 0 1.1em; }
.prose a { color: var(--purple); text-decoration: underline; }
.prose img { border-radius: var(--radius); margin: 1em 0; }
.prose ul, .prose ol { margin: 0 0 1.1em; padding-left: 1.4em; }

/* Contact */
.contact-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 52px; align-items: start; }
.contact-form-wrap h2, .contact-info h2 { font-family: var(--font-display); font-weight: 600; }
.contact-form label { display: block; font-weight: 600; color: var(--heading); margin-bottom: 18px; font-size: .9rem; }
.contact-form input, .contact-form textarea { width: 100%; margin-top: 7px; padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-family: inherit; font-size: .95rem; font-weight: 400; background: var(--bg-soft); transition: .18s; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--purple); background: #fff; box-shadow: 0 0 0 4px var(--purple-050); }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.hp { position: absolute; left: -9999px; }
.contact-info { background: var(--bg-soft); border-radius: var(--radius); padding: 32px; }
.contact-block { margin-bottom: 24px; }
.contact-block h4 { margin: 0 0 4px; color: var(--purple-600); font-size: .92rem; }
.contact-block p { margin: 0; color: var(--ink); }
.contact-map { margin-top: 20px; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-sm); }
.contact-map iframe { display: block; width: 100%; border: 0; }

/* Partner (ALDO / Taşpınar Grubu) banner */
.partner-banner { background: linear-gradient(180deg, #fff, var(--bg-soft)); border-top: 1px solid var(--line); }
.partner-inner { display: flex; align-items: center; justify-content: center; gap: 22px; padding: 30px 22px; flex-wrap: wrap; text-align: center; }
.partner-logo { height: 68px; width: auto; }
.partner-text { margin: 0; color: var(--heading); font-size: 1.05rem; font-weight: 500; }
.partner-text strong { color: var(--purple); font-weight: 700; }

/* Footer */
.site-footer { background: linear-gradient(160deg, var(--purple-800), var(--purple-900)); color: #cfc5df; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding: 64px 22px; }
.footer-logo { height: 44px; margin-bottom: 18px; }
.footer-brand p { color: #b3a8c9; font-size: .92rem; max-width: 260px; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; font-weight: 600; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #cfc5df; font-size: .92rem; }
.footer-col a:hover { color: #fff; padding-left: 3px; }
.footer-contact { color: #cfc5df; font-size: .9rem; line-height: 1.8; }
.footer-contact a { color: #cfc5df; }
.footer-contact a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 20px 0; font-size: .85rem; color: #9d92b5; text-align: center; }

/* Responsive */
@media (max-width: 1000px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .article-layout, .contact-layout { grid-template-columns: 1fr; }
    .catalog-layout { grid-template-columns: 1fr; }
    .catalog-aside { position: static; }
}
@media (max-width: 840px) {
    .nav-toggle { display: flex; }
    .main-nav { position: fixed; inset: 0 0 0 28%; background: #fff; transform: translateX(100%); transition: .25s; padding: 90px 24px 24px; overflow-y: auto; box-shadow: var(--shadow-lg); }
    .main-nav.open { transform: translateX(0); }
    .main-nav > ul { flex-direction: column; align-items: stretch; gap: 2px; }
    .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding-left: 14px; min-width: 0; }
    .submenu .submenu { left: 0; }
    .product-detail-grid { grid-template-columns: 1fr; gap: 30px; }
    .category-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .form-grid-2 { grid-template-columns: 1fr; }
    .intro h1 { font-size: 2.1rem; }
    .section { padding: 52px 0; }
}
@media (max-width: 540px) {
    .category-grid, .news-grid, .product-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .slide-caption h2 { font-size: 1.4rem; }
    .partner-inner { flex-direction: column; gap: 14px; }
    .section-head h2, .page-hero h1 { font-size: 1.7rem; }
}
