/* ===========================================================
   Wear — Single Product Page Styles
   Colors: #59468D (purple), #000 (black), #fff (white)
   Font: Poppins (Google Fonts)
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* ============================================================
   BASE
   ============================================================ */
.wear-single-product {
    font-family: 'Poppins', sans-serif;
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.wear-sp-breadcrumb {
    padding: 18px 0 0;
    font-size: 0.75rem;
    color: #999;
}

.wear-sp-breadcrumb .woocommerce-breadcrumb,
.wear-sp-breadcrumb .woocommerce-breadcrumb a {
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    color: #999;
    text-decoration: none;
}

.wear-sp-breadcrumb .woocommerce-breadcrumb a:hover {
    color: #59468D;
}

/* ============================================================
   MAIN LAYOUT — image left | info right
   ============================================================ */
.wear-sp-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 32px;
    align-items: start;
}

@media (max-width: 900px) {
    .wear-sp-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* ============================================================
   MEDIA COLUMN — main image + thumbnails
   ============================================================ */
.wear-sp-media {
    position: sticky;
    top: 90px;
}

.wear-sp-main-img-wrap {
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #f4f4f4;
    border-radius: 4px;
}

.wear-sp-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.wear-sp-main-img-wrap:hover .wear-sp-main-img {
    transform: scale(1.03);
}

/* Thumbnails row */
.wear-sp-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.wear-sp-thumb {
    width: 72px;
    height: 88px;
    overflow: hidden;
    border-radius: 3px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
    flex-shrink: 0;
}

.wear-sp-thumb:hover,
.wear-sp-thumb--active {
    border-color: #59468D;
}

.wear-sp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 900px) {
    .wear-sp-media {
        position: static;
    }

    .wear-sp-main-img-wrap {
        aspect-ratio: 4 / 3;
    }
}

/* ============================================================
   INFO COLUMN
   ============================================================ */
.wear-sp-info {
    padding-top: 8px;
}

.wear-sp-category {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #59468D;
    margin: 0 0 12px;
}

.wear-sp-category a {
    color: inherit;
    text-decoration: none;
}

.wear-sp-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    color: #000;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 12px;
}

.wear-sp-sku {
    font-size: 0.78rem;
    color: #aaa;
    margin: 0 0 20px;
}

.wear-sp-sku span {
    font-weight: 500;
    color: #888;
}

.wear-sp-short-desc {
    font-size: 0.9rem;
    line-height: 1.75;
    color: #555;
    margin: 0 0 28px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.wear-sp-short-desc p {
    margin: 0 0 10px;
}

.wear-sp-short-desc p:last-child {
    margin: 0;
}

/* ============================================================
   INQUIRY BUTTON + SLIDING PANEL
   ============================================================ */
.wear-sp-inquiry-wrap {
    margin-top: 8px;
}

.wear-sp-inquiry-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #000;
    color: #fff;
    border: none;
    font-family: 'Poppins', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 14px 28px;
    border-radius: 2px;
    cursor: pointer;
    transition: background 0.25s ease;
    width: 100%;
    justify-content: center;
}

.wear-sp-inquiry-toggle:hover {
    background: #59468D;
}

.wear-sp-toggle-icon {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

/* Sliding panel */
.wear-sp-form-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    opacity: 0;
}

.wear-sp-form-panel--open {
    max-height: 1200px;
    opacity: 1;
}

.wear-sp-form-inner {
    border: 1px solid #ebebeb;
    border-top: 3px solid #59468D;
    border-radius: 0 0 4px 4px;
    padding: 28px 24px 24px;
    background: #fff;
}

.wear-sp-form-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: #000;
    margin: 0 0 6px;
}

.wear-sp-form-subtitle {
    font-size: 0.8rem;
    color: #888;
    margin: 0 0 20px;
    line-height: 1.5;
}

/* ============================================================
   CF7 FORM STYLING
   ============================================================ */
.wear-cf7-row {
    margin-bottom: 14px;
}

.wear-cf7-row label,
.wpcf7-form label {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #555;
    margin-bottom: 5px;
}

.wear-sp-form-inner .wpcf7-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
}

.wear-cf7-full {
    grid-column: 1 / -1;
}

/* Inputs, textarea */
.wear-sp-form-inner input[type="text"],
.wear-sp-form-inner input[type="email"],
.wear-sp-form-inner input[type="tel"],
.wear-sp-form-inner input[type="number"],
.wear-sp-form-inner textarea,
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="number"],
.wpcf7-form textarea {
    width: 100%;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    color: #111;
    background: #fafafa;
    border: 1px solid #ddd;
    border-radius: 2px;
    padding: 10px 14px;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
    box-sizing: border-box;
}

.wear-sp-form-inner input:focus,
.wear-sp-form-inner textarea:focus,
.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
    border-color: #59468D;
    background: #fff;
}

.wear-sp-form-inner textarea {
    resize: vertical;
    min-height: 110px;
}

/* Read-only product name field */
.wear-sp-form-inner input[readonly] {
    background: #f0f0f0;
    color: #666;
    cursor: default;
}

/* Submit button */
.wpcf7-form input.wear-cf7-submit,
input.wear-cf7-submit {
    display: block;
    width: 100%;
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    background: #59468D;
    border: none;
    border-radius: 2px;
    padding: 13px 24px;
    cursor: pointer;
    transition: background 0.25s ease;
    margin-top: 4px;
}

.wpcf7-form input.wear-cf7-submit:hover,
input.wear-cf7-submit:hover {
    background: #000;
}

/* CF7 spinner / response */
.wpcf7-spinner {
    margin-left: 10px;
}

.wpcf7-response-output {
    font-family: 'Poppins', sans-serif;
    font-size: 0.82rem;
    border-radius: 2px;
    padding: 10px 14px;
    margin-top: 10px;
}

/* Validation errors */
.wpcf7-not-valid-tip {
    font-family: 'Poppins', sans-serif;
    font-size: 0.72rem;
    color: #c0392b;
    margin-top: 4px;
}

.wpcf7-not-valid {
    border-color: #c0392b !important;
}

@media (max-width: 560px) {
    .wear-sp-form-inner .wpcf7-form {
        grid-template-columns: 1fr;
    }

    .wear-cf7-full {
        grid-column: 1;
    }
}

/* ============================================================
   PRODUCT DESCRIPTION SECTION
   ============================================================ */
.wear-sp-description-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.wear-sp-desc-heading {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #000;
    margin: 0 0 20px;
    text-transform: uppercase;
}

.wear-sp-desc-content {
    font-size: 0.9rem;
    line-height: 1.8;
    color: #555;
    max-width: 800px;
}

.wear-sp-desc-content p {
    margin: 0 0 14px;
}

.wear-sp-desc-content ul {
    padding-left: 20px;
    margin: 0 0 14px;
}

.wear-sp-desc-content li {
    margin-bottom: 6px;
}

/* ============================================================
   RELATED PRODUCTS
   ============================================================ */
.wear-sp-related {
    margin-top: 64px;
    padding-top: 48px;
    border-top: 1px solid #eee;
}

.wear-sp-related-header {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 28px;
}

.wear-sp-related-heading {
    font-family: 'Poppins', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #000;
    margin: 0;
    text-transform: uppercase;
}

.wear-sp-related-sub {
    font-size: 0.75rem;
    color: #aaa;
    font-weight: 400;
    letter-spacing: 0.05em;
}

.wear-sp-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

@media (max-width: 900px) {
    .wear-sp-related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .wear-sp-related-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
}

/* Related product card — overlay style */
.wear-sp-rel-card {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.wear-sp-rel-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(89, 70, 141, 0.15);
}

.wear-sp-rel-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #f0f0f0;
}

.wear-sp-rel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.wear-sp-rel-card:hover .wear-sp-rel-img {
    transform: scale(1.07);
}

/* Overlay that fades in on hover */
.wear-sp-rel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.1) 55%, transparent 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 18px;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.wear-sp-rel-card:hover .wear-sp-rel-overlay {
    opacity: 1;
}

.wear-sp-rel-cta {
    display: inline-block;
    font-family: 'Poppins', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
    background: #59468D;
    padding: 8px 18px;
    border-radius: 20px;
    transform: translateY(8px);
    transition: transform 0.3s ease, background 0.2s;
}

.wear-sp-rel-card:hover .wear-sp-rel-cta {
    transform: translateY(0);
}

.wear-sp-rel-cta:hover {
    background: #000;
}

/* Card bottom text strip */
.wear-sp-rel-meta {
    padding: 12px 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border: 1px solid #ebebeb;
    border-top: none;
    border-radius: 0 0 4px 4px;
    background: #fff;
}

.wear-sp-rel-cat {
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #59468D !important;
}

.wear-sp-rel-cat a,
.wear-sp-related .wear-sp-rel-cat a,
.wear-single-product .wear-sp-rel-meta .wear-sp-rel-cat a {
    color: #59468D !important;
    text-decoration: none;
}

.wear-sp-rel-name {
    font-family: 'Poppins', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    color: #111;
    margin: 0;
    line-height: 1.3;
}

/* ============================================================
   HIDE WC DEFAULT ELEMENTS WE DON'T NEED
   ============================================================ */
/* Hide default WC add-to-cart, price on single product */
.wear-single-product .cart,
.wear-single-product .woocommerce-variation-add-to-cart,
.wear-single-product .woocommerce-product-rating,
.wear-single-product .product_meta .sku_wrapper,
.woocommerce div.product div.summary .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price {
    display: none !important;
}

/* Hide WC default related products (we render our own) */
.wear-single-product .related.products,
.wear-single-product .up-sells.upsells.products {
    display: none !important;
}

/* ============================================================
   GLOBAL PRICE HIDE
   ============================================================ */
.price,
.woocommerce-Price-amount,
span.price,
p.price {
    display: none !important;
}