/* ============================================================
   shop.css — Altmed HealthTech WooCommerce Shop
   Scoped to #altmed-shop
   ============================================================ */

#altmed-shop {
    --sh-primary:      #006565;
    --sh-primary-light:#93f2f2;
    --sh-primary-bg:   #008080;
    --sh-orange:       #fd8b00;
    --sh-orange-dark:  #e07a00;
    --sh-surface:      #f8faf9;
    --sh-surface-low:  #f2f4f3;
    --sh-surface-cont: #edeeed;
    --sh-surface-high: #e7e8e8;
    --sh-on-surface:   #191c1c;
    --sh-muted:        #3e4949;
    --sh-outline:      #6e7979;
    --sh-outline-var:  #bdc9c8;
    --sh-white:        #ffffff;
    --sh-dark:         #2e3131;
    --sh-success:      #1a7a4a;

    font-family: 'Inter', sans-serif;
    color: var(--sh-on-surface);
    background: var(--sh-surface);
}

#altmed-shop .material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    line-height: 1;
    vertical-align: middle;
}

/* ---------- Container ---------- */
#altmed-shop .sh-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 64px;
}
@media (max-width: 768px) { #altmed-shop .sh-container { padding: 0 20px; } }

/* ---------- Typography ---------- */
#altmed-shop .sh-display {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}
#altmed-shop .sh-headline-md {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
}
#altmed-shop .sh-body-lg   { font-size: 18px; line-height: 1.6; }
#altmed-shop .sh-label-sm  { font-size: 12px; font-weight: 500; letter-spacing: 0.02em; }
#altmed-shop .sh-muted      { color: var(--sh-muted); }
#altmed-shop .sh-muted-light { color: rgba(255,255,255,0.75); }
#altmed-shop .sh-text-primary { color: var(--sh-primary); }
#altmed-shop .sh-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ---------- Badge ---------- */
#altmed-shop .sh-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0,128,128,0.9);
    color: #e3fffe;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    margin-bottom: 24px;
}

/* ---------- Buttons ---------- */
#altmed-shop .sh-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.01em;
    cursor: pointer;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s;
    border: none;
}
#altmed-shop .sh-btn:hover     { transform: scale(1.02); }
#altmed-shop .sh-btn:active    { transform: scale(0.97); }
#altmed-shop .sh-btn--primary  { background: var(--sh-primary); color: var(--sh-white); box-shadow: 0 4px 20px rgba(0,101,101,0.3); }
#altmed-shop .sh-btn--orange   { background: var(--sh-orange); color: #603100; box-shadow: 0 4px 20px rgba(253,139,0,0.3); }
#altmed-shop .sh-btn--outline  { border: 2px solid var(--sh-primary); color: var(--sh-primary); background: transparent; padding: 12px 30px; }

#altmed-shop .sh-btn-group { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 32px; }

/* ---------- Hero ---------- */
#altmed-shop .sh-hero {
    position: relative;
    height: 520px;
    display: flex;
    align-items: center;
    margin: 32px 64px;
    border-radius: 32px;
    overflow: hidden;
}
@media (max-width: 768px) {
    #altmed-shop .sh-hero { margin: 16px; height: auto; padding: 80px 0 60px; }
}
#altmed-shop .sh-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
#altmed-shop .sh-hero__img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
#altmed-shop .sh-hero__img-placeholder {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--sh-primary-bg) 0%, var(--sh-dark) 100%);
}
#altmed-shop .sh-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(248,250,249,0.95) 0%, rgba(248,250,249,0.7) 50%, transparent 100%);
}
#altmed-shop .sh-hero__inner {
    position: relative;
    z-index: 2;
    max-width: 600px;
}
#altmed-shop .sh-hero__inner .sh-display { color: var(--sh-on-surface); }
#altmed-shop .sh-hero__inner .sh-body-lg { color: var(--sh-muted); max-width: 500px; }

/* ---------- Search Bar ---------- */
#altmed-shop .sh-search-bar {
    padding: 32px 0;
    background: var(--sh-surface);
}
#altmed-shop .sh-search-inner {
    background: var(--sh-surface-low);
    border-radius: 24px;
    padding: 24px 32px;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
#altmed-shop .sh-search-wrap {
    position: relative;
    flex: 1;
    min-width: 240px;
}
#altmed-shop .sh-search-wrap form { display: flex; }
#altmed-shop .sh-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--sh-outline);
    pointer-events: none;
    z-index: 1;
}
#altmed-shop .sh-search-input {
    width: 100%;
    padding: 14px 20px 14px 48px;
    background: #F5F5F7;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    color: var(--sh-on-surface);
    outline: none;
    transition: box-shadow .2s;
}
#altmed-shop .sh-search-input:focus { box-shadow: 0 0 0 2px var(--sh-primary); }
#altmed-shop .sh-search-input::placeholder { color: var(--sh-outline); }

#altmed-shop .sh-quick-filters { display: flex; gap: 10px; flex-wrap: wrap; }
#altmed-shop .sh-quick-chip {
    padding: 8px 18px;
    background: var(--sh-surface-high);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    color: var(--sh-on-surface);
    cursor: pointer;
    text-decoration: none;
    transition: background .2s, color .2s;
    white-space: nowrap;
    border: none;
}
#altmed-shop .sh-quick-chip:hover { background: var(--sh-primary); color: var(--sh-white); }

/* ---------- Main Layout ---------- */
#altmed-shop .sh-main { padding: 40px 0 80px; }
#altmed-shop .sh-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    align-items: start;
}
@media (max-width: 1024px) {
    #altmed-shop .sh-layout { grid-template-columns: 1fr; }
    #altmed-shop .sh-sidebar { display: none; }
}

/* ---------- Sidebar ---------- */
#altmed-shop .sh-sidebar__inner {
    position: sticky;
    top: 100px;
    background: var(--sh-surface-low);
    border-radius: 24px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}
#altmed-shop .sh-sidebar__head { border-bottom: 1px solid var(--sh-outline-var); padding-bottom: 16px; }
#altmed-shop .sh-sidebar__head p { margin-top: 4px; }

#altmed-shop .sh-filter-group { display: flex; flex-direction: column; gap: 10px; }
#altmed-shop .sh-filter-group__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--sh-muted);
    margin-bottom: 4px;
}
#altmed-shop .sh-filter-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
#altmed-shop .sh-filter-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--sh-muted);
    text-decoration: none;
    transition: background .15s, color .15s;
}
#altmed-shop .sh-filter-link:hover { background: var(--sh-surface-high); color: var(--sh-on-surface); }
#altmed-shop .sh-filter-link--active { background: var(--sh-primary); color: var(--sh-white); font-weight: 600; }
#altmed-shop .sh-filter-link--active:hover { background: var(--sh-primary); color: var(--sh-white); }
#altmed-shop .sh-filter-count {
    font-size: 11px;
    background: rgba(0,0,0,0.08);
    border-radius: 999px;
    padding: 2px 8px;
}
#altmed-shop .sh-filter-link--active .sh-filter-count { background: rgba(255,255,255,0.2); }

#altmed-shop .sh-price-links { display: flex; flex-direction: column; gap: 6px; }
#altmed-shop .sh-price-links .sh-quick-chip { text-align: left; border-radius: 8px; background: var(--sh-surface-high); }

#altmed-shop .sh-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    cursor: pointer;
    color: var(--sh-muted);
}
#altmed-shop .sh-checkbox input { accent-color: var(--sh-primary); width: 16px; height: 16px; cursor: pointer; }

/* Price widget WooCommerce override */
#altmed-shop .sh-price-widget .price_slider_wrapper { padding: 8px 0; }
#altmed-shop .sh-price-widget .ui-slider { background: var(--sh-outline-var); border-radius: 999px; height: 4px; }
#altmed-shop .sh-price-widget .ui-slider-range { background: var(--sh-primary); }
#altmed-shop .sh-price-widget .ui-slider-handle { background: var(--sh-primary); border-radius: 50%; width: 16px; height: 16px; top: -6px; border: none; cursor: pointer; }
#altmed-shop .sh-price-widget .price_label { font-size: 13px; color: var(--sh-muted); margin-top: 8px; }
#altmed-shop .sh-price-widget button { background: var(--sh-primary); color: white; border: none; padding: 6px 14px; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; margin-top: 8px; }

#altmed-shop .sh-sidebar__trust { display: flex; flex-direction: column; gap: 10px; padding-top: 16px; border-top: 1px solid var(--sh-outline-var); }
#altmed-shop .sh-trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--sh-muted);
}
#altmed-shop .sh-trust-badge .material-symbols-outlined { color: var(--sh-primary); font-size: 18px !important; }

/* ---------- Toolbar ---------- */
#altmed-shop .sh-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--sh-outline-var);
    flex-wrap: wrap;
    gap: 12px;
}
/* WooCommerce result count */
#altmed-shop .woocommerce-result-count {
    font-size: 14px;
    color: var(--sh-muted);
    margin: 0;
}
/* WooCommerce ordering */
#altmed-shop .woocommerce-ordering select {
    padding: 8px 14px;
    border: 1px solid var(--sh-outline-var);
    border-radius: 10px;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    color: var(--sh-on-surface);
    background: var(--sh-white);
    outline: none;
    cursor: pointer;
}
#altmed-shop .woocommerce-ordering select:focus { border-color: var(--sh-primary); }

/* ---------- WooCommerce Product Loop ---------- */
#altmed-shop ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
@media (max-width: 1280px) {
    #altmed-shop ul.products { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 600px) {
    #altmed-shop ul.products { grid-template-columns: 1fr !important; }
}

#altmed-shop ul.products li.product {
    background: var(--sh-white) !important;
    border: 1px solid var(--sh-outline-var) !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    transition: transform .2s, box-shadow .2s, border-color .2s !important;
    box-shadow: 0 2px 8px rgba(25,28,28,0.04) !important;
    display: flex !important;
    flex-direction: column !important;
    margin: 0 !important;
    float: none !important;
    width: auto !important;
    padding: 0 !important;
}
#altmed-shop ul.products li.product:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 32px rgba(0,101,101,0.12) !important;
    border-color: var(--sh-primary) !important;
}

/* Product image */
#altmed-shop ul.products li.product a.woocommerce-loop-product__link { display: block; }
#altmed-shop ul.products li.product img {
    width: 100% !important;
    height: 220px !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 0 !important;
    transition: transform .4s !important;
}
#altmed-shop ul.products li.product:hover img { transform: scale(1.04) !important; }

/* Product info area */
#altmed-shop ul.products li.product .woocommerce-loop-product__link,
#altmed-shop ul.products li.product > a:first-child { overflow: hidden; display: block; }

#altmed-shop ul.products li.product .woocommerce-loop-product__title {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: var(--sh-on-surface) !important;
    line-height: 1.4 !important;
    padding: 16px 20px 4px !important;
    margin: 0 !important;
}

#altmed-shop ul.products li.product .price {
    display: block !important;
    padding: 0 20px 8px !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: var(--sh-on-surface) !important;
    font-family: 'Space Grotesk', sans-serif !important;
}
#altmed-shop ul.products li.product .price del {
    font-size: 13px !important;
    color: var(--sh-outline) !important;
    font-weight: 400 !important;
    margin-right: 4px !important;
}
#altmed-shop ul.products li.product .price ins {
    text-decoration: none !important;
    color: var(--sh-on-surface) !important;
}

/* Star rating */
#altmed-shop ul.products li.product .star-rating {
    padding: 0 20px 12px !important;
    float: none !important;
}
#altmed-shop ul.products li.product .star-rating span::before { color: #f59e0b !important; }

/* Add to cart button */
#altmed-shop ul.products li.product .button,
#altmed-shop ul.products li.product a.button {
    display: block !important;
    width: calc(100% - 40px) !important;
    margin: 0 20px 20px !important;
    padding: 11px 16px !important;
    background: var(--sh-primary) !important;
    color: var(--sh-white) !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-align: center !important;
    transition: background .2s !important;
    border: none !important;
    cursor: pointer !important;
    letter-spacing: 0.02em !important;
}
#altmed-shop ul.products li.product .button:hover,
#altmed-shop ul.products li.product a.button:hover {
    background: #004f4f !important;
}
#altmed-shop ul.products li.product .added_to_cart {
    display: block !important;
    text-align: center !important;
    font-size: 12px !important;
    color: var(--sh-success) !important;
    padding: 0 20px 12px !important;
    font-weight: 600 !important;
}

/* Sale badge */
#altmed-shop ul.products li.product .onsale {
    background: var(--sh-orange) !important;
    color: #fff !important;
    border-radius: 8px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    padding: 4px 10px !important;
    min-height: auto !important;
    min-width: auto !important;
    line-height: 1.4 !important;
    top: 12px !important;
    left: 12px !important;
}

/* ---------- Empty State ---------- */
#altmed-shop .sh-empty {
    text-align: center;
    padding: 80px 40px;
    background: var(--sh-surface-low);
    border-radius: 24px;
}
#altmed-shop .sh-empty__icon { font-size: 64px !important; color: var(--sh-outline-var); margin-bottom: 16px; display: block; }
#altmed-shop .sh-empty h3 { margin-bottom: 8px; }
#altmed-shop .sh-empty p  { color: var(--sh-muted); margin-bottom: 24px; }

/* ---------- Pagination ---------- */
#altmed-shop .sh-pagination { margin-top: 48px; }
#altmed-shop .woocommerce-pagination ul {
    display: flex !important;
    justify-content: center !important;
    gap: 8px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
#altmed-shop .woocommerce-pagination ul li a,
#altmed-shop .woocommerce-pagination ul li span {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border: 1px solid var(--sh-outline-var) !important;
    color: var(--sh-on-surface) !important;
    transition: all .2s !important;
    text-decoration: none !important;
}
#altmed-shop .woocommerce-pagination ul li a:hover { border-color: var(--sh-primary) !important; color: var(--sh-primary) !important; }
#altmed-shop .woocommerce-pagination ul li span.current { background: var(--sh-primary) !important; color: white !important; border-color: var(--sh-primary) !important; }

/* ---------- Bottom Trust Bar ---------- */
#altmed-shop .sh-bottom-trust {
    background: var(--sh-dark);
    padding: 40px 0;
}
#altmed-shop .sh-bottom-trust__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
@media (max-width: 768px) {
    #altmed-shop .sh-bottom-trust__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    #altmed-shop .sh-bottom-trust__grid { grid-template-columns: 1fr; }
}
#altmed-shop .sh-bottom-trust__item {
    display: flex;
    align-items: center;
    gap: 14px;
    color: rgba(239,241,240,0.85);
}
#altmed-shop .sh-bottom-trust__item .material-symbols-outlined { font-size: 32px !important; color: var(--sh-primary-light); flex-shrink: 0; }
#altmed-shop .sh-bottom-trust__item strong { display: block; font-size: 14px; color: #eff1f0; margin-bottom: 2px; }
#altmed-shop .sh-bottom-trust__item span { font-size: 12px; opacity: 0.6; }
