/* ==========================================
   MARUWATA SHOP PAGE
   PROFESSIONAL RESPONSIVE CSS
========================================== */


/* ==========================================
   GLOBAL SHOP RESET
========================================== */

.shop,
.shop * {
    box-sizing: border-box;
}


/* ==========================================
   SHOP SECTION
========================================== */

.shop {
    width: 100%;
    padding: 60px 20px;
    background: #f5f6fa;
    overflow-x: hidden;
}


/* ==========================================
   SHOP CONTAINER
========================================== */

.shop .container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0;
}


/* ==========================================
   SECTION TITLE
========================================== */

.shop .section-title {
    width: 100%;
    margin: 0 0 10px;
    padding: 0;

    text-align: center;

    font-size: 38px;
    line-height: 1.2;
    font-weight: 700;

    color: #222;
}


/* ==========================================
   SECTION DESCRIPTION
========================================== */

.shop .section-desc {
    width: 100%;
    margin: 0 0 40px;
    padding: 0;

    text-align: center;

    font-size: 17px;
    line-height: 1.6;

    color: #777;
}


/* ==========================================
   PRODUCT GRID
========================================== */

.shop .product-grid {
    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 30px;

    align-items: stretch;
}


/* ==========================================
   PRODUCT CARD
========================================== */

.shop .product-card {
    width: 100%;
    min-width: 0;
    max-width: 100%;

    display: flex;
    flex-direction: column;

    position: relative;

    background: #fff;

    border-radius: 20px;

    overflow: hidden;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.08);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


/* ==========================================
   CARD HOVER
========================================== */

.shop .product-card:hover {
    transform: translateY(-8px);

    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.15);
}


/* ==========================================
   PRODUCT IMAGE CONTAINER
========================================== */

.shop .product-img {
    width: 100%;
    max-width: 100%;

    height: auto;

    aspect-ratio: 1 / 1;

    position: relative;

    overflow: hidden;

    background: #f1f1f1;

    flex-shrink: 0;
}


/* ==========================================
   PRODUCT IMAGE
========================================== */

.shop .product-img img {
    display: block;

    width: 100% !important;
    height: 100% !important;

    max-width: none !important;

    margin: 0;
    padding: 0;

    object-fit: cover;

    object-position: center;

    border: 0;

    transition:
        transform 0.4s ease;
}


/* ==========================================
   IMAGE HOVER
========================================== */

.shop .product-card:hover .product-img img {
    transform: scale(1.05);
}


/* ==========================================
   PRODUCT INFORMATION
========================================== */

.shop .product-info {
    width: 100%;
    max-width: 100%;

    padding: 20px;

    display: flex;
    flex-direction: column;

    align-items: center;

    text-align: center;

    flex: 1;
}


/* ==========================================
   COMPANY
========================================== */

.shop .company {
    width: 100%;

    margin: 0;

    color: #2d74c4;

    font-size: 14px;
    line-height: 1.4;

    font-weight: 600;

    text-align: center;

    overflow-wrap: anywhere;
}


/* ==========================================
   PRODUCT NAME
========================================== */

.shop .product-name {
    width: 100%;

    margin: 10px 0;

    padding: 0;

    color: #222;

    font-size: 19px;
    line-height: 1.4;

    font-weight: 600;

    text-align: center;

    overflow-wrap: anywhere;
}


/* ==========================================
   SKU
========================================== */

.shop .sku {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: fit-content;
    max-width: 100%;

    margin: 0 auto 13px;

    padding: 5px 10px;

    color: #888;

    background: #f7f7f7;

    border: 1px solid #eeeeee;

    border-radius: 20px;

    font-size: 11px;
    line-height: 1.2;

    font-weight: 500;

    text-align: center;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


/* ==========================================
   PRICE AREA
========================================== */

.shop .price {
    width: 100%;

    margin: 15px 0;

    display: flex;

    align-items: baseline;
    justify-content: center;

    flex-wrap: wrap;

    gap: 8px;

    text-align: center;
}


/* ==========================================
   OLD PRICE
========================================== */

.shop .old-price {
    margin: 0;

    color: #999;

    font-size: 13px;

    font-weight: 500;

    text-decoration: line-through;

    white-space: nowrap;
}


/* ==========================================
   NEW PRICE
========================================== */

.shop .new-price {
    margin: 0;

    color: #0b8f3c;

    font-size: 20px;

    font-weight: 700;

    letter-spacing: -0.2px;

    white-space: nowrap;
}


/* ==========================================
   PRODUCT ACTIONS
========================================== */

.shop .product-actions {
    width: 100%;

    margin-top: auto;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;
}


/* ==========================================
   WISHLIST BUTTON
========================================== */

.shop .wishlist-shop-btn {
    flex: 0 0 42px;

    width: 42px;
    height: 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 0;

    background: #f5f5f5;

    border: 0;

    border-radius: 10px;

    color: #333;

    text-decoration: none;

    font-size: 20px;

    line-height: 1;

    cursor: pointer;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}


/* ==========================================
   WISHLIST HOVER
========================================== */

.shop .wishlist-shop-btn:hover {
    background: #a4a9b4;

    color: #fff;

    transform: translateY(-1px);
}


/* ==========================================
   BUY BUTTON
========================================== */

.shop .btn-buy {
    flex: 1 1 auto;

    min-width: 0;

    min-height: 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 12px 15px;

    background: #1e4f8a;

    color: #fff;

    text-decoration: none;

    border: 0;

    border-radius: 10px;

    font-size: 15px;

    font-weight: 600;

    line-height: 1.2;

    text-align: center;

    cursor: pointer;

    transition:
        background 0.3s ease,
        transform 0.3s ease;
}


/* ==========================================
   BUY HOVER
========================================== */

.shop .btn-buy:hover {
    background: #07a54e;

    color: #fff;

    transform: translateY(-1px);
}


/* ==========================================
   CART BUTTON
========================================== */

.shop .btn-cart {
    flex: 1 1 auto;

    min-width: 0;

    min-height: 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 12px 15px;

    background:
        linear-gradient(
            135deg,
            #f53333,
            #f89a1c
        );

    color: #fff;

    text-decoration: none;

    border: 0;

    border-radius: 10px;

    font-size: 15px;

    font-weight: 600;

    line-height: 1.2;

    text-align: center;

    cursor: pointer;

    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}


/* ==========================================
   CART HOVER
========================================== */

.shop .btn-cart:hover {
    opacity: 0.9;

    transform: translateY(-1px);

    color: #fff;
}


/* ==========================================
   PAGINATION
========================================== */

.shop .pagination {
    width: 100%;

    margin: 50px 0 20px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-wrap: wrap;

    gap: 5px;

    text-align: center;
}


/* ==========================================
   PAGINATION LINKS
========================================== */

.shop .pagination a {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 44px;

    min-height: 42px;

    margin: 0;

    padding: 10px 18px;

    background: #1e4f8a;

    color: #fff;

    text-decoration: none;

    border-radius: 10px;

    font-size: 14px;

    font-weight: 600;

    transition:
        background 0.3s ease,
        transform 0.3s ease;
}


/* ==========================================
   PAGINATION HOVER
========================================== */

.shop .pagination a:hover {
    background: #f53333;

    color: #fff;

    transform: translateY(-1px);
}


/* ==========================================
   LARGE DESKTOP
   1400px+
========================================== */

@media (min-width: 1400px) {

    .shop {
        padding-left: 30px;
        padding-right: 30px;
    }

    .shop .product-grid {
        grid-template-columns:
            repeat(4, minmax(0, 1fr));

        gap: 30px;
    }

}


/* ==========================================
   DESKTOP
   1101px - 1399px
========================================== */

@media (max-width: 1399px) {

    .shop .product-grid {
        grid-template-columns:
            repeat(4, minmax(0, 1fr));

        gap: 25px;
    }

}


/* ==========================================
   LAPTOP
   769px - 1100px
========================================== */

@media (max-width: 1100px) {

    .shop {
        padding: 50px 20px;
    }

    .shop .product-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 25px;
    }

    .shop .product-info {
        padding: 18px;
    }

    .shop .product-name {
        font-size: 18px;
    }

}


/* ==========================================
   TABLET
   501px - 768px
========================================== */

@media (max-width: 768px) {

    .shop {
        padding: 45px 15px;
    }


    .shop .section-title {
        font-size: 32px;
    }


    .shop .section-desc {
        font-size: 16px;

        margin-bottom: 30px;
    }


    .shop .product-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 20px;
    }


    .shop .product-img {
        width: 100%;

        aspect-ratio: 1 / 1;
    }


    .shop .product-img img {
        width: 100% !important;

        height: 100% !important;

        object-fit: cover;
    }


    .shop .product-info {
        padding: 16px;
    }


    .shop .company {
        font-size: 13px;
    }


    .shop .product-name {
        font-size: 17px;

        line-height: 1.35;
    }


    .shop .sku {
        margin-left: auto;
        margin-right: auto;

        font-size: 11px;

        padding: 5px 10px;
    }


    .shop .price {
        justify-content: center;

        margin: 13px 0;

        gap: 6px;
    }


    .shop .old-price {
        font-size: 12px;
    }


    .shop .new-price {
        font-size: 18px;
    }


    .shop .product-actions {
        gap: 8px;
    }


    .shop .wishlist-shop-btn {
        flex: 0 0 40px;

        width: 40px;
        height: 40px;
    }


    .shop .btn-buy,
    .shop .btn-cart {
        min-height: 40px;

        padding: 11px 10px;

        font-size: 14px;
    }

}


/* ==========================================
   MOBILE
   0px - 500px
========================================== */

@media (max-width: 500px) {

    .shop {
        padding: 35px 12px;
    }


    .shop .section-title {
        font-size: 28px;

        line-height: 1.25;
    }


    .shop .section-desc {
        font-size: 15px;

        margin-bottom: 25px;
    }


    /* ONE PRODUCT PER ROW */

    .shop .product-grid {
        grid-template-columns: 1fr;

        gap: 20px;
    }


    .shop .product-card {
        width: 100%;

        max-width: 100%;
    }


    /* FULL WIDTH IMAGE */

    .shop .product-img {
        width: 100%;

        aspect-ratio: 1 / 1;
    }


    .shop .product-img img {
        display: block;

        width: 100% !important;

        height: 100% !important;

        max-width: none !important;

        object-fit: cover;
    }


    .shop .product-info {
        width: 100%;

        padding: 18px;
    }


    .shop .company {
        font-size: 14px;
    }


    .shop .product-name {
        font-size: 18px;

        line-height: 1.35;
    }


    .shop .sku {
        margin-left: auto;
        margin-right: auto;

        margin-bottom: 12px;

        padding: 5px 10px;

        font-size: 11px;
    }


    .shop .price {
        justify-content: center;

        margin: 14px 0;

        gap: 7px;
    }


    .shop .old-price {
        font-size: 12px;
    }


    .shop .new-price {
        font-size: 19px;
    }


    .shop .product-actions {
        width: 100%;

        gap: 8px;
    }


    .shop .wishlist-shop-btn {
        flex: 0 0 42px;

        width: 42px;
        height: 42px;
    }


    .shop .btn-buy,
    .shop .btn-cart {
        min-height: 42px;

        padding: 11px 10px;

        font-size: 14px;
    }

}


/* ==========================================
   VERY SMALL MOBILE
   360px AND BELOW
========================================== */

@media (max-width: 360px) {

    .shop {
        padding-left: 10px;
        padding-right: 10px;
    }


    .shop .product-grid {
        gap: 15px;
    }


    .shop .product-info {
        padding: 15px;
    }


    .shop .product-actions {
        gap: 7px;
    }


    .shop .wishlist-shop-btn {
        flex: 0 0 38px;

        width: 38px;
        height: 38px;

        font-size: 18px;
    }


    .shop .btn-buy,
    .shop .btn-cart {
        min-height: 38px;

        padding: 10px 8px;

        font-size: 13px;
    }


    .shop .sku {
        font-size: 11px;

        padding: 5px 9px;
    }


    .shop .new-price {
        font-size: 18px;
    }

}


/* ==========================================
   SAFETY: PREVENT HORIZONTAL OVERFLOW
========================================== */

.shop .product-card,
.shop .product-img,
.shop .product-img img,
.shop .product-info,
.shop .product-actions,
.shop .btn-buy,
.shop .btn-cart {
    max-width: 100%;
}


/* ==========================================
   SAFETY: LINKS / BUTTONS
========================================== */

.shop a,
.shop button {
    box-sizing: border-box;
}


/* ==========================================
   DISABLED CART BUTTON
========================================== */

.shop .btn-cart:disabled,
.shop .btn-cart.disabled {
    opacity: 0.55;

    cursor: not-allowed;

    transform: none;
}


/* ==========================================
   SOLD OUT
========================================== */

.shop .sold-out {
    color: #d32f2f;

    font-weight: 700;

    text-align: center;
}







/* ==========================================
   MARUWATA PRICE - FINAL FIX
========================================== */

.shop .price {
    width: 100% !important;

    margin: 15px 0 !important;
    padding: 0 !important;

    display: flex !important;

    flex-direction: row !important;

    align-items: center !important;
    justify-content: center !important;

    text-align: center !important;

    gap: 8px !important;

    float: none !important;

    position: static !important;
}


/* OLD PRICE */

.shop .price .old-price {
    display: inline-block !important;

    width: auto !important;

    margin: 0 !important;
    padding: 0 !important;

    color: #999 !important;

    font-size: 13px !important;

    font-weight: 500 !important;

    line-height: 1.2 !important;

    text-decoration: line-through !important;

    white-space: nowrap !important;

    float: none !important;
}


/* NEW PRICE */

.shop .price .new-price {
    display: inline-flex !important;

    align-items: baseline !important;
    justify-content: center !important;

    width: auto !important;

    margin: 0 !important;
    padding: 0 !important;

    color: #0b8f3c !important;

    font-size: 20px !important;

    font-weight: 700 !important;

    line-height: 1.2 !important;

    text-align: center !important;

    white-space: nowrap !important;

    float: none !important;
}


/* Rs. */

.shop .price .currency {
    display: inline-block !important;

    margin-right: 4px !important;

    color: #0b8f3c !important;

    font-size: 15px !important;

    font-weight: 700 !important;

    line-height: 1 !important;
}


/* MOBILE */

@media (max-width: 768px) {

    .shop .price {
        justify-content: center !important;
        align-items: center !important;
    }

    .shop .price .new-price {
        font-size: 18px !important;
    }

    .shop .price .currency {
        font-size: 14px !important;
    }

}


/* SMALL MOBILE */

@media (max-width: 500px) {

    .shop .price {
        width: 100% !important;

        justify-content: center !important;

        text-align: center !important;
    }

    .shop .price .new-price {
        font-size: 19px !important;
    }

    .shop .price .currency {
        font-size: 14px !important;
    }

}