/* ── FHMA Shop — dark hub theme ──────────────────────────────────── */


.fhshop-wrap {
    position: relative;
    z-index: 1;
    max-width: 960px;
    margin: 0 auto;
    padding: 16px 16px 80px;
    color: #fff;
    font-family: inherit;
}

/* ── Top bar ── */
.fhshop-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}
.fhshop-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #d6b36d;
}
.fhshop-back-btn {
    color: #d6b36d;
    text-decoration: none;
    font-size: 14px;
    opacity: .85;
}
.fhshop-back-btn:hover { opacity: 1; color: #d6b36d; }

/* ── Cart button ── */
.fhshop-cart-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(214,179,109,.12);
    border: 1px solid rgba(214,179,109,.35);
    color: #d6b36d;
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s;
}
.fhshop-cart-btn:hover { background: rgba(214,179,109,.22); color: #d6b36d; }
.fhshop-cart-count {
    background: #d6b36d;
    color: #111d25;
    font-size: 11px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: 9px;
    padding: 0 4px;
}
.fhshop-cart-count.hidden { display: none; }

/* ── Category pills ── */
.fhshop-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}
.fhshop-cat-pill {
    padding: 5px 14px;
    border-radius: 20px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    color: #ccc;
    font-size: 13px;
    text-decoration: none;
    transition: all .2s;
}
.fhshop-cat-pill:hover,
.fhshop-cat-pill.active {
    background: rgba(214,179,109,.18);
    border-color: rgba(214,179,109,.5);
    color: #d6b36d;
}

/* ── Product grid ── */
.fhshop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
}

.fhshop-card {
    position: relative;
    z-index: 1;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color .2s, transform .2s;
}
.fhshop-card:hover {
    border-color: rgba(214,179,109,.4);
    transform: translateY(-2px);
}

/* Card image */
.fhshop-card-img {
    position: relative;
    height: 200px;
    background: rgba(255,255,255,.04);
    overflow: hidden;
}
.fhshop-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.fhshop-card-noimg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.2);
}

.fhshop-badge-out,
.fhshop-badge-low {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}
.fhshop-badge-out { background: rgba(220,38,38,.85); color: #fff; }
.fhshop-badge-low { background: rgba(234,88,12,.85);  color: #fff; }

/* Card body */
.fhshop-card-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 6px;
}
.fhshop-card-cat {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #d6b36d;
    opacity: .8;
}
.fhshop-card-name {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}
.fhshop-card-desc {
    margin: 0;
    font-size: 13px;
    color: rgba(255,255,255,.6);
    line-height: 1.5;
    flex: 1;
}
.fhshop-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    flex-wrap: wrap;
    gap: 8px;
}
.fhshop-price {
    font-size: 18px;
    font-weight: 700;
    color: #d6b36d;
}

/* Add to cart button */
.fhshop-add-btn {
    background: #d6b36d;
    color: #111d25;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, opacity .2s;
    white-space: nowrap;
}
.fhshop-add-btn:hover { background: #e5c47e; }
.fhshop-add-btn.in-cart { background: rgba(76,175,125,.25); color: #4caf7d; border: 1px solid #4caf7d; }
.fhshop-add-btn:disabled { background: rgba(255,255,255,.1); color: rgba(255,255,255,.3); cursor: not-allowed; }

/* ── Gold button ── */
.fhshop-btn-gold {
    display: inline-block;
    background: #d6b36d;
    color: #111d25 !important;
    padding: 12px 28px;
    border-radius: 28px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: background .2s;
    border: none;
    cursor: pointer;
}
.fhshop-btn-gold:hover { background: #e5c47e; }

/* ── Cart page ── */
.fhshop-cart-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}
.fhshop-cart-row {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 14px;
    padding: 12px 16px;
    flex-wrap: wrap;
}
.fhshop-cart-img {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(255,255,255,.06);
}
.fhshop-cart-img img { width: 100%; height: 100%; object-fit: cover; }
.fhshop-cart-noimg { width: 100%; height: 100%; }

.fhshop-cart-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 120px;
}
.fhshop-cart-info strong { font-size: 15px; color: #fff; }
.fhshop-cart-price { font-size: 13px; color: rgba(255,255,255,.5); }

.fhshop-cart-qty {
    display: flex;
    align-items: center;
    gap: 10px;
}
.fhshop-qty-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.15);
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: background .2s;
}
.fhshop-qty-btn:hover { background: rgba(214,179,109,.2); }
.fhshop-qty-val { font-size: 16px; font-weight: 600; min-width: 24px; text-align: center; }

.fhshop-cart-line {
    font-size: 16px;
    font-weight: 700;
    color: #d6b36d;
    min-width: 70px;
    text-align: right;
}
.fhshop-cart-remove {
    background: none;
    border: none;
    color: rgba(255,255,255,.35);
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
    transition: color .2s;
}
.fhshop-cart-remove:hover { color: #e05555; }

.fhshop-cart-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,.1);
}
.fhshop-cart-total { font-size: 18px; color: rgba(255,255,255,.7); }
.fhshop-total-val { font-size: 22px; color: #d6b36d; }

/* ── Checkout ── */
.fhshop-checkout-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: start;
}
@media (max-width: 640px) {
    .fhshop-checkout-layout { grid-template-columns: 1fr; }
}

.fhshop-order-summary {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 16px;
    padding: 20px;
}
.fhshop-order-summary h3 {
    margin: 0 0 14px;
    font-size: 16px;
    color: #d6b36d;
}
.fhshop-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: rgba(255,255,255,.75);
    padding: 5px 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.fhshop-summary-total {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    font-size: 17px;
    color: #fff;
}

.fhshop-checkout-form h3 {
    margin: 0 0 14px;
    font-size: 16px;
    color: #d6b36d;
}
.fhshop-checkout-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
    color: rgba(255,255,255,.7);
    margin-bottom: 14px;
}
.fhshop-checkout-form input[type="text"],
.fhshop-checkout-form input[type="email"] {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 10px;
    color: #fff;
    padding: 10px 14px;
    font-size: 15px;
    width: 100%;
    box-sizing: border-box;
}
.fhshop-checkout-form input:focus {
    outline: none;
    border-color: rgba(214,179,109,.6);
}

.fhshop-pay-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 16px;
    padding: 14px 20px;
    margin-top: 8px;
}
.fhshop-secure-note {
    font-size: 12px;
    color: rgba(255,255,255,.4);
    text-align: center;
    margin: 8px 0 0;
}

.fhshop-error {
    background: rgba(220,38,38,.15);
    border: 1px solid rgba(220,38,38,.4);
    border-radius: 10px;
    color: #fca5a5;
    padding: 12px 16px;
    font-size: 14px;
    margin-bottom: 16px;
}

/* ── Thank you ── */
.fhshop-thankyou {
    text-align: center;
    padding: 60px 20px;
}
.fhshop-ty-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(76,175,125,.2);
    border: 2px solid #4caf7d;
    color: #4caf7d;
    font-size: 32px;
    line-height: 72px;
    margin: 0 auto 20px;
}
.fhshop-ty-icon.pending { background: rgba(224,160,48,.2); border-color: #e0a030; color: #e0a030; }
.fhshop-ty-icon.error   { background: rgba(220,38,38,.2);  border-color: #dc2626; color: #dc2626; }
.fhshop-thankyou h2 { font-size: 24px; color: #d6b36d; margin: 0 0 12px; }
.fhshop-thankyou p  { color: rgba(255,255,255,.7); font-size: 15px; line-height: 1.6; }

/* ── Size selector ── */
.fhshop-sizes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 4px;
}
.fhshop-size-btn {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 5px 12px;
    cursor: pointer;
    transition: background .15s, border-color .15s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 44px;
}
.fhshop-size-btn:hover:not(:disabled) {
    background: rgba(214,179,109,.15);
    border-color: #d6b36d;
}
.fhshop-size-btn.selected {
    background: rgba(214,179,109,.25);
    border-color: #d6b36d;
    color: #d6b36d;
}
.fhshop-size-btn.in-cart {
    background: rgba(76,175,125,.2);
    border-color: #4caf7d;
    color: #4caf7d;
}
.fhshop-size-btn.size-out,
.fhshop-size-btn:disabled {
    opacity: .35;
    cursor: not-allowed;
    text-decoration: line-through;
}
.fhshop-size-low {
    font-size: 10px;
    font-weight: 400;
    color: #e0a030;
    line-height: 1;
}

/* ── Cart size label ── */
.fhshop-cart-size {
    display: block;
    font-size: 12px;
    color: #d6b36d;
    margin-top: 2px;
}
