/* ============================================================
   Shopify Store — Storefront Design System
   Inspired by Minimog Fashion (fashion.minimog.co)
   Font: Jost · Palette: ink / sand / soft gray · Sharp edges
   ============================================================ */

:root {
    --ink: #111;
    --ink-2: #666;
    --ink-3: #999;
    --bg: #ffffff;
    --bg-soft: #f5f5f5;
    --bg-sand: #f4f0e9;
    --border: #eeeeee;
    --border-dark: #ddd;

    --btn-bg: #111;
    --btn-bg-hover: #000;
    --btn-text: #ffffff;

    --sale: #da3f3f;
    --new: #64bf99;

    --font-heading: 'Jost', 'Segoe UI', sans-serif;
    --font-body: 'Jost', 'Segoe UI', sans-serif;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-body);
    font-weight: 400;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--ink);
    letter-spacing: 0.2px;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
a:hover { color: var(--ink); }

img { max-width: 100%; }

/* ---------- Announcement / Top Bar ---------- */
.top-bar {
    background: var(--ink);
    color: #fff;
    font-size: 0.78rem;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 9px 0;
}
.top-bar a { color: #fff; opacity: 0.9; }
.top-bar a:hover { opacity: 1; }
.top-bar .text-muted { color: rgba(255, 255, 255, 0.75) !important; }

/* ---------- Main Navigation ---------- */
.navbar {
    background: var(--bg) !important;
    border-bottom: 1px solid var(--border);
    padding: 0;
}
.navbar .container { flex-wrap: nowrap; }

.navbar-brand {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--ink) !important;
}
.navbar-brand .brand-dot { color: var(--sale); }

.navbar-nav .nav-link {
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--ink) !important;
    padding: 22px 14px !important;
    position: relative;
}
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    left: 14px; right: 14px; bottom: 12px;
    height: 1px;
    background: var(--ink);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after { transform: scaleX(1); }

.navbar .dropdown-menu {
    border: 1px solid var(--border);
    border-radius: 0;
    box-shadow: var(--shadow-md);
    margin-top: 0;
    padding: 10px 0;
}
.navbar .dropdown-item {
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    padding: 8px 22px;
    color: var(--ink);
}
.navbar .dropdown-item:hover { background: var(--bg-sand); color: var(--ink); }

/* Header icons */
.nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: var(--ink);
    font-size: 1.05rem;
    transition: var(--transition);
    position: relative;
}
.nav-icon:hover { background: var(--bg-soft); color: var(--ink); }

.cart-count {
    position: absolute;
    top: -2px; right: -2px;
    min-width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
}

.header-search input {
    border-radius: 0;
    border: 1px solid var(--border);
    font-size: 0.9rem;
}
.header-search input:focus {
    border-color: var(--ink);
    box-shadow: none;
}

.navbar-toggler { border: none; color: var(--ink); }
.navbar-toggler:focus { box-shadow: none; }

/* ---------- Buttons ---------- */
.btn {
    border-radius: 0;
    font-weight: 500;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    font-size: 0.8rem;
    padding: 12px 28px;
    transition: var(--transition);
}
.btn-primary {
    background: var(--btn-bg);
    border-color: var(--btn-bg);
    color: var(--btn-text);
}
.btn-primary:hover {
    background: var(--btn-bg-hover);
    border-color: var(--btn-bg-hover);
    color: var(--btn-text);
}
.btn-outline-primary {
    border: 1px solid var(--ink);
    color: var(--ink);
    background: transparent;
}
.btn-outline-primary:hover {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}
.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
}
.btn-outline-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-dark { background: var(--ink); border-color: var(--ink); }
.btn-dark:hover { background: #000; border-color: #000; color: #fff; }

.btn-underline {
    background: none;
    border: 0;
    border-bottom: 1px solid var(--ink);
    border-radius: 0;
    padding: 4px 0;
    color: var(--ink);
    letter-spacing: 2px;
    font-size: 0.78rem;
}
.btn-underline:hover { border-bottom-width: 2px; }
.btn-underline::after { content: ' →'; }

/* Quick-add inside product cards */
.product-card .btn-outline-success {
    border: 1px solid var(--ink);
    background: transparent;
    color: var(--ink);
}
.product-card .btn-outline-success:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Section headers ---------- */
.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 34px;
}
.section-heading h2 {
    font-size: 1.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    margin: 0;
}
.section-heading .section-eyebrow {
    font-size: 0.72rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--ink-2);
    margin-bottom: 6px;
}

/* ---------- Product Cards (Minimog) ---------- */
.product-card {
    position: relative;
    border: 0 !important;
    border-radius: 0 !important;
    background: var(--bg) !important;
    overflow: visible;
    transform: none !important;
    box-shadow: none !important;
    transition: var(--transition);
}

.product-card .card-img-top,
.product-card__media {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: var(--bg-soft);
    display: block;
    overflow: hidden;
    transition: transform 0.65s ease;
    border-radius: 0;
}
.product-card:hover .card-img-top { transform: scale(1.06); }

.product-card .card-body {
    padding: 14px 0 0;
    background: var(--bg) !important;
}

.product-card .card-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 500;
    color: var(--ink);
    line-height: 1.4;
    display: inline;
    background-image: linear-gradient(to right, currentColor, currentColor);
    background-repeat: no-repeat;
    background-size: 0% 1px;
    background-position: left calc(100% - 2px);
    transition: background-size 0.3s ease;
    padding-bottom: 2px;
}
.product-card:hover .card-title { background-size: 100% 1px; }

.product-card .card-text { margin-bottom: 0; }

/* Prices */
.price-regular { font-size: 1rem; font-weight: 500; color: var(--ink); }
.price-compare { color: var(--ink-3); text-decoration: line-through; margin-right: 10px; font-size: 0.9rem; }
.price-sale { color: var(--sale); font-size: 1.05rem; font-weight: 500; }

/* Product tags (NEW / SALE / Sold out) — Minimog style, top-left */
.product-tag {
    position: absolute !important;
    top: 12px !important;
    left: 12px !important;
    right: auto !important;
    z-index: 2;
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 2px;
    color: #fff;
}
.product-card .badge {
    position: absolute !important;
    top: 12px !important;
    left: 12px !important;
    right: auto !important;
    z-index: 2;
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 2px;
    color: #fff;
}
.product-card .badge.bg-danger { background: var(--sale) !important; }
.product-card .badge.bg-info { background: var(--new) !important; }
.product-card .badge.bg-secondary { background: var(--ink) !important; }

/* Quick add bar, slides up on hover */
.product-card__quick {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    z-index: 3;
    background: var(--btn-bg);
    color: #fff;
    text-align: center;
    padding: 13px 8px;
    font-size: 0.74rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
    border: 0;
    cursor: pointer;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    width: 100%;
}
.product-card__quick:hover { background: var(--btn-bg-hover); color: #fff; }
.product-card:hover .product-card__quick { transform: translateY(0); }

/* Rating */
.rating { display: inline-flex; align-items: center; gap: 2px; }
.rating .fa-star { font-size: 0.72rem; }
.rating small { font-size: 0.78rem; }

/* ---------- Hero ---------- */
.hero-section {
    background: var(--bg-sand);
    padding: 0 !important;
    overflow: hidden;
}
.hero-section::before { display: none; }
.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
    min-height: 560px;
    padding: 60px 0;
}
.hero-eyebrow {
    font-size: 0.74rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--ink-2);
    margin-bottom: 18px;
}
.hero-title {
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: 1px;
    color: var(--ink);
}
.hero-title em { font-style: italic; font-weight: 400; }
.hero-text {
    font-size: 1.05rem;
    color: var(--ink-2);
    max-width: 460px;
    margin: 22px 0 34px;
}
.hero-cta { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.hero-media {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--ink);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Category Tiles ---------- */
.cat-tile {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1.1;
    background: var(--bg-sand);
    overflow: hidden;
    transition: var(--transition);
}
.cat-tile:hover { background: var(--ink); }
.cat-tile .cat-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.6rem;
    color: var(--ink);
    opacity: 0.35;
    transition: var(--transition);
}
.cat-tile:hover .cat-icon { color: #fff; opacity: 0.5; transform: scale(1.08); }
.cat-tile .cat-name {
    position: absolute;
    left: 20px; bottom: 16px;
    font-family: var(--font-heading);
    font-size: 1.02rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--ink);
    transition: var(--transition);
}
.cat-tile:hover .cat-name { color: #fff; }

/* ---------- Perks Strip ---------- */
.perks-strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.perk {
    padding: 38px 20px;
    text-align: center;
    border-right: 1px solid var(--border);
}
.perk:last-child { border-right: 0; }
.perk i { font-size: 1.7rem; color: var(--ink); margin-bottom: 14px; }
.perk h6 {
    font-size: 0.82rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 6px;
    font-weight: 500;
}
.perk small { color: var(--ink-2); font-size: 0.85rem; }

/* ---------- Newsletter ---------- */
.newsletter-section {
    background: var(--ink) !important;
    color: #fff !important;
    border-radius: 0 !important;
    padding: 60px 0 !important;
}
.newsletter-section h3 {
    color: #fff;
    font-size: 1.7rem;
    font-weight: 400;
    letter-spacing: 1px;
    margin-bottom: 8px;
}
.newsletter-section p { color: rgba(255, 255, 255, 0.7); }
.newsletter-section .form-control {
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 0;
    color: #fff;
    padding: 12px 4px;
}
.newsletter-section .form-control:focus { background: transparent; color: #fff; border-bottom-color: #fff; box-shadow: none; }
.newsletter-section .form-control::placeholder { color: rgba(255, 255, 255, 0.5); }
.newsletter-section .btn-primary { background: #fff; border-color: #fff; color: var(--ink); }
.newsletter-section .btn-primary:hover { background: rgba(255, 255, 255, 0.85); }

/* ---------- Footer (light, Minimog) ---------- */
.site-footer {
    background: var(--bg-soft);
    color: var(--ink);
    padding: 64px 0 0;
    margin-top: 70px;
}
.site-footer h5 {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 20px;
}
.site-footer p, .site-footer li { font-size: 0.92rem; color: var(--ink-2); }
.site-footer ul { list-style: none; padding: 0; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer ul a { color: var(--ink-2); }
.site-footer ul a:hover { color: var(--ink); text-decoration: underline; }
.site-footer .footer-brand {
    font-size: 1.4rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--ink);
}
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
    width: 40px; height: 40px;
    border: 1px solid var(--border-dark);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    font-size: 0.9rem;
}
.footer-social a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.site-footer .footer-bottom {
    border-top: 1px solid var(--border);
    margin-top: 48px;
    padding: 18px 0;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    color: var(--ink-2);
}

/* ---------- Forms ---------- */
.form-control, .form-select {
    border-radius: 4px;
    border: 1px solid var(--border-dark);
    padding: 10px 14px;
    font-size: 0.95rem;
    transition: var(--transition);
}
.form-control:focus, .form-select:focus {
    border-color: var(--ink);
    box-shadow: 0 0 0 0.15rem rgba(17, 17, 17, 0.08);
}
.form-label { font-size: 0.8rem; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-2); }

/* ---------- Alerts & flash ---------- */
.alert { border-radius: 0; border: 0; border-left: 3px solid; }
.alert-success { background: #f0f7f2; border-left-color: var(--new); color: #1d5c42; }
.alert-danger { background: #fdf1f1; border-left-color: var(--sale); color: #8f2323; }
.alert-info { background: var(--bg-sand); border-left-color: var(--ink); color: var(--ink); }

/* ---------- Pagination ---------- */
.pagination .page-link {
    border: 0;
    border-radius: 0 !important;
    color: var(--ink);
    font-size: 0.85rem;
    padding: 8px 14px;
    margin: 0 2px;
}
.pagination .page-item.active .page-link { background: var(--ink); border-color: var(--ink); color: #fff; }
.pagination .page-link:hover { background: var(--bg-sand); color: var(--ink); }

/* ---------- Misc components ---------- */
.card { border-radius: 0; border: 1px solid var(--border); }
.card.shadow-sm { box-shadow: var(--shadow-sm) !important; }

.checkout-summary, .cart-summary-box {
    background: var(--bg-soft);
    border-radius: 0;
    padding: 28px;
}
.cart-item { border-bottom: 1px solid var(--border); padding: 18px 0; }

.table { font-size: 0.92rem; }
.table thead th {
    font-size: 0.72rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--ink-2);
    border-bottom: 1px solid var(--border-dark);
}

/* Product detail page */
.product-gallery { position: sticky; top: 90px; }
.product-gallery .main-image { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }

.quantity-input {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border-dark);
}
.quantity-input button {
    width: 40px; height: 44px;
    background: none; border: 0; color: var(--ink); font-size: 1rem;
}
.quantity-input input {
    width: 48px; text-align: center;
    border: 0; border-left: 1px solid var(--border); border-right: 1px solid var(--border);
    height: 44px; outline: none;
}

/* Wishlist heart icon states */
.text-danger { color: var(--sale) !important; }
.fa-star.text-warning { color: #f5b301 !important; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-soft); }
::-webkit-scrollbar-thumb { background: #ccc; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-3); }

/* ---------- Toast ---------- */
.toast { border-radius: 4px; box-shadow: var(--shadow-md); border: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
    .navbar .container { flex-wrap: wrap; }
    .navbar-nav .nav-link { padding: 12px 8px !important; }
    .hero-inner { grid-template-columns: 1fr; min-height: auto; padding: 56px 0 64px; text-align: center; }
    .hero-text { margin-left: auto; margin-right: auto; }
    .hero-cta { justify-content: center; }
    .hero-media { max-height: 420px; }
    .perk { border-right: 0; border-bottom: 1px solid var(--border); }
    .newsletter-section { padding: 44px 0 !important; }
}

@media (max-width: 576px) {
    .hero-title { font-size: 2.1rem; }
    .grid-products { row-gap: 28px; }
}

/* ---------- Animations ---------- */
.fade-in-up { animation: fadeInUp 0.6s ease both; }
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}