/* Shared photo navigation; no physical left/right assumptions. */
.hj-storefront-catalog .category-page-row > .col.large-3,
.hj-storefront-catalog .category-filtering { display: none !important; }
.hj-storefront-catalog .category-page-row > .col.large-9 {
    flex-basis: 100%;
    max-inline-size: 100%;
}
.hj-type-directory,
.hj-quantity-destinations {
    margin-block: 0 32px;
}
.hj-type-directory h2,
.hj-quantity-destinations h2,
.hj-catalog-title {
    color: #36232c;
    font-family: inherit;
    font-size: clamp(20px, 2.2vw, 28px);
    font-weight: 750;
    line-height: 1.5;
    margin-block: 0 18px;
}
.hj-category-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
}
.hj-category-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-inline-size: 0;
    color: #36232c;
    text-decoration: none;
}
.hj-category-card img {
    display: block;
    inline-size: 100%;
    block-size: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: #faf7f8;
    border-radius: 6px;
}
.hj-category-card__title { font-size: 17px; font-weight: 750; }
.hj-category-card__action { color: #a83258; font-size: 14px; font-weight: 650; }
.hj-quantity-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.hj-quantity-link {
    padding: 20px 12px;
    min-block-size: 48px;
    text-align: center;
    color: #7c2544;
    border: 1px solid #e7c5d1;
    background: #fff3f7;
    border-radius: 6px;
    font-weight: 750;
}
.hj-child-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-block: 0 24px;
}
.hj-child-categories a {
    display: inline-flex;
    align-items: center;
    min-block-size: 44px;
    padding: 8px 16px;
    color: #8b294b;
    background: #fff5f8;
    border: 1px solid #ead1da;
    border-radius: 6px;
}
.hj-category-card:focus-visible,
.hj-quantity-link:focus-visible,
.hj-child-categories a:focus-visible,
.hj-storefront-catalog .products :is(a, button, input):focus-visible {
    outline: 3px solid #8b294b;
    outline-offset: 3px;
}

/* Preserve Flatsome's native image/box hooks while ordering one card form. */
.hj-storefront-catalog .products.row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px 16px;
    margin-inline: 0;
}
.hj-storefront-catalog .products.row > .product-small.col {
    inline-size: 100%;
    max-inline-size: 100%;
    min-inline-size: 0;
    padding: 0;
    margin: 0;
}
.hj-storefront-catalog .products .product-small.box {
    display: block;
    background: #fff;
}
.hj-storefront-catalog .products .box-image,
.hj-storefront-catalog .products .box-image > div:first-child {
    aspect-ratio: 1 / 1;
    inline-size: 100%;
    overflow: hidden;
    border-radius: 6px;
    background: #faf7f8;
}
.hj-storefront-catalog .products .box-image a {
    display: block;
    block-size: 100%;
}
.hj-storefront-catalog .products .box-image img {
    inline-size: 100%;
    block-size: 100% !important;
    aspect-ratio: 1 / 1;
    object-fit: contain !important;
}
.hj-storefront-catalog .products .box-text {
    padding: 10px 0 0;
    text-align: start;
}
.hj-storefront-catalog .hj-product-title {
    font-size: 15px;
    font-weight: 750;
    line-height: 1.6;
    margin: 0 0 3px;
    letter-spacing: normal;
    text-transform: none;
}
.hj-storefront-catalog .hj-product-color {
    font-size: 12px;
    color: #67545d;
    margin: 0 0 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hj-storefront-catalog .products .price {
    display: block;
    margin: 0 0 5px;
    font-size: 18px;
    line-height: 1.6;
}
.hj-storefront-catalog .hj-product-unit { margin: 0 0 8px; }
.hj-storefront-catalog .hj-unit-badge {
    display: inline-block;
    border-radius: 4px;
    padding: 3px 7px;
    background: #fff0f5;
    color: #8b294b;
    font-size: 11px;
    line-height: 1.5;
}
.hj-storefront-catalog .hijabjumla-quick-add-form { margin: 0; }
.hj-storefront-catalog .hj-quantity-label {
    display: block;
    margin-block-end: 4px;
    font-size: 11px;
    font-weight: 650;
    color: #67545d;
}
.hj-storefront-catalog .hj-card-quantity {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    inline-size: 100%;
    min-block-size: 44px;
    border: 1px solid #dbc5ce;
    border-radius: 5px;
    overflow: hidden;
}
.hj-storefront-catalog .hj-card-quantity .hj-quantity-step,
.hj-storefront-catalog .hj-card-quantity input.qty {
    inline-size: 100%;
    min-inline-size: 0;
    max-inline-size: none;
    block-size: 44px;
    margin: 0;
    border: 0;
    box-shadow: none;
    padding: 0;
    background: #fff;
    color: #36232c;
    font: inherit;
    font-size: 16px;
    text-align: center;
}
.hj-storefront-catalog .hj-card-quantity input.qty { appearance: textfield; }
.hj-storefront-catalog .hj-card-quantity input.qty::-webkit-inner-spin-button { appearance: none; }
.hj-storefront-catalog .hijabjumla-quick-add-form .hijabjumla-quick-add-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    inline-size: 100%;
    min-block-size: 44px;
    margin: 8px 0 0;
    border: 1px solid #a83258;
    border-radius: 5px;
    padding: 9px 8px;
    color: #fff;
    background: #a83258;
    font: inherit;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.5;
    letter-spacing: normal;
    text-transform: none;
}
.hj-storefront-catalog .hijabjumla-quick-add-btn svg { flex: 0 0 20px; }
.hj-storefront-catalog .hijabjumla-quick-add-btn:disabled { opacity: .65; cursor: wait; }
.hj-storefront-catalog .hijabjumla-quick-add-msg {
    display: block;
    font-size: 12px;
    line-height: 1.6;
    color: #38643d;
    margin-block-start: 5px;
}
@media (max-width: 900px) {
    .hj-category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hj-storefront-catalog .products.row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .hj-category-grid,
    .hj-storefront-catalog .products.row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
    .hj-category-card__title { font-size: 15px; }
    .hj-storefront-catalog .hj-product-title { font-size: 14px; }
    .hj-storefront-catalog .products .price { font-size: 16px; }
}
@media (max-width: 340px) {
    .hj-category-grid,
    .hj-quantity-links,
    .hj-storefront-catalog .products.row { grid-template-columns: minmax(0, 1fr); }
}
