
/* Prevent horizontal scrollbar on mobile — clamp #maincontent / page-main only */
@media (max-width: 1023px) {
    body.catalog-product-view #maincontent,
    body.catalog-product-view .page-main,
    body.catalog-product-view .columns,
    body.catalog-product-view .agt-pdp-top,
    body.catalog-product-view .agt-pdp-info-col,
    body.catalog-product-view .agt-pdp-info-col .card,
    body.catalog-product-view .panth-buy-section,
    body.catalog-product-view .panth-buy-row,
    body.catalog-product-view .product-options-wrapper,
    body.catalog-product-view #product_addtocart_form { max-width: 100% !important; overflow-x: hidden !important; }
}

/* Prevent hover-lift clipping in addons / related / upsell sliders */
body.catalog-product-view .snap-track,
body.catalog-product-view .agt-padd-viewport,
body.catalog-product-view .agt-padd-track {
    overflow-y: visible !important;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
}
body.catalog-product-view .agt-padd-viewport { padding-top: 14px !important; }
/* Don't stretch peer cards when one expands More details */
body.catalog-product-view .agt-padd-track { align-items: start !important; }
body.catalog-product-view .agt-padd-card { align-self: start !important; }
/* Addon card detail bullet list — left aligned with bootstrap check icon */
body.catalog-product-view .agt-padd-card-detail,
body.catalog-product-view .agt-padd-card .agt-padd-card-content,
body.catalog-product-view .agt-padd-card [x-show] ul {
    text-align: left !important;
}
body.catalog-product-view .agt-padd-card ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left !important;
}
body.catalog-product-view .agt-padd-card ul li {
    position: relative;
    padding-left: 1.6rem !important;
    text-align: left !important;
    font-size: 0.88rem;
    color: #2c3e50;
    line-height: 1.5;
}
body.catalog-product-view .agt-padd-card ul li::before {
    content: "\F26B"; /* bi-check-circle-fill */
    font-family: "bootstrap-icons";
    position: absolute;
    left: 0;
    top: 1px;
    color: #1F2E44;
    font-size: 1rem;
    line-height: 1.4;
}

/* Mobile Key Features: 2-col grid, image + title only */
@media (max-width: 767px) {
    body.catalog-product-view .agt-pfb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
    body.catalog-product-view .agt-pfb-card { border-radius: 10px !important; }
    body.catalog-product-view .agt-pfb-img-wrap { aspect-ratio: 4 / 3 !important; }
    body.catalog-product-view .agt-pfb-body { padding: 8px 6px 10px !important; gap: 4px !important; align-items: center !important; }
    body.catalog-product-view .agt-pfb-card-title {
        font-size: 0.82rem !important;
        text-align: center !important;
        line-height: 1.25 !important;
    }
    body.catalog-product-view .agt-pfb-card-short-desc { display: none !important; }
    body.catalog-product-view .agt-pfb-card-content { display: none !important; }
}

/* Modern accent underline below PDP section headings */
body.catalog-product-view .agt-pfb-title,
body.catalog-product-view .agt-pspec-title,
body.catalog-product-view .agt-faq-title,
body.catalog-product-view .agt-padd-title,
body.catalog-product-view .agt-attach-title,
body.catalog-product-view .product-slider .text-2xl,
body.catalog-product-view .agt-pdp-info-col h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 14px;
    margin-bottom: 28px;
    text-align: center;
}
body.catalog-product-view .agt-pfb-header,
body.catalog-product-view .agt-pspec-section .agt-pspec-wrap,
body.catalog-product-view .agt-faq-section,
body.catalog-product-view .agt-padd-section,
body.catalog-product-view .agt-attach-section { text-align: center; }
body.catalog-product-view .agt-pfb-title::after,
body.catalog-product-view .agt-pspec-title::after,
body.catalog-product-view .agt-faq-title::after,
body.catalog-product-view .agt-padd-title::after,
body.catalog-product-view .agt-attach-title::after,
body.catalog-product-view .product-slider .text-2xl::after,
body.catalog-product-view .agt-pdp-info-col h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 72px;
    height: 4px;
    background: linear-gradient(90deg, #1F2E44 0%, #3A5378 50%, #1F2E44 100%);
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(31, 46, 68, 0.25);
}

/* Force product page title h1 visible (Hyva default has md:sr-only) */
body.catalog-product-view h1.page-title[data-ui-id="page-title-wrapper"] {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 0 1rem !important;
    padding: 0 8px !important;
    clip: auto !important;
    clip-path: none !important;
    overflow: visible !important;
    white-space: normal !important;
    word-break: break-word !important;
    font-size: clamp(1.1rem, 4vw, 2.4rem) !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
    color: #1F2E44 !important;
    text-align: center !important;
    display: block !important;
    border: 0 !important;
}
body.catalog-product-view .page-main .container.flex,
body.catalog-product-view .page-main h1.page-title[data-ui-id="page-title-wrapper"] {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    flex: none !important;
}
body.catalog-product-view .page-main .container.flex {
    margin-bottom: 1rem !important;
    padding: 8px 12px 0 !important;
}

/* Agritrend custom options — legacy 'option-card' look + responsive grid */

/* Section header — navy gradient bar + label + clear + tooltip */
.agt-opt-wrapper { width: 100%; margin-bottom: 18px; }
.agt-opt-section {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    position: relative;
    padding-left: 12px;
}
.agt-opt-section::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 4px; height: 22px;
    background: linear-gradient(180deg, #1F2E44 0%, #2B3F5C 100%);
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(31, 46, 68, 0.2);
}
.agt-opt-section-bar { display: none; }
.agt-opt-section-label {
    font-size: 16px;
    font-weight: 700;
    color: #1F2E44;
    letter-spacing: -0.01em;
}
.agt-opt-required {
    color: #ef4444;
    font-size: 18px;
    font-weight: 600;
}
.agt-opt-clear {
    font-size: 13px;
    font-weight: 500;
    color: #94a3b8;
    cursor: pointer;
    text-decoration: none;
    background: none;
    border: 0;
    padding: 0;
}
.agt-opt-clear:hover { color: #1F2E44; text-decoration: underline; }
.agt-opt-help {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: #1F2E44;
    font-size: 15px;
    cursor: help;
}
.agt-opt-help .agt-opt-tip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #1F2E44;
    color: #fff;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 12px;
    width: max-content;
    max-width: 280px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s;
    z-index: 50;
    box-shadow: 0 8px 20px -8px rgba(0,0,0,0.3);
    white-space: normal;
}
.agt-opt-help:hover .agt-opt-tip,
.agt-opt-help:focus .agt-opt-tip,
.agt-opt-help:focus-within .agt-opt-tip { opacity: 1; }

/* Card grid — responsive auto-fit; content-sized cards via flex children
   Use grid with min(180px, 100%) so on tiny screens cards still flow
   into multiple per row when title is short. */
.agt-opt-wrapper .agt-opt-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)) !important;
    gap: 10px !important;
    align-items: stretch !important;
    width: 100% !important;
}
@media (max-width: 640px) {
    .agt-opt-wrapper .agt-opt-grid {
        grid-template-columns: 1fr !important;
    }
}
.agt-opt-card {
    position: relative;
    cursor: pointer;
    user-select: none;
    margin: 0;
    display: block;
}

/* Hide the native input — beat .panth-custom-options input[type=...] specificity */
.panth-custom-options .agt-opt-card .agt-opt-input,
.panth-custom-options .agt-opt-card .agt-opt-card-input,
.agt-opt-card .agt-opt-input,
.agt-opt-card .agt-opt-card-input,
input.agt-opt-input,
input.agt-opt-card-input {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

/* Card body — single row by default, wraps title + price to 2 lines only if too long */
.agt-opt-card-inner {
    position: relative;
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    column-gap: 12px;
    row-gap: 2px;
    padding: 8px 36px 8px 36px;
    background: #ffffff;
    border: 2px solid #cbd5e0;
    border-radius: 6px;
    min-height: 42px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: border-color 0.2s ease, background 0.2s ease;
    height: 100%;
}
/* Radio circle on the left (default for .agt-opt-input radio) */
.agt-opt-card-inner::before {
    content: '';
    position: absolute;
    left: 12px; top: 50%;
    transform: translateY(-50%);
    width: 18px; height: 18px;
    border: 2px solid #94a3b8;
    border-radius: 50%;
    background: #ffffff;
    transition: all 0.25s ease;
    box-sizing: border-box;
}
/* Square checkbox icon for checkbox cards */
.agt-opt-card:has(input[type="checkbox"]) .agt-opt-card-inner::before { border-radius: 3px; }
@media (hover: hover) {
    .agt-opt-card:hover .agt-opt-card-inner {
        border-color: #1F2E44;
        box-shadow: 0 4px 12px rgba(31, 46, 68, 0.12);
    }
    .agt-opt-card:hover .agt-opt-card-inner::before { border-color: #1F2E44; }
}
.agt-opt-card-title {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.3;
    flex: 1 1 auto;
    min-width: 0;
    word-break: break-word;
}
.agt-opt-card-price {
    font-size: 14px;
    font-weight: 700;
    color: #64748b;
    white-space: nowrap;
    padding-right: 24px;
}
.agt-opt-card-price--muted,
.agt-opt-card-price--free { color: #94a3b8; font-style: italic; }
.agt-opt-card-check { display: none; }

/* Selected — navy gradient + white check badge */
.agt-opt-input:checked + .agt-opt-card-inner,
.agt-opt-card-input:checked + .agt-opt-card-inner {
    background: linear-gradient(135deg, #1F2E44 0%, #2B3F5C 100%);
    border-color: #1F2E44;
    box-shadow: 0 4px 12px rgba(31, 46, 68, 0.2);
}
/* Filled radio dot */
.agt-opt-input:checked + .agt-opt-card-inner::before {
    border-color: #ffffff;
    background: #ffffff;
    box-shadow: inset 0 0 0 4px #1F2E44;
}
/* Filled checkbox tick */
.agt-opt-card-input:checked + .agt-opt-card-inner::before {
    background: #1F2E44;
    border-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11.6666 3.5L5.24992 9.91667L2.33325 7' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px;
}
/* Right-side badge */
.agt-opt-input:checked + .agt-opt-card-inner::after,
.agt-opt-card-input:checked + .agt-opt-card-inner::after {
    content: '\2713';
    position: absolute;
    right: 8px; top: 50%;
    transform: translateY(-50%);
    width: 20px; height: 20px;
    background: #ffffff;
    color: #1F2E44;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}
.agt-opt-input:checked + .agt-opt-card-inner .agt-opt-card-title,
.agt-opt-card-input:checked + .agt-opt-card-inner .agt-opt-card-title { color: #ffffff; font-weight: 700; }
.agt-opt-input:checked + .agt-opt-card-inner .agt-opt-card-price,
.agt-opt-card-input:checked + .agt-opt-card-inner .agt-opt-card-price { color: #ffffff; font-weight: 800; }
.agt-opt-input:focus-visible + .agt-opt-card-inner,
.agt-opt-card-input:focus-visible + .agt-opt-card-inner {
    outline: 2px solid #2B3F5C;
    outline-offset: 2px;
}

/* ==========================================================================
   Agritrend Spare Parts (Panth_SpecialProduct) - product page grid
   ========================================================================== */
.agt-sp-section {
    padding: clamp(48px, 6vw, 80px) 0;
    background: #FFFFFF;
}
.agt-sp-wrap { width: 100%; margin: 0; padding: 0; }

.agt-sp-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 32px;
}
.agt-sp-header-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}
.agt-sp-heading {
    text-align: left;
    font-size: clamp(1.6rem, 2.4vw, 2.2rem);
    font-weight: 800;
    color: #1F2E44;
    margin: 0;
    line-height: 1.2;
    position: relative;
    padding-bottom: 12px;
}
.agt-sp-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    display: block;
    width: 64px;
    height: 3px;
    background: linear-gradient(90deg, #1F2E44 0%, #2B3F5C 60%, rgba(43, 63, 92, 0) 100%);
    border-radius: 2px;
}
.agt-sp-viewall {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #1F2E44;
    color: #FFFFFF;
    padding: 8px 14px;
    height: 36px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background .25s ease, transform .25s ease;
}
.agt-sp-viewall:hover {
    background: #2B3F5C;
    color: #FFFFFF;
    text-decoration: none;
    transform: translateY(-1px);
}
.agt-sp-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}
.agt-sp-search {
    position: relative;
    width: 100%;
}
.agt-sp-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #5A6675;
    pointer-events: none;
    font-size: 0.95rem;
}
.agt-sp-search-input {
    width: 100%;
    padding: 11px 16px 11px 40px;
    border: 1.5px solid #1F2E44;
    border-radius: 8px;
    background: #FFFFFF;
    color: #1F2E44;
    font-size: 0.88rem;
    outline: none;
    transition: box-shadow .2s ease, border-color .2s ease;
}
.agt-sp-search-input::placeholder { color: #5A6675; }
.agt-sp-search-input:focus {
    border-color: #2B3F5C;
    box-shadow: 0 0 0 3px rgba(31, 46, 68, 0.12);
}
@media (min-width: 768px) {
    .agt-sp-search { width: 320px; max-width: 320px; }
}

/* Slider */
.agt-sp-nav { display: flex; gap: 8px; flex-shrink: 0; margin-left: 12px; }
.agt-sp-arrow {
    width: 36px; height: 36px; border-radius: 8px;
    background: #FFFFFF; color: #1F2E44; border: 1px solid #E5EAF2;
    cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
    transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.agt-sp-arrow:hover { background: #1F2E44; color: #FFFFFF; border-color: #1F2E44; }
.agt-sp-arrow i { font-size: 16px; line-height: 1; }
@media (max-width: 640px) {
    .agt-sp-header-right { flex-wrap: wrap; }
    .agt-sp-nav { margin-left: 0; }
}

.agt-sp-viewport { position: relative; margin: 0 -6px; padding: 0 6px; overflow: visible; }
.agt-sp-track {
    display: grid;
    grid-auto-flow: column;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    grid-auto-columns: calc((100% - 5 * 14px) / 6);
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding: 14px 2px 14px;
}
.agt-sp-track::-webkit-scrollbar { display: none; }
@media (max-width: 1199px) { .agt-sp-track { grid-auto-columns: calc((100% - 3 * 14px) / 4); } }
@media (max-width: 991px)  { .agt-sp-track { grid-auto-columns: calc((100% - 2 * 14px) / 3); } }
@media (max-width: 639px)  { .agt-sp-track { grid-auto-columns: calc((100% - 1 * 14px) / 2); } }

.agt-sp-card { scroll-snap-align: start; }
.agt-sp-card.is-hidden { display: none !important; }

.agt-sp-dots { display: flex; gap: 8px; justify-content: center; margin-top: 18px; }
.agt-sp-dot { width: 8px; height: 8px; border-radius: 50%; background: #D7DEE8; border: 0; padding: 0; cursor: pointer; transition: background .2s, width .2s; }
.agt-sp-dot.is-active { background: #1F2E44; width: 22px; border-radius: 999px; }

.agt-sp-card {
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    border: 1px solid #E5EAF2;
    border-radius: 14px;
    overflow: hidden;
    color: inherit;
    transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}
.agt-sp-card:hover {
    transform: translateY(-3px);
    border-color: #1F2E44;
    box-shadow: 0 24px 40px -22px rgba(31, 46, 68, 0.32);
}
.agt-sp-card:hover .agt-sp-img { transform: scale(1.04); }

.agt-sp-image-wrap {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #F4F7FB;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}
.agt-sp-img-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
.agt-sp-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform .35s ease;
}
.agt-sp-img-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #94A3B8;
    font-size: 56px;
}
.agt-sp-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #1F2E44;
    color: #FFFFFF;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    z-index: 2;
    line-height: 1;
}

.agt-sp-body {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}
.agt-sp-sku {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #5A6675;
    font-weight: 600;
}
.agt-sp-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: #1F2E44;
    line-height: 1.3;
    margin: 0 0 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.1em;
}
.agt-sp-name a { color: inherit; text-decoration: none; }
.agt-sp-name a:hover { color: #2B3F5C; }

.agt-sp-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
}
.agt-sp-prices {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 6px;
    line-height: 1.1;
    flex-wrap: wrap;
}
.agt-sp-price {
    font-size: 0.95rem;
    font-weight: 800;
    color: #1F2E44;
}
.agt-sp-price-sale { color: #DC2626; }
.agt-sp-price-old {
    font-size: 0.7rem;
    font-weight: 600;
    color: #5A6675;
    text-decoration: line-through;
}

.agt-sp-actions {
    display: flex;
    gap: 4px;
}
.agt-sp-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #1F2E44;
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background .2s ease, transform .2s ease;
}
.agt-sp-action-btn:hover {
    background: #2B3F5C;
    color: #FFFFFF;
    text-decoration: none;
    transform: translateY(-1px);
}
.agt-sp-action-btn:focus-visible {
    outline: 2px solid #2B3F5C;
    outline-offset: 2px;
}

.agt-sp-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #E5EAF2;
}
.agt-sp-pagination-info {
    color: #5A6675;
    font-size: 0.88rem;
}
.agt-sp-pagination-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}
.agt-sp-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #E5EAF2;
    border-radius: 6px;
    color: #1F2E44;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    background: #FFFFFF;
    transition: all .2s ease;
}
.agt-sp-page:hover {
    border-color: #1F2E44;
    color: #1F2E44;
    text-decoration: none;
}
.agt-sp-page.is-active {
    background: #1F2E44;
    border-color: #1F2E44;
    color: #FFFFFF;
}
.agt-sp-page-next { gap: 6px; }

/* ============ Spare Parts Quick View Modal ============ */
[x-cloak] { display: none !important; }
.agt-sp-modal-overlay {
    position: fixed; inset: 0;
    background: rgba(15, 23, 42, 0.55);
    z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}
.agt-sp-modal {
    position: relative;
    background: #ffffff;
    border-radius: 10px;
    width: 100%;
    max-width: 920px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.agt-sp-modal-close {
    position: absolute;
    top: 14px; right: 14px;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: #F4F7FB;
    border: 1px solid #E5EAF2;
    color: #5A6675;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    z-index: 2;
}
.agt-sp-modal-close:hover { background: #E5EAF2; color: #1F2E44; }
.agt-sp-modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 28px;
}
@media (max-width: 768px) {
    .agt-sp-modal-body { grid-template-columns: 1fr; padding: 20px; }
}
.agt-sp-modal-image {
    border: 1px solid #E5EAF2;
    border-radius: 8px;
    background: #ffffff;
    aspect-ratio: 1 / 1;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.agt-sp-modal-image img { max-width: 100%; max-height: 100%; object-fit: contain; }
.agt-sp-modal-info { display: flex; flex-direction: column; gap: 14px; }
.agt-sp-modal-name {
    font-size: 24px;
    font-weight: 700;
    color: #1F2E44;
    margin: 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #E5EAF2;
}
.agt-sp-modal-code {
    background: #F4F7FB;
    border-left: 3px solid #1F2E44;
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 14px;
    color: #1F2E44;
}
.agt-sp-modal-code-label { font-weight: 600; margin-right: 6px; }
.agt-sp-modal-code code { font-family: ui-monospace, Menlo, Consolas, monospace; }
.agt-sp-modal-price {
    display: flex; align-items: baseline; gap: 10px;
}
.agt-sp-modal-price-now {
    font-size: 28px; font-weight: 800; color: #1F2E44;
}
.agt-sp-modal-stock {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 14px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    width: fit-content;
}
.agt-sp-modal-stock.is-in {
    background: #DCFCE7; color: #166534;
}
.agt-sp-modal-stock.is-out {
    background: #FEE2E2; color: #991B1B;
}
.agt-sp-modal-desc {
    background: #F4F7FB;
    border-left: 3px solid #2B3F5C;
    padding: 12px 14px;
    border-radius: 4px;
    font-size: 14px;
    color: #2B3F5C;
}
.agt-sp-modal-section { margin-top: 4px; }
.agt-sp-modal-section-title {
    font-size: 16px; font-weight: 700; color: #1F2E44;
    padding-bottom: 6px;
    border-bottom: 2px solid #1F2E44;
    display: inline-block;
    margin-bottom: 10px;
}
.agt-sp-modal-section-text { font-size: 14px; color: #5A6675; line-height: 1.5; margin: 0; }
.agt-sp-modal-qty-row {
    display: flex; align-items: center; gap: 10px; margin-top: 8px;
}
.agt-sp-modal-qty-label { font-weight: 600; color: #1F2E44; font-size: 14px; }
.agt-sp-modal-qty-stepper {
    display: inline-flex; align-items: center;
    border: 1px solid #E5EAF2; border-radius: 6px; overflow: hidden;
}
.agt-sp-modal-qty-stepper button {
    width: 36px; height: 40px;
    background: #F4F7FB; border: none; cursor: pointer;
    color: #1F2E44;
}
.agt-sp-modal-qty-stepper button:hover { background: #E5EAF2; }
.agt-sp-modal-qty-stepper input {
    width: 50px; height: 40px; border: none; text-align: center;
    font-weight: 600; color: #1F2E44; background: #ffffff;
    -moz-appearance: textfield;
}
.agt-sp-modal-qty-stepper input::-webkit-outer-spin-button,
.agt-sp-modal-qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.agt-sp-modal-add {
    flex: 1;
    background: linear-gradient(135deg, #1F2E44 0%, #2B3F5C 100%);
    color: #ffffff;
    border: none;
    height: 42px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.agt-sp-modal-add:hover { filter: brightness(1.1); }

/* ============ Homepage features section full-width ============ */
.cms-index-index .features-section {
    width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    padding-top: clamp(28px, 4vw, 48px) !important;
    padding-bottom: clamp(28px, 4vw, 48px) !important;
}
.cms-index-index .features-section .features-container {
    max-width: 1320px !important;
    margin: 0 auto !important;
    padding: 0 1.5rem !important;
}

/* Remove tailwind .page-main margin-block */
.page-main { margin-block: 0 !important; }

/* Compact, horizontally scrollable breadcrumbs on mobile */
@media (max-width: 768px) {
    .breadcrumbs { padding: .25rem 0 !important; margin: 0 !important; }
    .breadcrumbs > ol,
    .breadcrumbs ol.items,
    .breadcrumbs ul.items {
        display: flex !important;
        flex-wrap: nowrap !important;
        white-space: nowrap !important;
        overflow-x: auto !important;
        -ms-overflow-style: none;
        scrollbar-width: none;
        padding: 0 !important;
        margin: 0 !important;
    }
    .breadcrumbs > ol::-webkit-scrollbar,
    .breadcrumbs ol.items::-webkit-scrollbar,
    .breadcrumbs ul.items::-webkit-scrollbar { display: none; }
    .breadcrumbs li,
    .breadcrumbs .item { white-space: nowrap !important; flex-shrink: 0 !important; }
}

/* Footer already has CTA — hide page-level CTAs on About + policy pages */
.about-cta,
.agt-policy-cta { display: none !important; }

/* Remove tailwind .columns padding-inline on About + Policy CMS pages */
body.cms-about-us .columns,
body.cms-shipping-policy .columns,
body.cms-return-policy .columns,
body.cms-refund-policy .columns,
body.cms-privacy-policy .columns,
body.cms-terms-and-conditions .columns,
body.cms-cookie-policy .columns { padding-inline: 0 !important; }

/* Full-width hero backgrounds for About + Policy pages */
.about-hero,
.agt-policy-hero {
    width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    border-radius: 0 !important;
}

/* ============ Homepage banner slider full-width ============ */
.cms-index-index .panth-banner-slider {
    width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    margin-top: 0 !important;
}

/* ============ Homepage categories grid (no slider) ============ */
.agt-cat-section {
    padding: clamp(28px, 4vw, 48px) 0 !important;
    width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
}
.agt-cat-section > .agt-cat-wrap {
    max-width: 1320px !important;
    margin: 0 auto !important;
    padding: 0 1.5rem !important;
}
.agt-cat-header { padding: 0 0 1.25rem !important; margin-bottom: 0 !important; }
.agt-cat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}
@media (max-width: 767px) {
    .agt-cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}
.agt-cat-grid .agt-cat-card {
    display: block;
    background: #FFFFFF;
    border: 1px solid #E5EAF2;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
.agt-cat-grid .agt-cat-card:hover {
    transform: translateY(-3px);
    border-color: #1F2E44;
    box-shadow: 0 24px 40px -22px rgba(31,46,68,0.32);
}
.agt-cat-grid .agt-cat-img {
    aspect-ratio: 4 / 3;
    background: #F4F7FB;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.agt-cat-grid .agt-cat-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}
.agt-cat-grid .agt-cat-card:hover .agt-cat-img img { transform: scale(1.05); }
.agt-cat-grid .agt-cat-info { padding: 14px 16px 16px; text-align: center; }
.agt-cat-grid .agt-cat-info h3 {
    margin: 0 0 4px;
    font-size: 1rem;
    font-weight: 700;
    color: #1F2E44;
    line-height: 1.3;
}
.agt-cat-grid .agt-cat-cta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: #2B3F5C;
    font-weight: 600;
}

/* Homepage sections mobile padding/margin */
@media (max-width: 767px) {
    section.snap-slider {
        padding-left: 16px !important;
        padding-right: 16px !important;
        box-sizing: border-box !important;
    }
}
</content>
</invoke>