.shop-page,
.checkout-page,
.thanks-page {
    background: #f7f7f7;
    min-height: calc(100vh - 120px);
    padding: 32px 0 72px;
}

.shop-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
}

.shop-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    font-size: 14px;
}

.shop-breadcrumb a {
    color: #4f4f4f;
    text-decoration: none;
}

.shop-breadcrumb strong {
    color: #111;
}

.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.product-gallery-main {
    background: #ecebe5;
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.product-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-gallery-thumbs {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.gallery-thumb {
    border: 1px solid #e1e1e1;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    padding: 0;
    cursor: pointer;
}

.gallery-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.gallery-thumb.active {
    border-color: #2f5f58;
    box-shadow: 0 0 0 2px rgba(47, 95, 88, 0.12);
}

.product-info {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 18px;
    padding: 28px;
}

.discount-pill {
    display: inline-block;
    background: #bd3f35;
    color: #fff;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 700;
}

.product-info h1 {
    font-size: 50px;
    line-height: 1.1;
    margin: 14px 0 10px;
}

.product-rating {
display: none;
    color: #111;
    font-size: 20px;
    margin-bottom: 16px;
}

.product-rating span,
.product-rating small {
    color: #4f4f4f;
    margin-left: 6px;
}

.product-price-wrap {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.product-price-wrap .product-price {
    color: #c0392b;
    font-size: 43px;
    font-weight: 700;
}

.product-original-price {
    color: #777;
    text-decoration: line-through;
    font-size: 22px;
}

.product-save {
    color: #c0392b;
    font-size: 20px;
}

.tax-note,
.stock-note {
    margin: 8px 0;
    font-size: 17px;
    color: #444;
}

.stock-note {
    color: #18854a;
    font-weight: 600;
}

.product-action-row {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 14px;
    margin: 18px 0 12px;
}

.qty-box {
    display: flex;
    align-items: center;
    border: 1px solid #d7d7d7;
    border-radius: 999px;
    background: #fff;
    overflow: hidden;
}

.qty-btn {
    border: none;
    background: transparent;
    width: 38px;
    height: 38px;
    cursor: pointer;
    font-size: 22px;
    color: #2e2e2e;
}

.qty-box input {
    width: 44px;
    border: none;
    text-align: center;
    font-size: 18px;
    background: transparent;
}

.product-add-btn,
.checkout-submit,
.thanks-btn {
    border: none;
    background: #1f544b;
    color: #fff;
    border-radius: 999px;
    font-size: 18px;
    font-weight: 700;
    padding: 14px 20px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
}

.product-buy-now {
    width: 100%;
    border: 1px solid #1f544b;
    background: #fff;
    color: #1f544b;
    border-radius: 999px;
    font-size: 18px;
    font-weight: 700;
    padding: 14px 20px;
    cursor: pointer;
    margin-bottom: 16px;
}

.product-meta-list {
    margin: 14px 0;
    color: #444;
}

.product-benefits {
    border: 1px solid #ebebeb;
    border-radius: 14px;
    padding: 18px;
    background: #fafafa;
}

.product-benefits h3 {
    margin-bottom: 12px;
}

.product-benefits ul {
    margin: 0;
    padding-left: 20px;
}

.product-benefits li {
    margin-bottom: 10px;
}

.product-accordion {
    margin-top: 10px;
    border-bottom: 1px solid #e5e5e5;
    padding: 12px 0;
}

.product-accordion summary {
    cursor: pointer;
    font-weight: 700;
    font-size: 26px;
}

.product-accordion p {
    margin-top: 8px;
    color: #444;
}

.related-products {
    margin-top: 36px;
}

.related-products h2 {
    margin-bottom: 16px;
    font-size: 32px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.related-card {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 14px;
    overflow: hidden;
}

.related-card a {
    text-decoration: none;
    color: #111;
    display: block;
}

.related-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.related-card h3,
.related-card p {
    padding: 0 12px;
}

.related-card h3 {
    margin: 12px 0 4px;
    font-size: 17px;
}

.related-card p {
    margin: 0 0 12px;
    color: #1f544b;
    font-weight: 700;
}

.product-sticky-bar {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 18px;
    width: min(1120px, calc(100% - 24px));
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border: 1px solid #e8e8e8;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px;
    z-index: 1100;
}

.sticky-product {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sticky-product img {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    object-fit: cover;
}

.sticky-product p {
    margin: 0;
    color: #c0392b;
    font-weight: 700;
}

.sticky-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-box.compact .qty-btn {
    width: 34px;
    height: 34px;
}

.qty-box.compact input {
    width: 34px;
    font-size: 16px;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 24px;
}

.checkout-form-wrap,
.checkout-summary,
.thanks-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 18px;
    padding: 24px;
}

.checkout-form-wrap h1 {
    margin-bottom: 6px;
}

.checkout-form {
    margin-top: 16px;
}

.form-row-2,
.form-row-3 {
    display: grid;
    gap: 12px;
}

.form-row-2 {
    grid-template-columns: 1fr 1fr;
}

.form-row-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.checkout-form .form-group {
    margin-bottom: 12px;
}

.checkout-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.checkout-form input,
.checkout-form textarea {
    width: 100%;
    border: 1px solid #d8d8d8;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 15px;
}

.checkout-submit {
    width: 100%;
    margin-top: 4px;
}

.checkout-message {
    margin-top: 10px;
    color: #c0392b;
    min-height: 20px;
}

.checkout-items {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
}

.checkout-item {
    display: grid;
    grid-template-columns: 52px 1fr auto;
    gap: 10px;
    align-items: center;
    border: 1px solid #ececec;
    border-radius: 10px;
    padding: 8px;
}

.checkout-item img {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    object-fit: cover;
}

.checkout-item h4 {
    margin: 0 0 4px;
    font-size: 14px;
}

.checkout-item p {
    margin: 0;
    font-size: 13px;
    color: #555;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.summary-row.total {
    border-top: 1px solid #e8e8e8;
    padding-top: 12px;
    margin-top: 12px;
    font-size: 18px;
}

.thanks-page {
    padding-top: 28px;
}

.thanks-card {
    max-width: 860px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.thanks-items {
    margin: 18px 0;
    display: grid;
    gap: 10px;
}

.thanks-item {
    display: grid;
    grid-template-columns: 54px 1fr auto;
    align-items: center;
    gap: 12px;
    border: 1px solid #ebebeb;
    border-radius: 12px;
    padding: 10px;
}

.thanks-item img {
    width: 54px;
    height: 54px;
    object-fit: cover;
    border-radius: 8px;
}

.thanks-item h3,
.thanks-item p {
    margin: 0;
}

.thanks-total {
    margin-bottom: 18px;
}

.products-listing-page {
    padding-top: 22px;
}

.listing-layout {
    display: grid;
    grid-template-columns: 290px 1fr;
    gap: 24px;
}

.listing-filters,
.listing-content {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 18px;
    padding: 20px;
}

.listing-filters h2 {
    margin: 0 0 16px;
    font-size: 22px;
}

.listing-filter-group {
    padding: 14px 0;
    border-top: 1px solid #ececec;
}

.listing-filter-group:first-of-type {
    border-top: none;
    padding-top: 0;
}

.listing-filter-group h3 {
    font-size: 16px;
    margin: 0 0 10px;
}

.listing-category-list {
    display: grid;
    gap: 8px;
}

.listing-category-btn {
    border: 1px solid #dbdbdb;
    background: #fff;
    border-radius: 999px;
    padding: 8px 14px;
    text-align: left;
    cursor: pointer;
    font-weight: 500;
    color: #222;
}

.listing-category-btn.active {
    background: #1f544b;
    color: #fff;
    border-color: #1f544b;
}

.listing-price-values {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.listing-price-values span,
.listing-price-values strong {
    font-size: 14px;
}

#listingPriceRange {
    width: 100%;
    accent-color: #1f544b;
}

.listing-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.listing-clear-btn {
    width: 100%;
    margin-top: 12px;
    border: 1px solid #d9d9d9;
    background: #fff;
    border-radius: 999px;
    padding: 10px 14px;
    cursor: pointer;
    font-weight: 600;
}

.listing-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 16px;
    margin-bottom: 18px;
}

.listing-toolbar h1 {
    margin: 0;
    font-size: 32px;
}

.listing-toolbar p {
    margin: 6px 0 0;
    color: #616161;
}

.listing-sort {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.listing-sort select {
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    padding: 8px 10px;
}

.listing-products-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.products-listing-page .product-card {
    flex: initial;
    min-width: 0;
}

.listing-empty {
    margin-top: 20px;
    padding: 16px;
    border: 1px dashed #d3d3d3;
    border-radius: 12px;
    text-align: center;
    color: #666;
}

@media (max-width: 1024px) {
    .product-layout,
    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .listing-layout {
        grid-template-columns: 1fr;
    }

    .listing-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .shop-page,
    .checkout-page,
    .thanks-page {
        padding: 20px 0 120px;
    }

    .shop-container {
        padding: 0 14px;
    }

    .listing-products-grid {
        grid-template-columns: 1fr;
    }

    .listing-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .product-info h1 {
        font-size: 34px;
    }

    .product-price-wrap .product-price {
        font-size: 30px;
    }

    .product-accordion summary {
        font-size: 22px;
    }

    .product-action-row {
        grid-template-columns: 1fr;
    }

    .form-row-2,
    .form-row-3 {
        grid-template-columns: 1fr;
    }

    .product-sticky-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .sticky-actions {
        justify-content: space-between;
    }
}
