/* =========================================================
   Shop additions (pages the design does not include: checkout,
   account, order pages, messages). Built from the design's own
   tokens and components in client.css; no restyling of the design.
========================================================= */

/* ---------- Accessibility / generic ---------- */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 2000;
    background: var(--primary);
    color: var(--white);
    padding: 10px 16px;
}
.skip-link:focus { left: 10px; top: 10px; }

.brand-text {
    color: var(--white);
    font-weight: 800;
    font-size: 22px;
    text-transform: uppercase;
}
.footer-logo .brand-text { display: block; padding: 14px 20px; }
/* Width/height attributes are only for layout stability; the design sizes images by width. */
.footer-logo img,
.brand-logo,
.fashion-icon,
.shipping-icon,
.about-img-main,
.about-img-small,
.payment-img { height: auto; }

.text-link { color: var(--primary); }
.text-link:hover { color: var(--white); }
.text-muted-light { color: rgba(255, 255, 255, 0.55); }
.pre-line { white-space: pre-line; }
.req { color: #d6283a; }

/* ---------- Header counts ---------- */
.header-icon { position: relative; }
.header-count {
    position: absolute;
    top: -8px;
    right: -12px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: 10px;
    background: var(--primary);
    color: var(--white);
    font-family: var(--font-main);
    font-size: 11px;
    font-weight: 700;
    line-height: 19px;
    text-align: center;
}

/* ---------- Messages ---------- */
.newsletter-msg.is-error,
.field-error { color: #ff6b7a; }
.field-error { font-size: 14px; margin-top: 6px; }

.shop-alert {
    border-radius: 6px;
    padding: 14px 18px;
    margin-bottom: 20px;
    font-size: 15px;
    background: #1b1b1b;
    border-left: 4px solid var(--primary);
    color: var(--white);
}
.shop-alert.is-success { border-left-color: #2ecc71; }
.shop-alert.is-warning { border-left-color: #ffb800; }
.shop-alert.is-error { border-left-color: #d6283a; }

.shop-toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1090;
    max-width: 360px;
    padding: 14px 20px;
    border-radius: 6px;
    background: var(--primary);
    color: var(--white);
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.shop-toast.is-error { background: #d6283a; }

/* ---------- Forms on the dark background ---------- */
.contact-form .form-label,
.shop-form .form-label { font-size: 14px; color: rgba(255, 255, 255, 0.85); margin-bottom: 6px; }
.contact-form .form-select,
.shop-form .form-select {
    background-color: #1b1b1b;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--white);
    font-size: 15px;
    padding: 14px 18px;
    border-radius: 6px;
    --bs-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}
.contact-form .form-select:focus { border-color: var(--primary); box-shadow: none; }
.contact-form .form-control.is-invalid,
.contact-form .form-select.is-invalid { border-color: #d6283a; }
.contact-form .invalid-feedback { color: #ff6b7a; }
.contact-form .form-check-input,
.shop-section .form-check-input {
    background-color: #1b1b1b;
    border-color: rgba(255, 255, 255, 0.35);
}
.contact-form .form-check-input:checked { background-color: var(--primary); border-color: var(--primary); }
.contact-form .form-check-label { font-size: 15px; color: rgba(255, 255, 255, 0.85); }
.contact-form .form-check-label a { color: var(--primary); }

/* ---------- Shop listing ---------- */
.sidebar-list a.active { color: var(--primary); }
a.size-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
a.size-btn:hover { color: var(--white); }
a.color-btn { display: inline-block; }
.size-btn.is-unavailable,
.color-btn.is-unavailable { opacity: 0.35; text-decoration: line-through; }
.shop-chip {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    margin-left: 10px;
    padding: 2px 10px;
    border-radius: 12px;
    background: var(--primary);
    color: var(--white);
    font-size: 13px;
}
.shop-chip a { color: var(--white); font-size: 16px; line-height: 1; }
.shop-empty {
    background: #1b1b1b;
    border-radius: 8px;
    padding: 50px 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.85);
}
.product-badge.badge-out { background-color: #474644; }
.product-actions a.is-active { background-color: var(--primary); color: var(--white); }
.product-img > a { background-color: #111; }

/* ---------- Product page ---------- */
.option-name { font-size: 14px; color: rgba(255, 255, 255, 0.75); }
.product-stock { min-height: 0; margin-bottom: 0; }
.product-stock:empty { display: none; }
.low-stock { color: #ffb800; }
.btn-wishlist.is-active { background-color: var(--primary); border-color: var(--primary); }
.btn-add-cart:disabled { background-color: #474644; opacity: 1; }
.product-meta a { color: rgba(255, 255, 255, 0.75); }
.product-meta a:hover { color: var(--primary); }
.product-meta .product-meta-value { color: rgba(255, 255, 255, 0.75); font-weight: 400; margin: 0; }
.product-description p:last-child { margin-bottom: 0; }
.product-description a { color: var(--primary); }
.review-date { color: rgba(255, 255, 255, 0.5); margin-left: auto; }
.review-form-box {
    margin-top: 35px;
    padding: 30px;
    background: #1b1b1b;
    border-radius: 10px;
}
.review-form-box .form-control { background-color: #111; }
.rating-input {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 4px;
}
.rating-input input { position: absolute; opacity: 0; pointer-events: none; }
.rating-input label {
    font-size: 22px;
    color: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: color 0.2s ease;
}
.rating-input input:checked ~ label,
.rating-input label:hover,
.rating-input label:hover ~ label { color: #ffb800; }
.rating-input input:focus-visible + label { outline: 2px solid var(--primary); outline-offset: 2px; }

/* Image zoom and full-screen view */
.gallery-main[data-zoom] { position: relative; cursor: zoom-in; }
.gallery-main[data-zoom] img { transition: transform 0.25s ease; }
.gallery-main.is-zooming img { transform: scale(2); }
.gallery-expand {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: var(--white);
}
.gallery-expand:hover { background: var(--primary); }
.image-modal img { max-height: 85vh; object-fit: contain; }
.btn-buy-now { height: 54px; }
.btn-buy-now:disabled { background-color: #474644; }

/* ---------- Cart ---------- */
.coupon-applied {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 42px;
    padding: 0 16px;
    border: 1px dashed var(--primary);
    border-radius: 4px;
    font-size: 14px;
}
.cart-summary-list small { color: rgba(255, 255, 255, 0.55); font-size: 12px; }
.cart-summary .btn-shop.disabled { background-color: #474644; }

/* ---------- Checkout ---------- */
.checkout-login { color: rgba(255, 255, 255, 0.85); margin-bottom: 25px; }
.checkout-login a { color: var(--primary); }
.checkout-box {
    background-color: #1b1b1b;
    border-radius: 10px;
    padding: 30px;
}
.checkout-box .form-control,
.checkout-box .form-select { background-color: #111; }
.checkout-items {
    list-style: none;
    padding: 0;
    margin: 0 0 10px;
}
.checkout-items li {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
}
.checkout-items small { display: block; color: rgba(255, 255, 255, 0.55); font-size: 13px; }
.checkout-options { margin: 18px 0; }
.checkout-options legend { font-size: 15px; margin-bottom: 10px; }
.choice-card {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.2s ease;
}
.choice-card:hover,
.choice-card:has(input:checked) { border-color: var(--primary); }
.choice-card input { margin-top: 4px; accent-color: var(--primary); }
.choice-card.is-disabled { opacity: 0.5; cursor: not-allowed; }
.choice-body { display: flex; flex-direction: column; gap: 2px; }
.choice-title { font-size: 15px; color: var(--white); }
.choice-body small { color: rgba(255, 255, 255, 0.6); font-size: 13px; }
.checkout-secure { margin: 14px 0 0; font-size: 13px; color: rgba(255, 255, 255, 0.6); text-align: center; }

/* ---------- Orders ---------- */
.order-thanks { font-size: 20px; color: var(--white); margin-bottom: 20px; }
.order-overview {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 0;
    padding: 0;
    margin: 0 0 25px;
}
.order-overview li {
    padding: 0 22px;
    border-right: 1px dashed rgba(255, 255, 255, 0.25);
    font-size: 13px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
}
.order-overview li:first-child { padding-left: 0; }
.order-overview li:last-child { border-right: none; }
.order-overview strong { display: block; text-transform: none; font-size: 15px; color: var(--white); }
.order-table td { vertical-align: middle; }
.order-addresses address { font-style: normal; font-size: 15px; color: rgba(255, 255, 255, 0.85); }
.order-progress {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0 0 25px;
    counter-reset: step;
}
.order-progress li {
    flex: 1;
    position: relative;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    padding-top: 34px;
}
.order-progress li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #474644;
    color: var(--white);
    line-height: 26px;
    font-size: 12px;
    z-index: 1;
}
.order-progress li + li::after {
    content: "";
    position: absolute;
    top: 12px;
    right: 50%;
    width: 100%;
    height: 2px;
    background: #474644;
}
.order-progress li.is-done { color: var(--white); }
.order-progress li.is-done::before,
.order-progress li.is-done::after { background: var(--primary); }
.order-status {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    background: #474644;
    color: var(--white);
}
.order-status.status-processing,
.order-status.status-shipped { background: var(--primary); }
.order-status.status-delivered { background: #1e8e4f; }
.order-status.status-cancelled,
.order-status.status-refunded { background: #d6283a; }
.order-status.status-pending { background: #9a6b00; }
.track-btn { height: 52px; min-width: 0; padding-left: 12px; padding-right: 12px; }
.track-result { margin-top: 35px; padding-top: 30px; border-top: 1px solid rgba(255, 255, 255, 0.12); }

/* ---------- Account ---------- */
.account-nav .sidebar-list a span { display: inline; }
.account-logout {
    border: none;
    background: none;
    padding: 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
}
.account-logout:hover { color: var(--primary); }
.account-tiles .contact-card { padding: 25px 15px; }
.account-tiles .contact-card-title { font-size: 16px; }
.auth-box .category-title { margin-bottom: 25px; }
.auth-switch { margin: 22px 0 0; text-align: center; color: rgba(255, 255, 255, 0.85); }
.auth-switch a { color: var(--primary); }

/* ---------- Content pages (policies) ---------- */
.content-section {
    background-color: var(--black);
    font-family: 'Poppins', sans-serif;
    padding: 90px 0 50px;
}
.content-prose {
    max-width: 820px;
    font-size: 16px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.85);
}
.content-prose.is-wide { max-width: none; }
.content-prose h2,
.content-prose h3 { color: var(--white); font-weight: 700; margin: 1.6em 0 0.6em; }
.content-prose h2 { font-size: 26px; }
.content-prose h3 { font-size: 20px; }
.content-prose > :first-child { margin-top: 0; }
.content-prose a { color: var(--primary); }
.content-prose img { max-width: 100%; height: auto; border-radius: 6px; }
.about-text-block p {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 16px;
}
.video-play-btn .fa-play { color: var(--white); font-size: 34px; }

/* ---------- Error pages ---------- */
.error-section {
    background: var(--black);
    font-family: 'Poppins', sans-serif;
    padding: 90px 0 110px;
    text-align: center;
}
.error-code { font-size: 120px; font-weight: 800; line-height: 1; color: var(--primary); }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .header-count { top: -7px; right: -10px; }
    .content-section { padding: 60px 0 40px; }
}
@media (max-width: 767.98px) {
    .order-overview li { padding: 0 14px 0 0; margin-right: 14px; }
    .order-progress li { font-size: 11px; }
}
@media (max-width: 575.98px) {
    .header-count { min-width: 16px; height: 16px; line-height: 16px; font-size: 10px; right: -8px; }
    .checkout-box,
    .review-form-box { padding: 22px 16px; }
    .coupon-applied { height: auto; padding: 10px 14px; }
    .shop-toast { left: 16px; right: 16px; bottom: 16px; max-width: none; }
    .error-code { font-size: 80px; }
}

/* ---------- Quick view ---------- */
.quick-view-modal .modal-content { background: #111; color: var(--white); border-radius: 10px; font-family: 'Poppins', sans-serif; }
.quick-view-modal .btn-close { position: absolute; top: 14px; right: 14px; z-index: 2; }
.quick-view-modal .modal-body { padding: 30px; }
.quick-view .product-detail-title { font-size: 28px; }
.quick-view .product-buy { margin: 20px 0; }
.quick-loading { min-height: 300px; display: grid; place-items: center; }
@media (max-width: 575.98px) { .quick-view-modal .modal-body { padding: 40px 16px 20px; } }

/* ---------- Instagram / social section (design tokens) ---------- */
.social-section { background-color: var(--black); font-family: 'Poppins', sans-serif; padding: 60px 0 40px; }
.social-grid { display: grid; grid-template-columns: repeat(6, 1fr); }
.social-item { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; }
.social-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.social-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(10, 124, 255, 0.55); color: var(--white); font-size: 34px; opacity: 0; transition: opacity 0.3s ease; }
.social-item:hover img { transform: scale(1.05); }
.social-item:hover .social-overlay, .social-item:focus .social-overlay { opacity: 1; }
@media (max-width: 991.98px) { .social-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 575.98px) { .social-grid { grid-template-columns: repeat(2, 1fr); } .social-section { padding: 45px 0 30px; } }

/* ---------- Newsletter help box: email when no phone is set ---------- */
.help-title .help-email { font-size: 0.6em; overflow-wrap: anywhere; }

/* ---------- Empty wishlist ---------- */
.wishlist-empty { padding: 50px 0; }
.wishlist-empty > i { font-size: 46px; color: var(--primary); margin-bottom: 18px; }
.wishlist-empty h2 { font-size: 26px; color: var(--white); margin-bottom: 10px; }
.wishlist-empty p { margin-bottom: 24px; }
.wishlist-empty .btn { color: var(--white); }

/* ---------- Footer social links (Settings → Social links) ---------- */
.footer-social { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 18px 0 0; }
.footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 50%; color: var(--white); font-size: 15px; transition: background-color 0.3s ease, border-color 0.3s ease; }
.footer-social a:hover, .footer-social a:focus { background-color: var(--primary); border-color: var(--primary); color: var(--white); }

/* ---------- Shop price filter (min + max) ---------- */
.price-range-label { display: block; font-size: 13px; color: rgba(255, 255, 255, 0.7); margin: 6px 0 2px; }
