/* ==========================================================================
   SurplusArticle.com - Next-Level Amazon Garments & Apparel Marketplace CSS
   ========================================================================== */

:root {
    --amz-dark: #131921;
    --amz-subnav: #232f3e;
    --amz-yellow: #ffd814;
    --amz-yellow-hover: #f7ca00;
    --amz-orange: #ffa41c;
    --amz-orange-hover: #fa8900;
    --amz-deal-red: #cc0c39;
    --amz-link: #007185;
    --amz-link-hover: #c7511f;
    --amz-bg: #eaeded;
    --amz-card: #ffffff;
    --amz-text: #0f1111;
    --amz-text-muted: #565959;
    --amz-border: #d5d9d9;
    --amz-success: #007600;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.12);
    --shadow-card: 0 4px 14px rgba(0, 0, 0, 0.08);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Amazon Ember", Arial, sans-serif;
    background-color: var(--amz-bg);
    color: var(--amz-text);
    line-height: 1.45;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--amz-link);
    text-decoration: none;
    transition: color 0.15s ease;
}
a:hover {
    color: var(--amz-link-hover);
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   Amazon Main Header (#131921)
   ========================================================================== */
.amz-header {
    background-color: var(--amz-dark);
    color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.amz-header-main {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 20px;
    height: 64px;
    max-width: 1560px;
    margin: 0 auto;
}

.amz-logo-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border: 1px solid transparent;
    border-radius: 4px;
    color: #fff;
    text-decoration: none !important;
}
.amz-logo-link:hover {
    border-color: #ffffff;
}
.amz-logo-icon {
    font-size: 28px;
    color: var(--amz-orange);
}
.amz-logo-text {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.05;
}
.amz-logo-text span {
    color: var(--amz-orange);
}
.amz-logo-sub {
    font-size: 9.5px;
    color: #ffd814;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.amz-deliver-box {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
}
.amz-deliver-box:hover {
    border-color: #ffffff;
}
.amz-deliver-box i {
    font-size: 22px;
    color: #ffffff;
}
.amz-deliver-line1 {
    font-size: 11px;
    color: #cccccc;
    line-height: 1.1;
}
.amz-deliver-line2 {
    font-size: 13.5px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.1;
}

/* Amazon Search Bar */
.amz-search-bar {
    flex-grow: 1;
    display: flex;
    height: 42px;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
}
.amz-search-bar:focus-within {
    box-shadow: 0 0 0 3px #f90, 0 0 0 2px #fff;
}
.amz-search-cat {
    background: #f3f3f3;
    border: none;
    border-right: 1px solid #cdcdcd;
    padding: 0 12px;
    font-size: 12.5px;
    font-weight: 500;
    color: #333;
    outline: none;
    cursor: pointer;
    max-width: 190px;
}
.amz-search-input {
    flex-grow: 1;
    border: none;
    padding: 0 16px;
    font-size: 15px;
    outline: none;
    color: #111;
}
.amz-search-btn {
    width: 52px;
    background: #febd69;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    color: #111;
    transition: background 0.15s;
}
.amz-search-btn:hover {
    background: #f3a847;
}

/* Right Nav */
.amz-header-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}
.amz-nav-item {
    padding: 6px 12px;
    border: 1px solid transparent;
    border-radius: 4px;
    color: #ffffff !important;
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.25;
}
.amz-nav-item:hover {
    border-color: #ffffff;
}
.amz-nav-line1 {
    font-size: 11px;
    color: #cccccc;
}
.amz-nav-line2 {
    font-size: 13.5px;
    font-weight: 700;
}

/* Cart Button */
.amz-cart-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 1px solid transparent;
    border-radius: 4px;
    color: #ffffff !important;
    text-decoration: none !important;
}
.amz-cart-btn:hover {
    border-color: #ffffff;
}
.amz-cart-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.amz-cart-icon {
    font-size: 32px;
    color: #ffffff;
}
.amz-cart-count {
    position: absolute;
    top: 2px;
    left: 13px;
    color: var(--amz-orange);
    font-weight: 800;
    font-size: 15px;
}
.amz-cart-text {
    font-size: 14px;
    font-weight: 700;
    margin-top: 8px;
}

/* ==========================================================================
   Amazon Sub-Navigation (#232f3e)
   ========================================================================== */
.amz-subnav {
    background-color: var(--amz-subnav);
    color: #ffffff;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    height: 40px;
    overflow-x: auto;
}
.amz-subnav-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    color: #ffffff !important;
    text-decoration: none !important;
    white-space: nowrap;
    border: 1px solid transparent;
    border-radius: 3px;
    font-weight: 500;
}
.amz-subnav-link:hover {
    border-color: #ffffff;
}
.amz-subnav-link.b2b-highlight {
    background: #febd69;
    color: #111 !important;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 4px;
}
.amz-subnav-link.b2b-highlight:hover {
    background: #f3a847;
}

/* ==========================================================================
   Amazon Garment Hero Banner Slider
   ========================================================================== */
.amz-hero-slider {
    position: relative;
    max-width: 1560px;
    margin: 0 auto;
    overflow: hidden;
    height: 480px;
}
.amz-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    background-size: cover;
    background-position: center top;
}
.amz-slide.active {
    opacity: 1;
}
.amz-slide-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(19, 25, 33, 0.35) 0%, rgba(234, 237, 237, 0.4) 60%, rgba(234, 237, 237, 1) 100%);
}
.amz-slide-content {
    position: relative;
    z-index: 10;
    padding: 50px 60px;
    max-width: 800px;
}
.amz-slide-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--amz-deal-red);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}
.amz-slide-title {
    font-size: 44px;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 14px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}
.amz-slide-desc {
    font-size: 17px;
    color: #f1f5f9;
    margin-bottom: 24px;
    font-weight: 500;
    line-height: 1.5;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
    max-width: 640px;
}
.amz-btn-deal {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--amz-yellow);
    border: 1px solid #fcd200;
    padding: 12px 28px;
    border-radius: 25px;
    color: #0f1111;
    font-size: 14.5px;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}
.amz-btn-deal:hover {
    background: var(--amz-yellow-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

.amz-slider-prev, .amz-slider-next {
    position: absolute;
    top: 38%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid #ccc;
    width: 48px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    cursor: pointer;
    z-index: 20;
    color: #111;
    transition: background 0.2s;
}
.amz-slider-prev:hover, .amz-slider-next:hover {
    background: #ffffff;
}
.amz-slider-prev { left: 0; border-radius: 0 4px 4px 0; }
.amz-slider-next { right: 0; border-radius: 4px 0 0 4px; }

/* ==========================================================================
   Amazon Overlapping Cards Grid
   ========================================================================== */
.amz-container {
    max-width: 1560px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}
.amz-cards-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: -150px;
    position: relative;
    z-index: 30;
    margin-bottom: 24px;
}
.amz-card-box {
    background: var(--amz-card);
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    border-radius: 4px;
    min-height: 420px;
}
.amz-card-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--amz-text);
    margin-bottom: 12px;
    line-height: 1.25;
}
.amz-card-img-wrap {
    flex-grow: 1;
    overflow: hidden;
    margin-bottom: 14px;
    background: #f8fafc;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.amz-card-img-wrap img {
    height: 240px;
    width: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.amz-card-box:hover .amz-card-img-wrap img {
    transform: scale(1.04);
}
.amz-card-link {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--amz-link);
}

/* ==========================================================================
   Amazon Product Grid & Deal Rows
   ========================================================================== */
.amz-row-section {
    background: var(--amz-card);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    border-radius: 4px;
}
.amz-row-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e7e7e7;
}
.amz-row-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--amz-text);
    display: flex;
    align-items: center;
    gap: 8px;
}
.amz-row-see-more {
    font-size: 13.5px;
    color: var(--amz-link);
    font-weight: 700;
}

.amz-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.amz-product-card {
    background: #ffffff;
    border: 1px solid #e7e7e7;
    border-radius: 4px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s ease;
}
.amz-product-card:hover {
    border-color: #bbb;
    box-shadow: var(--shadow-card);
}
.amz-prod-thumb-wrap {
    height: 230px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    overflow: hidden;
    position: relative;
    background: #fdfdfd;
}
.amz-prod-thumb-wrap img {
    max-height: 220px;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}
.amz-product-card:hover .amz-prod-thumb-wrap img {
    transform: scale(1.05);
}
.amz-badge-deal {
    position: absolute;
    top: 6px;
    left: 6px;
    background: var(--amz-deal-red);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 3px;
    z-index: 5;
}
.amz-prod-condition {
    font-size: 11px;
    font-weight: 800;
    color: #007185;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.amz-prod-title {
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.35;
    color: #0f1111;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.amz-prod-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    font-size: 12.5px;
}
.amazon-stars {
    color: #ffa41c;
    font-size: 14px;
}
.amz-rating-count {
    color: var(--amz-link);
}
.amz-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 4px;
}
.amz-price-current {
    font-size: 22px;
    font-weight: 800;
    color: #0f1111;
}
.amz-price-msrp {
    font-size: 12.5px;
    color: var(--amz-text-muted);
    text-decoration: line-through;
}
.amz-discount-pill {
    background: var(--amz-deal-red);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 2px;
}
.amz-b2b-tier-badge {
    background: #f0fdf4;
    border: 1px dashed #166534;
    color: #166534;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 8px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.amz-btn-add {
    background: var(--amz-yellow);
    border: 1px solid #fcd200;
    border-radius: 20px;
    padding: 9px 14px;
    font-size: 13.5px;
    font-weight: 700;
    color: #0f1111;
    cursor: pointer;
    text-align: center;
    width: 100%;
    margin-top: 8px;
    box-shadow: 0 2px 5px rgba(213, 217, 217, 0.5);
    transition: all 0.15s ease;
}
.amz-btn-add:hover {
    background: var(--amz-yellow-hover);
}

.amz-btn-buynow {
    background: var(--amz-orange);
    border: 1px solid #fa8900;
    border-radius: 20px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 700;
    color: #0f1111;
    cursor: pointer;
    text-align: center;
    width: 100%;
    margin-top: 8px;
    transition: all 0.15s ease;
}
.amz-btn-buynow:hover {
    background: var(--amz-orange-hover);
}

.amz-btn-rfq {
    background: #007185;
    border: 1px solid #005a6a;
    border-radius: 20px;
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    cursor: pointer;
    text-align: center;
    width: 100%;
    margin-top: 8px;
    display: inline-block;
    text-decoration: none !important;
}
.amz-btn-rfq:hover {
    background: #005a6a;
    color: #fff;
}

/* ==========================================================================
   Next-Level Vendor Onboarding Form Styling
   ========================================================================== */
.vendor-portal-card {
    background: #ffffff;
    border: 1px solid var(--amz-border);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    overflow: hidden;
}
.vendor-portal-header {
    background: linear-gradient(135deg, #131921 0%, #1f2d3d 100%);
    color: #ffffff;
    padding: 32px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.vendor-step-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    color: #febd69;
    font-weight: 700;
}
.vendor-form-body {
    padding: 40px;
}
.vendor-section-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 800;
    color: #0f1111;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e7e7e7;
}
.vendor-section-heading .step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #232f3e;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
}

/* High-Grade Inputs */
.form-control {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #888c8c;
    border-radius: 4px;
    font-size: 14px;
    color: #0f1111;
    background: #ffffff;
    outline: none;
    box-shadow: 0 1px 2px rgba(15,17,17,.15) inset;
    transition: all 0.2s ease;
}
.form-control:focus {
    border-color: #007185;
    box-shadow: 0 0 0 3px #c8f3fa, 0 1px 2px rgba(15,17,17,.15) inset;
}
.form-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #0f1111;
    margin-bottom: 6px;
}
.form-hint {
    font-size: 12px;
    color: #565959;
    margin-top: 4px;
}

/* Responsive */
@media (max-width: 992px) {
    .amz-cards-grid-4 { grid-template-columns: repeat(2, 1fr); margin-top: -60px; }
    .amz-product-grid { grid-template-columns: repeat(2, 1fr); }
    .amz-deliver-box { display: none; }
}

@media (max-width: 768px) {
    .amz-cards-grid-4 { grid-template-columns: 1fr; }
    .amz-product-grid { grid-template-columns: 1fr; }
    .amz-header-main { height: auto; flex-wrap: wrap; padding: 10px; }
    .amz-search-bar { order: 3; width: 100%; margin-top: 6px; }
    .vendor-form-body { padding: 20px; }
}
