
/*
Theme Name: Nashmora
Theme URI: https://nashmora.com
Author: Nashmora
Author URI: https://nashmora.com
Description: A bespoke, mobile-first luxury modest fashion WooCommerce theme.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: nashmora
Tags: ecommerce, custom-theme, woocommerce, fashion, responsive
*/

/* =========================================
   1. DESIGN SYSTEM
========================================= */

:root {
    --nm-ink: #302820;
    --nm-ink-soft: #51463b;
    --nm-cream: #faf7f1;
    --nm-ivory: #fffdf9;
    --nm-beige: #e9dfd0;
    --nm-taupe: #c9b8a1;
    --nm-gold: #ad9061;
    --nm-muted: #81766b;
    --nm-border: #e8e0d6;
    --nm-white: #ffffff;
    --nm-success: #477456;
    --nm-danger: #a33c35;

    --nm-font-body: Arial, Helvetica, sans-serif;
    --nm-font-heading: Georgia, 'Times New Roman', serif;

    --nm-container: 1320px;
    --nm-page-gutter: 18px;

    --nm-radius-sm: 2px;
    --nm-radius-md: 5px;

    --nm-shadow: 0 5px 24px rgba(48, 40, 32, 0.07);
    --nm-transition: 220ms ease;
}

/* =========================================
   2. RESET
========================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-padding-top: 80px;
}

body {
    margin: 0;
    background: var(--nm-white);
    color: var(--nm-ink);
    font-family: var(--nm-font-body);
    font-size: 14px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

body,
button,
input,
select,
textarea {
    font-family: var(--nm-font-body);
}

img,
picture,
video,
canvas,
svg {
    max-width: 100%;
}

img {
    height: auto;
    vertical-align: middle;
}

button,
input,
select,
textarea {
    font-size: 16px;
}

button,
[type="button"],
[type="submit"] {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
    transition:
        color var(--nm-transition),
        background-color var(--nm-transition),
        border-color var(--nm-transition);
}

a:hover {
    color: var(--nm-gold);
}

ul,
ol {
    padding-left: 22px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0 0 16px;
    color: var(--nm-ink);
    font-family: var(--nm-font-heading);
    font-weight: 400;
    line-height: 1.2;
}

p {
    margin: 0 0 18px;
}

hr {
    border: 0;
    border-top: 1px solid var(--nm-border);
    margin: 28px 0;
}

:focus-visible {
    outline: 2px solid var(--nm-gold);
    outline-offset: 4px;
}

::selection {
    background: var(--nm-beige);
    color: var(--nm-ink);
}

/* =========================================
   3. LAYOUT
========================================= */

.nm-container {
    width: 100%;
    max-width: var(--nm-container);
    margin-inline: auto;
    padding-inline: var(--nm-page-gutter);
}

.nm-section {
    padding-block: 48px;
}

.nm-section-heading {
    margin-bottom: 28px;
    text-align: center;
}

.nm-section-heading h2 {
    margin-block: 10px;
    font-size: clamp(29px, 7vw, 46px);
    letter-spacing: -0.7px;
}

.nm-section-heading p {
    max-width: 520px;
    margin: 0 auto;
    color: var(--nm-muted);
    line-height: 1.8;
}

.nm-eyebrow {
    color: var(--nm-gold);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2.5px;
    line-height: 1.6;
    text-transform: uppercase;
}

.nm-muted {
    color: var(--nm-muted);
}

/* =========================================
   4. BUTTONS
========================================= */

.nm-button,
a.nm-button,
button.nm-button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 22px;
    border: 1px solid var(--nm-ink);
    border-radius: var(--nm-radius-sm);
    background: var(--nm-ink);
    color: var(--nm-white);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.4px;
    line-height: 1.4;
    text-align: center;
    text-transform: uppercase;
    transition: all var(--nm-transition);
}

.nm-button:hover,
a.nm-button:hover,
button.nm-button:hover {
    border-color: var(--nm-gold);
    background: var(--nm-gold);
    color: var(--nm-white);
}

.nm-button-outline {
    border-color: var(--nm-ink);
    background: transparent;
    color: var(--nm-ink);
}

.nm-button-outline:hover {
    background: var(--nm-ink);
    color: var(--nm-white);
}

.nm-button-light {
    border-color: var(--nm-white);
    background: transparent;
    color: var(--nm-white);
}

.nm-button-light:hover {
    border-color: var(--nm-white);
    background: var(--nm-white);
    color: var(--nm-ink);
}

/* =========================================
   5. FORMS
========================================= */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"],
input[type="search"],
input[type="url"],
select,
textarea {
    width: 100%;
    min-height: 46px;
    padding: 12px 14px;
    border: 1px solid var(--nm-border);
    border-radius: var(--nm-radius-sm);
    background: var(--nm-white);
    color: var(--nm-ink);
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--nm-gold);
    outline: none;
}

input::placeholder,
textarea::placeholder {
    color: #9b9186;
}

label {
    display: block;
    margin-bottom: 6px;
    color: var(--nm-ink);
    font-size: 12px;
    font-weight: 600;
}

/* =========================================
   6. WOOCOMMERCE PRODUCT GRIDS
========================================= */

.nm-product-grid,
.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nm-product-card,
.woocommerce ul.products li.product {
    width: auto !important;
    min-width: 0;
    margin: 0 !important;
    float: none !important;
}

.nm-product-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: var(--nm-cream);
}

.nm-product-image img,
.nm-product-card img,
.woocommerce ul.products li.product img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 0 12px;
    object-fit: cover;
}

.nm-product-image img {
    height: 100%;
}

.nm-product-card h3,
.nm-product-card .woocommerce-loop-product__title,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    margin: 8px 0;
    color: var(--nm-ink);
    font-family: var(--nm-font-body);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.6;
}

.nm-product-price,
.woocommerce ul.products li.product .price {
    color: var(--nm-ink);
    font-size: 13px;
    font-weight: 600;
}

.woocommerce ul.products li.product .price del {
    color: var(--nm-muted);
    opacity: 0.7;
    font-weight: 400;
}

.woocommerce ul.products li.product .price ins {
    text-decoration: none;
}

.woocommerce span.onsale {
    min-height: auto;
    min-width: auto;
    padding: 7px 10px;
    border-radius: 0;
    background: var(--nm-ink);
    color: var(--nm-white);
    font-size: 9px;
    line-height: 1.4;
}

/* =========================================
   7. WOOCOMMERCE GENERAL
========================================= */

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    border-top-color: var(--nm-gold);
    background: var(--nm-cream);
    color: var(--nm-ink);
}

.woocommerce-message::before,
.woocommerce-info::before {
    color: var(--nm-gold);
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
    min-height: 42px;
    padding: 13px 18px;
    border: 0;
    border-radius: var(--nm-radius-sm);
    background: var(--nm-ink);
    color: var(--nm-white);
    font-size: 11px;
    font-weight: 600;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
    background: var(--nm-gold);
    color: var(--nm-white);
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
    color: var(--nm-ink);
    font-size: 21px;
}

.woocommerce div.product form.cart .quantity {
    margin-right: 10px;
}

.woocommerce div.product form.cart .button {
    min-height: 46px;
}

.woocommerce table.shop_table {
    border-color: var(--nm-border);
    border-radius: var(--nm-radius-sm);
    font-size: 13px;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
    padding: 12px;
}

.woocommerce .quantity .qty {
    min-height: 44px;
    width: 70px;
    border: 1px solid var(--nm-border);
}

/* =========================================
   8. ACCESSIBILITY
========================================= */

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link:focus {
    z-index: 999999;
    top: 10px;
    left: 10px;
    width: auto;
    height: auto;
    padding: 12px 18px;
    clip: auto;
    background: var(--nm-white);
    color: var(--nm-ink);
}

/* =========================================
   9. TABLET
========================================= */

@media (min-width: 600px) {
    :root {
        --nm-page-gutter: 28px;
    }

    .nm-section {
        padding-block: 68px;
    }

    .nm-product-grid,
    .woocommerce ul.products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 32px 18px;
    }
}

/* =========================================
   10. DESKTOP
========================================= */

@media (min-width: 1024px) {
    :root {
        --nm-page-gutter: 40px;
    }

    body {
        font-size: 15px;
    }

    .nm-section {
        padding-block: 88px;
    }

    .nm-product-grid,
    .woocommerce ul.products {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 36px 22px;
    }
}

/* =========================================
   11. REDUCED MOTION
========================================= */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}







/* =========================================
   NASHMORA ARCHIVES AND BLOG
========================================= */

.nm-main {
    min-height: 55vh;
    padding-block: 40px 64px;
}

.nm-archive-header {
    margin-bottom: 35px;
    padding-block: 20px 10px;
    text-align: center;
}

.nm-archive-title {
    margin: 12px 0;
    font-size: clamp(30px, 6vw, 46px);
}

.nm-archive-description {
    max-width: 650px;
    margin: 12px auto;
    color: var(--nm-muted);
    line-height: 1.8;
}

.nm-post-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 35px 18px;
}

.nm-post-card {
    min-width: 0;
}

.nm-post-image {
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--nm-cream);
}

.nm-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 350ms ease;
}

.nm-post-card:hover .nm-post-image img {
    transform: scale(1.03);
}

.nm-post-placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    background: var(--nm-beige);
    color: var(--nm-ink);
    font-family: var(--nm-font-heading);
    font-size: 30px;
}

.nm-post-content {
    padding-top: 16px;
}

.nm-post-meta {
    margin-bottom: 10px;
    color: var(--nm-muted);
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nm-post-title {
    margin-bottom: 10px;
    font-size: 25px;
}

.nm-post-title a:hover {
    color: var(--nm-gold);
}

.nm-post-excerpt {
    color: var(--nm-muted);
    font-size: 13px;
    line-height: 1.8;
}

.nm-post-link {
    display: inline-flex;
    gap: 9px;
    margin-top: 8px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nm-pagination {
    margin-top: 45px;
    text-align: center;
}

.nm-pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.nm-pagination .page-numbers {
    display: inline-flex;
    min-width: 40px;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border: 1px solid var(--nm-border);
    font-size: 12px;
}

.nm-pagination .page-numbers.current,
.nm-pagination .page-numbers:hover {
    border-color: var(--nm-ink);
    background: var(--nm-ink);
    color: var(--nm-white);
}

.nm-empty-state {
    padding-block: 60px;
    text-align: center;
}

.nm-empty-state p {
    margin-block: 16px 25px;
    color: var(--nm-muted);
}

@media (min-width: 600px) {
    .nm-post-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .nm-main {
        padding-block: 65px 90px;
    }

    .nm-post-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 45px 25px;
    }
}







/* =========================================
   NASHMORA HEADER
========================================= */

.nm-site {
    position: relative;
    z-index: 100;
}

.nm-announcement {
    padding: 8px 12px;
    background: var(--nm-ink);
    color: var(--nm-white);
    text-align: center;
}

.nm-announcement p {
    margin: 0;
    font-size: 9px;
    letter-spacing: 1.2px;
    line-height: 1.6;
    text-transform: uppercase;
}

.nm-header {
    position: relative;
    z-index: 100;
    background: var(--nm-white);
    border-bottom: 1px solid var(--nm-border);
}

.nm-header-main {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    min-height: 66px;
    align-items: center;
    gap: 10px;
}

.nm-menu-toggle,
.nm-search-toggle,
.nm-account-link,
.nm-cart-link {
    display: inline-flex;
    position: relative;
    width: 38px;
    height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--nm-ink);
}

.nm-menu-toggle {
    flex-direction: column;
    gap: 5px;
}

.nm-menu-toggle span {
    display: block;
    width: 20px;
    height: 1.5px;
    background: currentColor;
    transition: transform 200ms ease;
}

.nm-menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(6.5px) rotate(45deg);
}

.nm-menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nm-menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-6.5px) rotate(-45deg);
}

.nm-brand {
    min-width: 0;
    text-align: center;
}

.nm-brand-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.nm-brand-name {
    font-family: var(--nm-font-heading);
    font-size: 24px;
    letter-spacing: 3px;
    line-height: 1.15;
}

.nm-brand-tagline {
    margin-top: 4px;
    color: var(--nm-gold);
    font-size: 7px;
    letter-spacing: 2.5px;
}

.nm-logo-image {
    display: block;
    width: auto;
    max-width: 145px;
    max-height: 48px;
    object-fit: contain;
}

.nm-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1px;
}

.nm-header-actions svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nm-cart-count {
    position: absolute;
    top: 2px;
    right: -1px;
    display: flex;
    min-width: 16px;
    height: 16px;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border-radius: 50%;
    background: var(--nm-gold);
    color: white;
    font-size: 9px;
    line-height: 1;
}

.nm-desktop-navigation {
    display: none;
}

/* SEARCH */

.nm-search-panel {
    padding: 15px 0;
    border-top: 1px solid var(--nm-border);
    background: var(--nm-white);
}

.nm-search-panel[hidden],
.nm-mobile-navigation[hidden] {
    display: none !important;
}

.nm-search-form {
    display: flex;
    gap: 8px;
}

.nm-search-form input[type="search"] {
    min-width: 0;
    flex: 1;
    font-size: 14px;
}

.nm-search-submit {
    padding: 0 18px;
    border: 0;
    background: var(--nm-ink);
    color: var(--nm-white);
    font-size: 11px;
}

/* MOBILE MENU */

.nm-mobile-navigation {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    max-height: calc(100dvh - 100px);
    padding: 25px 22px 32px;
    overflow-y: auto;
    border-top: 1px solid var(--nm-border);
    background: var(--nm-white);
    box-shadow: var(--nm-shadow);
}

.nm-mobile-menu-heading {
    padding-bottom: 16px;
}

.nm-mobile-menu,
.nm-mobile-menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.nm-mobile-menu li {
    border-bottom: 1px solid var(--nm-border);
}

.nm-mobile-menu a {
    display: block;
    padding: 15px 0;
    color: var(--nm-ink);
    font-family: var(--nm-font-heading);
    font-size: 20px;
}

.nm-mobile-menu .sub-menu {
    padding-left: 15px;
    border-top: 1px solid var(--nm-border);
}

.nm-mobile-menu .sub-menu a {
    font-family: var(--nm-font-body);
    font-size: 13px;
}

.nm-mobile-account {
    display: block;
    margin-top: 22px;
    padding: 13px 16px;
    border: 1px solid var(--nm-border);
    font-size: 12px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* DESKTOP HEADER */

@media (min-width: 1024px) {
    .nm-announcement p {
        font-size: 10px;
    }

    .nm-header-main {
        grid-template-columns: 200px minmax(0, 1fr) 150px;
        min-height: 88px;
        gap: 20px;
    }

    .nm-menu-toggle {
        display: none;
    }

    .nm-brand {
        text-align: left;
    }

    .nm-brand-link {
        align-items: flex-start;
    }

    .nm-brand-name {
        font-size: 29px;
    }

    .nm-logo-image {
        max-width: 185px;
        max-height: 58px;
    }

    .nm-desktop-navigation {
        display: block;
    }

    .nm-desktop-menu {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: clamp(15px, 2vw, 32px);
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .nm-desktop-menu > li {
        position: relative;
    }

    .nm-desktop-menu > li > a {
        display: block;
        padding: 15px 0;
        font-size: 10px;
        font-weight: 600;
        letter-spacing: 1px;
        text-transform: uppercase;
    }

    .nm-desktop-menu .sub-menu {
        position: absolute;
        top: 100%;
        left: 0;
        display: none;
        min-width: 210px;
        margin: 0;
        padding: 10px 18px;
        border: 1px solid var(--nm-border);
        background: var(--nm-white);
        box-shadow: var(--nm-shadow);
        list-style: none;
    }

    .nm-desktop-menu li:hover > .sub-menu,
    .nm-desktop-menu li:focus-within > .sub-menu {
        display: block;
    }

    .nm-desktop-menu .sub-menu a {
        display: block;
        padding: 10px 0;
        font-size: 12px;
    }

    .nm-header-actions {
        gap: 7px;
    }

    .nm-mobile-navigation {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nm-menu-toggle span {
        transition: none;
    }
}
