/**
 * Wholesale Page Styles
 * Loaded ONLY when Template: Wholesale is active.
 * All selectors use ws- prefix to avoid conflicts with hd- theme classes.
 *
 * @package HDTheme
 */

/* ══════════════════════════════════════════════════
   SHARED SECTION UTILITIES
══════════════════════════════════════════════════ */
.ws-page {
    font-family: var(--hd-font-body);
}

.ws-section {
    padding: clamp(3rem, 6vw, 5rem) 0;
}

.ws-section-header {
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.ws-section-header--center {
    text-align: center;
}

.ws-label {
    display: inline-block;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--hd-color-text-dim);
    margin-bottom: .6rem;
}

.ws-title {
    font-family: var(--hd-font-heading);
    font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem);
    font-weight: 700;
    color: var(--hd-color-black);
    line-height: 1.15;
    margin: 0;
}

/* ══════════════════════════════════════════════════
   1. HERO
══════════════════════════════════════════════════ */
.ws-hero {
    position: relative;
    min-height: clamp(420px, 55vw, 620px);
    display: flex;
    align-items: center;
    background-color: #1a1410;
    background-image: var(--ws-hero-img, none);
    background-size: cover;
    background-position: center top;
    overflow: hidden;
}

.ws-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        rgba(10, 8, 5, .88) 0%,
        rgba(10, 8, 5, .65) 55%,
        rgba(10, 8, 5, .35) 100%
    );
}

.ws-hero-inner {
    position: relative;
    z-index: 2;
    padding-top: 4rem;
    padding-bottom: 4rem;
    max-width: 680px;
}

.ws-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    background: rgba(255, 164, 57, .15);
    border: 1px solid rgba(255, 164, 57, .35);
    border-radius: var(--hd-radius-full);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .06em;
    color: var(--hd-color-accent-1);
    margin-bottom: 1.25rem;
}

.ws-hero-title {
    font-family: var(--hd-font-heading);
    font-size: clamp(2rem, 1.4rem + 2.5vw, 3.5rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -.02em;
    margin: 0 0 1.1rem;
}

.ws-hero-desc {
    font-size: clamp(.9rem, .85rem + .25vw, 1.05rem);
    color: rgba(255, 255, 255, .75);
    line-height: 1.7;
    margin: 0 0 2rem;
    max-width: 500px;
}

.ws-hero-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.ws-hero-cta {
    background: var(--hd-color-accent-1) !important;
    color: var(--hd-color-black) !important;
    font-weight: 700;
    padding: 14px 28px;
    font-size: .95rem;
}

.ws-hero-cta:hover {
    filter: brightness(1.08);
}

.ws-hero-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, .75);
    transition: color var(--hd-duration);
}

.ws-hero-link:hover {
    color: #fff;
}

/* ══════════════════════════════════════════════════
   2. CATEGORIES
══════════════════════════════════════════════════ */
.ws-cats-section {
    background: var(--hd-color-white);
}

.ws-cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--hd-space-md);
}

@media (max-width: 991px) {
    .ws-cat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .ws-cat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: .6rem;
    }
}

.ws-cat-card {
    position: relative;
    display: block;
    border-radius: var(--hd-radius-lg);
    overflow: hidden;
    background: var(--hd-color-accent-2);
    aspect-ratio: 3 / 4;
}

.ws-cat-card:hover .ws-cat-img img {
    transform: scale(1.04);
}

.ws-cat-card:hover .ws-cat-overlay {
    background: linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,.1) 60%);
}

.ws-cat-card:focus-visible {
    outline: 2px solid var(--hd-color-accent-1);
    outline-offset: 3px;
}

.ws-cat-img {
    position: absolute;
    inset: 0;
}

.ws-cat-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s var(--hd-ease);
}

.ws-cat-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.65) 0%, rgba(0,0,0,.0) 55%);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 1.1rem 1rem;
    transition: background .3s var(--hd-ease);
}

.ws-cat-name {
    font-size: clamp(.85rem, .8rem + .25vw, 1rem);
    font-weight: 700;
    color: #fff;
    letter-spacing: .01em;
}

.ws-cat-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .15);
    color: #fff;
    flex-shrink: 0;
    transition: background .2s;
}

.ws-cat-card:hover .ws-cat-arrow {
    background: var(--hd-color-accent-1);
    color: var(--hd-color-black);
}

/* ══════════════════════════════════════════════════
   3. PERFECT FOR
══════════════════════════════════════════════════ */
.ws-perfect-section {
    background: var(--hd-color-accent-2);
}

.ws-perfect-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--hd-space-md);
    margin-bottom: 2.5rem;
}

@media (max-width: 991px) {
    .ws-perfect-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .ws-perfect-grid {
        grid-template-columns: 1fr 1fr;
        gap: .75rem;
    }
}

.ws-perfect-card {
    background: var(--hd-color-white);
    border: 1px solid var(--hd-color-border);
    border-radius: var(--hd-radius-lg);
    padding: 1.75rem 1.5rem;
    text-align: center;
    transition: box-shadow .25s var(--hd-ease), transform .25s var(--hd-ease);
}

.ws-perfect-card:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,.08);
    transform: translateY(-2px);
}

.ws-perfect-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--hd-color-accent-3);
    color: var(--hd-color-black);
    margin: 0 auto 1rem;
}

.ws-perfect-card h3 {
    font-size: clamp(.9rem, .85rem + .2vw, 1rem);
    font-weight: 700;
    color: var(--hd-color-black);
    margin: 0 0 .6rem;
    line-height: 1.3;
}

.ws-perfect-card p {
    font-size: .875rem;
    color: var(--hd-color-text-dim);
    line-height: 1.6;
    margin: 0;
}

.ws-perfect-cta {
    text-align: center;
}

/* ══════════════════════════════════════════════════
   4. WHY ORDER IN BULK
══════════════════════════════════════════════════ */
.ws-why-section {
    background: var(--hd-color-white);
}

.ws-why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border: 1px solid var(--hd-color-border);
    border-radius: var(--hd-radius-lg);
    overflow: hidden;
}

@media (max-width: 991px) {
    .ws-why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .ws-why-grid {
        grid-template-columns: 1fr;
    }
}

.ws-why-item {
    padding: 2rem 1.75rem;
    border-right: 1px solid var(--hd-color-border);
    transition: background .2s;
}

.ws-why-item:last-child {
    border-right: none;
}

@media (max-width: 991px) {
    .ws-why-item:nth-child(2) { border-right: none; }
    .ws-why-item:nth-child(3) { border-right: 1px solid var(--hd-color-border); }
    .ws-why-item:nth-child(1),
    .ws-why-item:nth-child(2) { border-bottom: 1px solid var(--hd-color-border); }
}

@media (max-width: 480px) {
    .ws-why-item { border-right: none; border-bottom: 1px solid var(--hd-color-border); }
    .ws-why-item:last-child { border-bottom: none; }
}

.ws-why-item:hover {
    background: var(--hd-color-accent-2);
}

.ws-why-num {
    font-family: var(--hd-font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--hd-color-accent-1);
    line-height: 1;
    margin-bottom: 1rem;
    opacity: .6;
}

.ws-why-item h3 {
    font-size: clamp(.9rem, .85rem + .2vw, 1.05rem);
    font-weight: 700;
    color: var(--hd-color-black);
    margin: 0 0 .6rem;
    line-height: 1.3;
}

.ws-why-item p {
    font-size: .875rem;
    color: var(--hd-color-text-dim);
    line-height: 1.6;
    margin: 0;
}

/* ══════════════════════════════════════════════════
   5. CUSTOMIZATION (split layout)
══════════════════════════════════════════════════ */
.ws-custom-section {
    background: var(--hd-color-accent-3);
}

.ws-custom-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
}

@media (max-width: 767px) {
    .ws-custom-inner {
        grid-template-columns: 1fr;
    }
    .ws-custom-media {
        order: -1;
    }
}

.ws-custom-desc {
    font-size: .95rem;
    color: var(--hd-color-text-dim);
    line-height: 1.7;
    margin: .75rem 0 1.5rem;
}

.ws-custom-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.ws-custom-list li {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: .95rem;
    font-weight: 500;
    color: var(--hd-color-text);
}

.ws-custom-list li svg {
    flex-shrink: 0;
    color: var(--hd-color-black);
}

.ws-custom-img-wrap {
    border-radius: var(--hd-radius-lg);
    overflow: hidden;
    background: #d8c9b5;
    aspect-ratio: 5 / 4;
    position: relative;
}

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

/* Fallback when image is missing */
.ws-custom-img-wrap.ws-img-missing {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ══════════════════════════════════════════════════
   6. PRODUCTION & SHIPPING
══════════════════════════════════════════════════ */
.ws-ship-section {
    background: var(--hd-color-white);
}

.ws-ship-sub {
    font-size: .9rem;
    color: var(--hd-color-text-dim);
    margin-top: .6rem;
    max-width: 560px;
    margin-inline: auto;
    line-height: 1.6;
}

.ws-ship-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--hd-space-lg);
    margin-top: 2.5rem;
}

@media (max-width: 767px) {
    .ws-ship-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-inline: auto;
    }
}

.ws-ship-item {
    text-align: center;
    padding: 2rem 1.5rem;
    border: 1px solid var(--hd-color-border);
    border-radius: var(--hd-radius-lg);
    background: var(--hd-color-accent-2);
}

.ws-ship-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--hd-color-white);
    border: 1px solid var(--hd-color-border);
    color: var(--hd-color-black);
    margin: 0 auto 1.1rem;
}

.ws-ship-item h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--hd-color-black);
    margin: 0 0 .5rem;
}

.ws-ship-item p {
    font-size: .875rem;
    color: var(--hd-color-text-dim);
    line-height: 1.6;
    margin: 0;
}

/* ══════════════════════════════════════════════════
   7. QUOTE SECTION (form + trust side by side)
══════════════════════════════════════════════════ */
.ws-quote-section {
    background: var(--hd-color-accent-2);
}

.ws-quote-layout {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: start;
}

@media (max-width: 899px) {
    .ws-quote-layout {
        grid-template-columns: 1fr;
    }
    .ws-trust-col {
        order: 2;
    }
    .ws-form-col {
        order: 1;
    }
}

/* Trust column */
.ws-trust-img-wrap {
    border-radius: var(--hd-radius-lg);
    overflow: hidden;
    background: #d8c9b5;
    aspect-ratio: 4 / 3;
    margin-bottom: 1.5rem;
}

.ws-trust-img-wrap.ws-img-missing {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.ws-trust-heading {
    font-size: clamp(1.1rem, 1rem + .4vw, 1.35rem);
    font-weight: 700;
    color: var(--hd-color-black);
    margin: 0 0 1.25rem;
    line-height: 1.3;
}

.ws-trust-reviews {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ws-trust-review {
    background: var(--hd-color-white);
    border: 1px solid var(--hd-color-border);
    border-radius: var(--hd-radius-md);
    padding: 1.1rem 1.25rem;
}

.ws-trust-stars {
    color: var(--hd-color-accent-1);
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: .4rem;
}

.ws-trust-review p {
    font-size: .875rem;
    color: var(--hd-color-text-dim);
    line-height: 1.6;
    margin: 0 0 .4rem;
    font-style: italic;
}

.ws-trust-author {
    font-size: .8rem;
    font-weight: 600;
    color: var(--hd-color-text);
}

/* Form card */
.ws-form-card {
    background: var(--hd-color-white);
    border: 1px solid var(--hd-color-border);
    border-radius: var(--hd-radius-lg);
    padding: clamp(1.5rem, 3vw, 2.25rem);
    box-shadow: 0 4px 24px rgba(0,0,0,.06);
}

.ws-form-title {
    font-family: var(--hd-font-heading);
    font-size: clamp(1.3rem, 1.1rem + .6vw, 1.6rem);
    font-weight: 700;
    color: var(--hd-color-black);
    margin: 0 0 .4rem;
}

.ws-form-sub {
    font-size: .875rem;
    color: var(--hd-color-text-dim);
    margin: 0 0 1.5rem;
    line-height: 1.5;
}

.ws-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--hd-space-md);
}

@media (max-width: 560px) {
    .ws-form-row {
        grid-template-columns: 1fr;
    }
}

.ws-fg {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    margin-bottom: var(--hd-space-md);
}

.ws-fg label {
    font-size: .825rem;
    font-weight: 600;
    color: var(--hd-color-text);
}

.ws-req {
    color: #e53935;
    margin-left: 2px;
}

.ws-opt {
    font-weight: 400;
    color: var(--hd-color-text-dim);
    font-size: .8rem;
}

.ws-fg input,
.ws-fg textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--hd-color-border);
    border-radius: var(--hd-radius-md);
    font-family: var(--hd-font-body);
    font-size: .9rem;
    color: var(--hd-color-text);
    background: var(--hd-color-accent-2);
    outline: none;
    transition: border-color var(--hd-duration), background var(--hd-duration);
    line-height: 1.5;
}

.ws-fg input:focus,
.ws-fg textarea:focus {
    border-color: var(--hd-color-black);
    background: var(--hd-color-white);
}

.ws-fg textarea {
    resize: vertical;
    min-height: 100px;
}

.ws-submit-btn {
    width: 100%;
    justify-content: center;
    padding: 14px;
    font-size: .95rem;
    font-weight: 700;
    margin-top: .25rem;
}

/* Form feedback */
.ws-form-success {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    background: #f0faf4;
    border: 1px solid #a8d5b8;
    border-radius: var(--hd-radius-md);
    padding: 1.25rem;
    color: #2e7d52;
}

.ws-form-success svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.ws-form-success p {
    font-size: .9rem;
    line-height: 1.5;
    margin: 0;
    color: #2e7d52;
}

.ws-form-error {
    background: #fff5f5;
    border: 1px solid #fca5a5;
    border-radius: var(--hd-radius-md);
    padding: .9rem 1.1rem;
    font-size: .875rem;
    color: #b91c1c;
    margin-bottom: 1rem;
}

/* ══════════════════════════════════════════════════
   8. FAQ
══════════════════════════════════════════════════ */
.ws-faq-section {
    background: var(--hd-color-white);
}

.ws-faq-list {
    max-width: 780px;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.ws-faq-item {
    border: 1px solid var(--hd-color-border);
    border-radius: var(--hd-radius-md);
    overflow: hidden;
    background: var(--hd-color-white);
}

.ws-faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    padding: 1.1rem 1.4rem;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--hd-font-body);
    font-size: .95rem;
    font-weight: 600;
    color: var(--hd-color-black);
    transition: background .15s;
}

.ws-faq-q:hover {
    background: var(--hd-color-accent-2);
}

.ws-faq-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1.5px solid var(--hd-color-border);
    position: relative;
    transition: background .2s, border-color .2s;
}

.ws-faq-icon::before,
.ws-faq-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    background: var(--hd-color-text);
    transition: transform .2s var(--hd-ease), opacity .2s;
}

.ws-faq-icon::before {
    width: 10px;
    height: 1.5px;
    transform: translate(-50%, -50%);
}

.ws-faq-icon::after {
    width: 1.5px;
    height: 10px;
    transform: translate(-50%, -50%);
}

.ws-faq-q[aria-expanded="true"] .ws-faq-icon {
    background: var(--hd-color-black);
    border-color: var(--hd-color-black);
}

.ws-faq-q[aria-expanded="true"] .ws-faq-icon::before,
.ws-faq-q[aria-expanded="true"] .ws-faq-icon::after {
    background: #fff;
}

.ws-faq-q[aria-expanded="true"] .ws-faq-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
    opacity: 0;
}

.ws-faq-a {
    overflow: hidden;
}

.ws-faq-a[hidden] {
    display: none;
}

.ws-faq-a-inner {
    padding: 0 1.4rem 1.2rem;
    font-size: .9rem;
    color: var(--hd-color-text-dim);
    line-height: 1.7;
}
