/* =====================================================
   Ijabiyah Mart — Wholesale / B2B Page Styles
   Design system: deep green (#2D5A3D), secondary green
   (#5B8C5A), off-white (#FAFDF9), charcoal (#1F2937),
   muted grey (#6B7280), gold accent (#C8923A), Inter.
   ===================================================== */

/* Full-width layout */
.ijb-wholesale-page .ct-container,
.ijb-wholesale-page main {
    max-width: 100%;
    padding: 0;
}

.ijb-wholesale-page main > article {
    max-width: 100%;
    padding: 0;
}

.ijb-wholesale-page .entry-header {
    display: none;
}

.ijb-wholesale-page .entry-content {
    margin: 0;
}

.ijb-container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

@media (min-width: 640px) {
    .ijb-container {
        padding-left: 32px;
        padding-right: 32px;
    }
}

@media (min-width: 1024px) {
    .ijb-container {
        padding-left: 40px;
        padding-right: 40px;
    }
}

/* Buttons */
.ijb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
    border: 2px solid transparent;
    min-height: 48px;
}

.ijb-btn--primary {
    background: #2D5A3D;
    color: #FFFFFF;
    border-color: #2D5A3D;
}

.ijb-btn--primary:hover {
    background: #5B8C5A;
    border-color: #5B8C5A;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(45, 90, 61, 0.2);
}

.ijb-btn--outline {
    background: transparent;
    color: #2D5A3D;
    border-color: #2D5A3D;
}

.ijb-btn--outline:hover {
    background: rgba(45, 90, 61, 0.06);
    transform: translateY(-2px);
}

/* Hero */
.ijb-hero {
    background: #EAF4EC;
    padding: 64px 0;
    text-align: center;
}

@media (min-width: 768px) {
    .ijb-hero {
        padding: 96px 0;
    }
}

.ijb-eyebrow {
    display: inline-block;
    background: rgba(45, 90, 61, 0.1);
    color: #2D5A3D;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 8px 16px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.ijb-hero h1 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: clamp(1.85rem, 5vw, 2.75rem);
    font-weight: 700;
    line-height: 1.25;
    color: #1F2937;
    margin: 0 auto 18px;
    max-width: 760px;
}

.ijb-hero p {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: #6B7280;
    line-height: 1.7;
    margin: 0 auto 28px;
    max-width: 640px;
}

.ijb-hero__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

/* Sections */
.ijb-section {
    background: #FFFDF8;
    padding: 64px 0;
}

@media (min-width: 768px) {
    .ijb-section {
        padding: 80px 0;
    }
}

.ijb-section--alt {
    background: #F1F7F2;
}

.ijb-section--form {
    background: #EAF4EC;
}

.ijb-section--form .ijb-section__title {
    color: #1F2937;
}

.ijb-section--dark {
    background: linear-gradient(135deg, #2D5A3D 0%, #3E5F3D 100%);
}

.ijb-section__title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: #1F2937;
    margin: 0 0 12px;
    text-align: center;
}

.ijb-section--dark .ijb-section__title {
    color: #FFFFFF;
}

.ijb-section__subtitle {
    font-size: 1rem;
    color: #6B7280;
    text-align: center;
    max-width: 640px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

/* Audience */
.ijb-audience__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 32px;
}

@media (min-width: 640px) {
    .ijb-audience__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .ijb-audience__grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.ijb-audience__item {
    background: #FFFFFF;
    border: 1px solid #E5EBE5;
    border-radius: 12px;
    padding: 20px 14px;
    text-align: center;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1F2937;
    transition: all 0.25s ease;
}

.ijb-audience__item:hover {
    border-color: #2D5A3D;
    box-shadow: 0 4px 16px rgba(45, 90, 61, 0.08);
    transform: translateY(-2px);
}

/* Categories */
.ijb-categories__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 32px;
}

@media (min-width: 640px) {
    .ijb-categories__grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }
}

@media (min-width: 1024px) {
    .ijb-categories__grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 20px;
    }
}

.ijb-category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #FFFFFF;
    border: 1px solid #E5EBE5;
    border-radius: 16px;
    padding: 24px 16px;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(45, 90, 61, 0.04);
}

.ijb-category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(45, 90, 61, 0.1);
    border-color: #5B8C5A;
}

.ijb-category-card img,
.ijb-category-card .ijb-cat-fallback {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 14px;
    background: #EAF4EC;
}

.ijb-category-card .ijb-cat-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    color: #2D5A3D;
}

.ijb-category-card .ijb-cat-fallback svg {
    width: 100%;
    height: 100%;
}

.ijb-category-card h3 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1F2937;
    margin: 0;
}

/* Steps */
.ijb-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 32px;
}

@media (min-width: 768px) {
    .ijb-steps {
        grid-template-columns: repeat(3, 1fr);
        gap: 28px;
    }
}

.ijb-step {
    background: #FFFFFF;
    border: 1px solid #E5EBE5;
    border-radius: 16px;
    padding: 28px 24px;
    text-align: center;
    transition: all 0.25s ease;
}

.ijb-step:hover {
    box-shadow: 0 8px 24px rgba(45, 90, 61, 0.08);
    border-color: #5B8C5A;
}

.ijb-step__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #2D5A3D;
    color: #FFFFFF;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50%;
    margin-bottom: 16px;
}

.ijb-step h3 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1F2937;
    margin: 0 0 10px;
}

.ijb-step p {
    font-size: 0.95rem;
    color: #6B7280;
    line-height: 1.65;
    margin: 0;
}

/* Form */
.ijb-form__wrap {
    background: #FFFFFF;
    border-radius: 24px;
    padding: 36px 24px;
    max-width: 840px;
    margin: 0 auto;
    box-shadow: 0 10px 40px rgba(45, 90, 61, 0.1);
    border: 1px solid rgba(45, 90, 61, 0.12);
}

@media (min-width: 768px) {
    .ijb-form__wrap {
        padding: 48px;
    }
}

.ijb-form__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .ijb-form__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.ijb-form__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
}

.ijb-form__grid .ijb-form__field {
    margin-bottom: 0;
}

.ijb-form__field--full {
    grid-column: 1 / -1;
}

.ijb-form label {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1F2937;
}

.ijb-form label span {
    color: #C8923A;
}

.ijb-form input[type="text"],
.ijb-form input[type="tel"],
.ijb-form input[type="email"],
.ijb-form select,
.ijb-form textarea {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.95rem;
    color: #1F2937;
    background: #FAFDF9;
    border: 1px solid #D8E8D8;
    border-radius: 12px;
    padding: 12px 16px;
    transition: all 0.2s ease;
    width: 100%;
}

.ijb-form input:focus,
.ijb-form select:focus,
.ijb-form textarea:focus {
    outline: none;
    border-color: #2D5A3D;
    box-shadow: 0 0 0 3px rgba(45, 90, 61, 0.1);
}

.ijb-form textarea {
    resize: vertical;
}

.ijb-form input[type="file"] {
    font-size: 0.9rem;
    padding: 10px 0;
    background: transparent;
    border: none;
}

.ijb-form .ijb-btn {
    margin-top: 8px;
    width: 100%;
}

@media (min-width: 640px) {
    .ijb-form .ijb-btn {
        width: auto;
    }
}

/* Notices */
.ijb-notice {
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.ijb-notice--success {
    background: #F1F8F1;
    color: #2D5A3D;
    border: 1px solid #5B8C5A;
}

.ijb-notice--error {
    background: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FECACA;
}
