/* ============================================================
   Hafeez Product Page – Frontend CSS
   Mirrors the original HTML design, scoped to .hpp-* classes
   ============================================================ */

:root {
    --hpp-red:       #E63946;
    --hpp-dark:      #2D3436;
    --hpp-light-bg:  #F5F5F5;
    --hpp-border:    #E0E0E0;
    --hpp-text:      #1A1A1A;
    --hpp-muted:     #666666;
    --hpp-green:     #27AE60;
    --hpp-orange:    #F39C12;
    --hpp-star:      #FFB800;
}

/* ── Box-sizing reset for plugin elements only ───────────── */
.hpp-outer-wrap *,
.hpp-breadcrumb *,
.hpp-page-wrapper * { box-sizing: border-box; }

/* ── Full-width breakout — works inside ANY theme container ─
   Uses the classic "viewport width breakout" trick.
   Does NOT touch the nav or any theme element. Safe.        */
.hpp-outer-wrap {
    width:        100vw !important;
    margin-left:  calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding:      0 !important;
    overflow-x:   hidden !important;
}

/* Hide WC sidebar + their default breadcrumb */
body.single-product #secondary,
body.single-product .sidebar,
body.single-product .widget-area { display: none !important; }
body.single-product .woocommerce-breadcrumb { display: none !important; }

/* ── Page layout wrappers ─────────────────────────────────── */
.hpp-breadcrumb {
    background: linear-gradient(135deg, #0D0D1A 0%, #1A1A2E 50%, #2A2040 100%) !important;
    padding: 0 !important;
    border-top: none !important;
    border-bottom: 3px solid var(--hpp-red) !important;
    font-size: 13px !important;
    box-shadow: 0 6px 28px rgba(0,0,0,.45) !important;
    position: relative !important;
}
/* Left red accent bar */
.hpp-breadcrumb::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important; left: 0 !important;
    width: 5px !important; height: 100% !important;
    background: linear-gradient(180deg, var(--hpp-red) 0%, #A0000B 100%) !important;
}
.hpp-breadcrumb-inner {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 0 36px !important;
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
    flex-wrap: wrap !important;
    min-height: 54px !important;
}
.hpp-breadcrumb a {
    color: rgba(255,255,255,.68) !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 12.5px !important;
    letter-spacing: .5px !important;
    padding: 14px 16px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    transition: color .22s, background .22s !important;
    border-radius: 6px !important;
    position: relative !important;
}
.hpp-breadcrumb a:hover {
    color: #fff !important;
    background: rgba(255,255,255,.09) !important;
    text-decoration: none !important;
}
.hpp-breadcrumb a::before {
    content: '' !important;
    display: inline-block !important;
    width: 15px !important; height: 15px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff99'%3E%3Cpath d='M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z'/%3E%3C/svg%3E") !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    vertical-align: middle !important;
    flex-shrink: 0 !important;
}
.hpp-breadcrumb a:not(:first-of-type)::before { display: none !important; }
.hpp-breadcrumb a:not(:first-of-type) { padding-left: 6px !important; }

.hpp-sep {
    color: rgba(230,57,70,.8) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    padding: 0 3px !important;
    user-select: none !important;
    line-height: 1 !important;
}
/* Current page — glowing red pill */
.hpp-breadcrumb span[aria-current] {
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 12.5px !important;
    letter-spacing: .3px !important;
    padding: 7px 16px !important;
    background: linear-gradient(135deg, rgba(230,57,70,.9) 0%, rgba(160,0,20,.95) 100%) !important;
    border-radius: 20px !important;
    display: inline-flex !important;
    align-items: center !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 300px !important;
    box-shadow: 0 2px 14px rgba(230,57,70,.55), inset 0 1px 0 rgba(255,255,255,.15) !important;
    border: 1px solid rgba(230,57,70,.6) !important;
}

.hpp-page-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px 60px;
}

/* Product section: flex, gallery left 50%, info right 50%
   Using .hpp-outer-wrap parent for higher specificity        */
.hpp-outer-wrap .hpp-product-section {
    display:       flex !important;
    flex-wrap:     wrap !important;
    gap:           0 !important;
    margin-bottom: 60px !important;
    align-items:   flex-start !important;
    width:         100% !important;
}
/* All styles for gallery in ONE place — no duplicate blocks */
.hpp-outer-wrap .hpp-gallery {
    /* Layout — 50% left column */
    width:          50% !important;
    flex:           0 0 50% !important;
    max-width:      50% !important;
    box-sizing:     border-box !important;
    padding-right:  28px !important;
    /* Visuals */
    background:     linear-gradient(135deg, #F9F9F9 0%, #F0F0F0 100%) !important;
    padding-top:    20px !important;
    padding-bottom: 20px !important;
    padding-left:   20px !important;
    border-radius:  12px !important;
    display:        flex !important;
    flex-direction: column !important;
    align-items:    center !important;
    justify-content:flex-start !important;
    min-height:     400px !important;
    border:         2px solid var(--hpp-border) !important;
    position:       sticky !important;
    top:            20px !important;
    align-self:     start !important;
}
/* All styles for info in ONE place — no duplicate blocks */
.hpp-outer-wrap .hpp-product-info {
    /* Layout — 50% right column */
    width:          50% !important;
    flex:           0 0 50% !important;
    max-width:      50% !important;
    box-sizing:     border-box !important;
    padding:        24px 28px 24px 36px !important;
    /* Inner flex */
    display:        flex !important;
    flex-direction: column !important;
    gap:            0 !important;
}

.hpp-details-section {
    margin-top: 60px;
    border-top: 3px solid var(--hpp-border);
    padding-top: 50px;
}

.hpp-section-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--hpp-text);
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 14px;
    letter-spacing: -.5px;
}
.hpp-section-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 55px; height: 4px;
    background: var(--hpp-red);
    border-radius: 2px;
}

.hpp-related-products {
    margin-top: 70px;
    padding-top: 50px;
    border-top: 3px solid var(--hpp-border);
}

/* ── Gallery image + thumbs ───────────────────────────────── */
.hpp-main-image {
    max-width:     100% !important;
    height:        auto !important;
    max-height:    460px !important;
    object-fit:    contain !important;
    border-radius: 8px !important;
    box-shadow:    0 10px 30px rgba(0,0,0,.1) !important;
    display:       block !important;
    margin:        0 auto !important;
}
.hpp-gallery-thumbs {
    display:         flex !important;
    gap:             10px !important;
    margin-top:      18px !important;
    flex-wrap:       wrap !important;
    justify-content: center !important;
    width:           100% !important;
    order:           2 !important;
}
.hpp-thumb {
    width:        86px !important; height: 86px !important;
    border:       2px solid var(--hpp-border) !important;
    border-radius:10px !important;
    overflow:     hidden !important;
    cursor:       pointer !important;
    transition:   border-color .25s, box-shadow .25s !important;
    flex-shrink:  0 !important;
}
.hpp-thumb.active,
.hpp-thumb:hover {
    border-color: var(--hpp-red) !important;
    box-shadow:   0 0 0 3px rgba(230,57,70,.18) !important;
}
.hpp-thumb img { width: 100% !important; height: 100% !important; object-fit: cover !important; }

/* WC content area */
.hpp-wc-content {
    font-size: 15px;
    line-height: 1.8;
    color: var(--hpp-muted);
}
.hpp-wc-content h1,.hpp-wc-content h2,.hpp-wc-content h3 {
    color: var(--hpp-text);
    margin: 20px 0 10px;
    font-weight: 700;
}
.hpp-wc-content ul { margin-left: 22px; margin-bottom: 16px; }
.hpp-wc-content li { margin-bottom: 10px; }
.hpp-wc-content strong { color: var(--hpp-text); }

.hpp-badge {
    display: inline-block;
    background-color: var(--hpp-red);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 14px;
    width: fit-content;
}
.hpp-product-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--hpp-text);
    line-height: 1.3;
    margin-bottom: 10px;
    letter-spacing: -.5px;
}
.hpp-product-sku {
    font-size: 13px;
    color: var(--hpp-muted);
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Rating */
.hpp-rating-section {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 2px solid var(--hpp-border);
    flex-wrap: wrap;
}
.hpp-stars { display: flex; gap: 3px; font-size: 18px; }
.hpp-star  { color: var(--hpp-star); }
.hpp-star.empty { color: #DDD; }
.hpp-rating-text { font-size: 14px; font-weight: 700; color: var(--hpp-text); }
.hpp-review-count { font-size: 13px; color: var(--hpp-muted); }
.hpp-review-link  { color: #0066CC; text-decoration: none; }
.hpp-review-link:hover { color: var(--hpp-red); text-decoration: underline; }

/* Price */
.hpp-price-section {
    background: linear-gradient(135deg, #FFF5F6 0%, #FFF0F2 100%);
    padding: 22px;
    border-radius: 12px;
    margin-bottom: 22px;
    border-left: 5px solid var(--hpp-red);
    box-shadow: 0 4px 15px rgba(230,57,70,.1);
}
.hpp-price-label {
    font-size: 11px;
    color: var(--hpp-muted);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: .5px;
    margin-bottom: 8px;
}
.hpp-price-wrapper {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.hpp-price-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--hpp-red);
    line-height: 1;
}
.hpp-price-currency { font-size: 22px; }
.hpp-old-price {
    font-size: 17px;
    color: var(--hpp-muted);
    text-decoration: line-through;
    opacity: .75;
}
.hpp-discount-badge {
    background-color: var(--hpp-green);
    color: #fff;
    padding: 5px 11px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
}
.hpp-stock-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--hpp-green);
    margin-top: 10px;
}
.hpp-stock-status.out-of-stock { color: var(--hpp-orange); }
.hpp-stock-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: currentColor;
    flex-shrink: 0;
}

/* Action Buttons */
.hpp-action-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 22px;
}
.hpp-whatsapp-btn {
    background: linear-gradient(135deg, #25D366 0%, #1BA856 100%);
    color: #fff;
    border: none;
    padding: 16px 28px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: .8px;
    box-shadow: 0 4px 15px rgba(37,211,102,.3);
    transition: all .3s ease;
    width: 100%;
}
.hpp-whatsapp-btn:hover {
    background: linear-gradient(135deg, #1BA856 0%, #128C45 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(37,211,102,.4);
    color: #fff;
}
.hpp-cart-row {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 12px;
}
.hpp-qty-wrap {
    display: flex;
    align-items: center;
    border: 2px solid var(--hpp-border);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    height: 50px;
}
.hpp-qty-btn {
    background: none;
    border: none;
    width: 40px;
    height: 50px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    color: var(--hpp-text);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background .2s;
}
.hpp-qty-btn:hover { background: var(--hpp-light-bg); }
.hpp-qty-input {
    flex: 1;
    min-width: 0;              /* prevents flex overflow */
    border: none;
    background: transparent;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--hpp-text);
    -moz-appearance: textfield;
}
.hpp-qty-input::-webkit-outer-spin-button,
.hpp-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.hpp-qty-input:focus { outline: none; }

/* Add-to-cart button */
.hpp-add-to-cart-btn {
    background: linear-gradient(135deg, #FFC107 0%, #FFB800 100%);
    color: #000;
    border: none;
    padding: 0 20px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    height: 50px;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: .8px;
    box-shadow: 0 4px 15px rgba(255,193,7,.3);
    transition: all .3s;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
.hpp-add-to-cart-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #FFB800 0%, #FFA500 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255,193,7,.4);
    color: #000;
}
.hpp-add-to-cart-btn:disabled {
    background: #CCC;
    cursor: not-allowed;
    box-shadow: none;
    color: #666;
}
/* WooCommerce add-to-cart button override inside cart row */
.hpp-cart-row .add_to_cart_button,
.hpp-cart-row .single_add_to_cart_button {
    background: linear-gradient(135deg, #FFC107 0%, #FFB800 100%);
    color: #000;
    border: none;
    padding: 0 20px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    height: 50px;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: .8px;
    box-shadow: 0 4px 15px rgba(255,193,7,.3);
    transition: all .3s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hpp-cart-row .add_to_cart_button:hover,
.hpp-cart-row .single_add_to_cart_button:hover {
    background: linear-gradient(135deg, #FFB800 0%, #FFA500 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255,193,7,.4);
    color: #000;
}

/* Info Boxes */
.hpp-additional-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.hpp-info-box {
    background: linear-gradient(135deg, #F9F9F9 0%, #F0F0F0 100%);
    padding: 16px;
    border-radius: 10px;
    text-align: center;
    border: 2px solid var(--hpp-border);
    transition: all .3s;
}
.hpp-info-box:hover {
    border-color: var(--hpp-red);
    box-shadow: 0 4px 12px rgba(230,57,70,.15);
}
.hpp-info-icon  { font-size: 26px; margin-bottom: 8px; }
.hpp-info-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.hpp-info-text  { font-size: 11px; color: var(--hpp-muted); }

/* ── Tabs ─────────────────────────────────────────────────── */
.hpp-tabs-section { margin-top: 40px; }
.hpp-tabs {
    display: flex;
    gap: 0;
    border-bottom: 3px solid var(--hpp-border);
    margin-bottom: 28px;
    overflow-x: auto;
}
.hpp-tab-btn {
    background: none;
    border: none;
    padding: 14px 26px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    color: var(--hpp-muted);
    border-bottom: 4px solid transparent;
    margin-bottom: -3px;
    transition: all .3s;
    text-transform: uppercase;
    letter-spacing: .8px;
    white-space: nowrap;
}
.hpp-tab-btn.active  { color: var(--hpp-text); border-bottom-color: var(--hpp-red); }
.hpp-tab-btn:hover   { color: var(--hpp-text); }
.hpp-tab-content     { display: none; }
.hpp-tab-content.active {
    display: block;
    animation: hppFadeIn .3s ease;
}
@keyframes hppFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.hpp-description-text {
    font-size: 15px;
    line-height: 1.8;
    color: var(--hpp-muted);
    margin-bottom: 18px;
}
.hpp-description-heading {
    font-size: 17px;
    font-weight: 700;
    margin: 22px 0 12px;
    color: var(--hpp-text);
}
.hpp-features-content ul,
.hpp-extra-content ul,
.hpp-tab-content ul {
    margin-left: 22px;
    margin-bottom: 18px;
}
.hpp-features-content li,
.hpp-extra-content li,
.hpp-tab-content li {
    margin-bottom: 10px;
    line-height: 1.7;
    color: var(--hpp-muted);
}

/* ── Reviews ──────────────────────────────────────────────── */
.hpp-reviews-section { margin-top: 28px; }
.hpp-review-summary {
    background: linear-gradient(135deg, #FFF5F6 0%, #FFF0F2 100%);
    padding: 28px;
    border-radius: 12px;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 36px;
    margin-bottom: 36px;
    border: 1px solid rgba(230,57,70,.2);
}
.hpp-review-rating-box { text-align: center; }
.hpp-big-rating { font-size: 48px; font-weight: 700; color: var(--hpp-red); margin-bottom: 8px; }
.hpp-big-stars  { display: flex; justify-content: center; gap: 4px; font-size: 20px; margin-bottom: 8px; }
.hpp-review-count-text { font-size: 13px; color: var(--hpp-muted); font-weight: 600; }
.hpp-review-distribution { display: flex; flex-direction: column; gap: 10px; }
.hpp-rating-bar { display: flex; align-items: center; gap: 10px; }
.hpp-rating-bar-label { font-size: 13px; font-weight: 600; width: 45px; text-align: right; }
.hpp-rating-bar-bg    { flex: 1; height: 8px; background: #DDD; border-radius: 4px; overflow: hidden; }
.hpp-rating-bar-fill  { height: 100%; background: var(--hpp-red); border-radius: 4px; }
.hpp-rating-bar-count { font-size: 13px; color: var(--hpp-muted); width: 36px; text-align: right; }

/* Review Cards */
.hpp-reviews-list   { display: flex; flex-direction: column; gap: 22px; }
.hpp-review-card {
    background: var(--hpp-light-bg);
    padding: 22px;
    border-radius: 10px;
    border: 1px solid var(--hpp-border);
    transition: all .3s;
}
.hpp-review-card:hover { border-color: var(--hpp-red); box-shadow: 0 4px 15px rgba(0,0,0,.08); }
.hpp-review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}
.hpp-review-user-info { display: flex; align-items: center; gap: 10px; }
.hpp-review-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--hpp-red);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 15px;
    flex-shrink: 0;
}
.hpp-review-user-details { display: flex; flex-direction: column; }
.hpp-review-username { font-weight: 700; color: var(--hpp-text); font-size: 14px; }
.hpp-review-date     { font-size: 12px; color: var(--hpp-muted); }
.hpp-review-rating-stars { display: flex; gap: 3px; font-size: 16px; }
.hpp-review-title { font-weight: 700; color: var(--hpp-text); margin-bottom: 6px; font-size: 14px; }
.hpp-review-text  { color: var(--hpp-muted); font-size: 14px; line-height: 1.6; }

.hpp-write-review-btn {
    display: inline-block;
    background: var(--hpp-red);
    color: #fff;
    border: none;
    padding: 13px 28px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    margin-top: 28px;
    text-transform: uppercase;
    letter-spacing: .5px;
    transition: all .3s;
}
.hpp-write-review-btn:hover {
    background: #D32F35;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230,57,70,.3);
    color: #fff;
}

/* ── Related Products ─────────────────────────────────────── */
.hpp-section-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--hpp-text);
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 14px;
}
.hpp-section-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 55px; height: 4px;
    background: var(--hpp-red);
    border-radius: 2px;
}
.hpp-products-grid {
    display: grid;
    gap: 22px;
}
.hpp-cols-2 { grid-template-columns: repeat(2, 1fr); }
.hpp-cols-3 { grid-template-columns: repeat(3, 1fr); }
.hpp-cols-4 { grid-template-columns: repeat(4, 1fr); }

.hpp-product-card {
    background: var(--hpp-light-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all .3s;
}
.hpp-product-card:hover {
    transform: translateY(-6px);
    border-color: var(--hpp-red);
    box-shadow: 0 12px 28px rgba(0,0,0,.14);
}
.hpp-card-link { text-decoration: none; color: inherit; display: flex; flex-direction: column; height: 100%; }
.hpp-card-image {
    width: 100%; height: 180px;
    background: #fff;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid var(--hpp-border);
}
.hpp-card-image img { max-width: 90%; max-height: 90%; object-fit: contain; }
.hpp-card-content { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.hpp-card-title { font-size: 13px; font-weight: 700; color: var(--hpp-text); line-height: 1.4; margin-bottom: 10px; flex: 1; }
.hpp-card-price { font-size: 15px; font-weight: 700; color: var(--hpp-red); }

/* ── Responsive ───────────────────────────────────────────── */

/* Tablet landscape: slightly tighten gap, keep 50/50 */
@media (max-width: 1200px) {
    .hpp-outer-wrap .hpp-gallery { padding-right: 20px !important; }
    .hpp-cols-4       { grid-template-columns: repeat(3, 1fr) !important; }
}

/* Tablet portrait: stack gallery above info (full width each) */
@media (max-width: 900px) {
    .hpp-outer-wrap .hpp-gallery {
        width:         100% !important;
        flex:          0 0 100% !important;
        max-width:     100% !important;
        padding-right: 0 !important;
        padding-left:  20px !important;
        position:      static !important;
        min-height:    280px !important;
    }
    .hpp-outer-wrap .hpp-product-info {
        width:        100% !important;
        flex:         0 0 100% !important;
        max-width:    100% !important;
        padding:      20px 4px 0 4px !important;
        margin-top:   24px !important;
    }
    .hpp-cols-4          { grid-template-columns: repeat(2, 1fr) !important; }
    .hpp-cols-3          { grid-template-columns: repeat(2, 1fr) !important; }
    .hpp-review-summary  { grid-template-columns: 1fr !important; }
    .hpp-additional-info { grid-template-columns: repeat(3, 1fr) !important; }
    .hpp-details-section { margin-top: 30px; padding-top: 24px; }
}

/* Large mobile */
@media (max-width: 768px) {
    .hpp-page-wrapper              { padding: 20px 16px 40px !important; }
    .hpp-product-title             { font-size: 22px !important; }
    .hpp-price-value               { font-size: 28px !important; }
    .hpp-outer-wrap .hpp-gallery   { padding: 20px !important; min-height: 220px !important; }
    .hpp-cols-3,
    .hpp-cols-4                    { grid-template-columns: repeat(2, 1fr) !important; }
}

/* Small mobile: stack everything */
@media (max-width: 520px) {
    .hpp-page-wrapper              { padding: 14px 12px 28px !important; }
    .hpp-product-title             { font-size: 18px !important; }
    .hpp-price-value               { font-size: 24px !important; }
    .hpp-outer-wrap .hpp-gallery   { padding: 14px !important; min-height: 180px !important; }

    /* Qty + Add-to-cart: stack vertically */
    .hpp-cart-row      { grid-template-columns: 1fr !important; }
    .hpp-qty-wrap      { width: 160px !important; margin: 0 auto !important; }
    .hpp-add-to-cart-btn,
    .hpp-cart-row .single_add_to_cart_button,
    .hpp-cart-row .button { height: 52px !important; }

    /* Info boxes: 1 column */
    .hpp-additional-info { grid-template-columns: 1fr !important; }

    /* Related products: 1 column */
    .hpp-cols-2,
    .hpp-cols-3,
    .hpp-cols-4          { grid-template-columns: 1fr !important; }

    .hpp-tab-btn         { padding: 10px 12px !important; font-size: 11px !important; }
    .hpp-price-section   { padding: 14px !important; }
    .hpp-review-summary  { padding: 16px !important; }
    .hpp-thumb           { width: 48px !important; height: 48px !important; }
    .hpp-whatsapp-btn    { padding: 14px 18px !important; font-size: 14px !important; }
}
