/* =========================================================
   AU MOBILE - PRODUCT PAGE
========================================================= */

/* =========================================================
   GLOBAL
========================================================= */

  * {
    box-sizing: border-box;
}

.product-page {
    width: 100%;
    background: #fff;
}

/* =========================================================
   BREADCRUMB
========================================================= */

.product-breadcrumb {
    width: 100%;
    background: #f3f4f6;
    padding: 18px 8%;
}

.product-breadcrumb__container {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;

    font-size: 14px;
    color: #6b7280;
}

.product-breadcrumb__container a {
    color: #2563eb;
    text-decoration: none;
}

.product-breadcrumb__container a:hover {
    text-decoration: underline;
}

/* =========================================================
   PRODUCT DETAILS LAYOUT
========================================================= */

.product-details {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;

    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    gap: 60px;
    padding: 60px 8%;
}

/* =========================================================
   LEFT GALLERY
========================================================= */

.product-details__gallery {
    width: 100%;
    min-width: 0;
}

/* =========================================================
   MAIN IMAGE CONTAINER
========================================================= */

.product-details__main-image {
    width: 100%;
    height: 500px;

    background: #fff;

    border: 1px solid #e5e7eb;
    border-radius: 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 25px;

    overflow: hidden;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.06);
}

/* =========================================================
   MAIN IMAGE
========================================================= */

.product-details__main-image img {
    display: block;

    width: 100%;
    max-width: 100%;

    height: 450px;
    max-height: 450px;

    object-fit: contain;

    margin: 0 auto;

    transition:
        opacity 0.25s ease,
        transform 0.3s ease;
}

.product-details__main-image img:hover {
    transform: scale(1.02);
}

/* =========================================================
   THUMBNAILS CONTAINER
========================================================= */

.product-details__thumbnails {
    width: 100%;

    display: flex;
    align-items: center;

    gap: 10px;

    margin-top: 18px;

    flex-wrap: wrap;
}

/* =========================================================
   THUMBNAIL
========================================================= */

.product-details__thumbnail {
    display: block;

    width: 75px;
    height: 75px;

    max-width: 75px;
    max-height: 75px;

    padding: 5px;

    object-fit: contain;

    background: #fff;

    border: 2px solid #e5e7eb;
    border-radius: 10px;

    cursor: pointer;

    transition:
        border-color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.product-details__thumbnail:hover {
    border-color: #2563eb;
    transform: translateY(-2px);
}

.product-details__thumbnail--active {
    border-color: #2563eb;

    box-shadow:
        0 0 0 2px rgba(37, 99, 235, 0.12);
}

/* =========================================================
   RIGHT SIDE
========================================================= */

.product-details__content {
    width: 100%;
    min-width: 0;
}

/* =========================================================
   SALE
========================================================= */

.product-details__sale {
    display: inline-block;

    margin-bottom: 12px;

    padding: 6px 13px;

    background: #ef4444;
    color: #fff;

    border-radius: 20px;

    font-size: 12px;
    font-weight: 700;
}

/* =========================================================
   BRAND
========================================================= */

.product-details__brand {
    display: block;

    margin-bottom: 8px;

    color: #2563eb;

    font-size: 14px;
    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.5px;
}

/* =========================================================
   PRODUCT TITLE
========================================================= */

.product-details__title {
    margin: 0 0 18px;

    color: #111827;

    font-size: 38px;

    line-height: 1.3;

    font-weight: 700;
}

/* =========================================================
   PRICE
========================================================= */

.product-details__price {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 12px;

    margin-bottom: 18px;
}

.product-details__new-price {
    color: #2563eb;

    font-size: 34px;

    font-weight: 800;
}

.product-details__old-price {
    color: #888;

    font-size: 18px;

    text-decoration: line-through;
}

.product-details__discount {
    display: inline-block;

    padding: 5px 10px;

    background: #dcfce7;

    color: #16a34a;

    border-radius: 6px;

    font-size: 13px;

    font-weight: 700;
}

/* =========================================================
   AVAILABILITY
========================================================= */

.product-details__availability {
    margin: 0 0 25px;

    color: #16a34a;

    font-size: 15px;

    font-weight: 600;
}

/* =========================================================
   PRODUCT OPTION SECTION
========================================================= */

.product-option {
    width: 100%;

    margin-bottom: 28px;
}

.product-option__title {
    margin: 0 0 14px;

    color: #111827;

    font-size: 18px;

    font-weight: 700;
}

/* =========================================================
   STORAGE / VARIANT OPTIONS
========================================================= */

.product-variant-options {
    display: flex;

    align-items: center;

    gap: 12px;

    flex-wrap: wrap;

    width: 100%;
}

/* =========================================================
   VARIANT BUTTON
   NO IMAGE
   PILL STYLE
========================================================= */

.product-variant-option {
    position: relative;

    width: 120px;
    height: 38px;

    min-width: 120px;

    padding: 0 20px;

    margin: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #fff;

    border: none;

    border-radius: 22px;

    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.10);

    cursor: pointer;

    font-family: inherit;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.product-variant-option:hover {
    transform: translateY(-1px);

    box-shadow:
        0 7px 18px rgba(0, 0, 0, 0.13);
}

/* =========================================================
   VARIANT ACTIVE
========================================================= */

.product-variant-option--active {
    background: #1d4ed8;

    color: #fff;

    box-shadow:
        0 5px 15px rgba(75, 75, 145, 0.25);
}

/* =========================================================
   VARIANT NAME
========================================================= */

.product-variant-option__name {
    display: block;

    width: 100%;

    text-align: center;

    color: #374151;

    font-size: 14px;

    line-height: 1;

    font-weight: 700;

    white-space: nowrap;
}

/* =========================================================
   ACTIVE VARIANT TEXT
========================================================= */

.product-variant-option--active
.product-variant-option__name {
    color: #fff;
}

/* =========================================================
   REMOVE CHECK MARK
========================================================= */

.product-variant-option--active::after {
    content: none;
}
/* =========================================================
   product color option btn
========================================================= */
.product-color-options {
    display: flex;
    gap: 20px;
    margin-top: 8px;
}

.product-color-option {
    border-radius: 20%;
    border: 1px solid #ddd;
    cursor: pointer;
    padding: 10px;
}

.product-color-option--active {
    border-color:#2563eb;
  
}
/* =========================================================
   SHORT DESCRIPTION
========================================================= */

.product-details__short-info {
    margin-top: 25px;

    margin-bottom: 25px;

    color: #4b5563;

    font-size: 15px;

    line-height: 1.8;
}

.product-details__short-info p {
    margin: 0;
}

/* =========================================================
   CART BUTTON
========================================================= */

.product-details__buttons {
    display: flex;

    width: 100%;

    gap: 15px;

    margin-bottom: 25px;
}

.product-details__cart {
    flex: 1;

    min-height: 52px;

    padding: 14px 20px;

    display: flex;

    align-items: center;
    justify-content: center;

    text-align: center;

    background: #2563eb;

    color: #fff;

    border: none;

    border-radius: 10px;

    text-decoration: none;

    font-size: 16px;

    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

.product-details__cart:hover {
    background: #1d4ed8;

    transform: translateY(-2px);
}

/* =========================================================
   REMOVE FROM CART
========================================================= */

.product-details__cart--remove {
    background: #ef4444;
}

.product-details__cart--remove:hover {
    background: #dc2626;
}

/* =========================================================
   SUCCESS MESSAGE
========================================================= */

.success-message {
    margin-bottom: 20px;

    padding: 14px 18px;

    background: #d1fae5;

    color: #065f46;

    border-radius: 8px;

    font-weight: 600;
}

/* =========================================================
   ERROR MESSAGE
========================================================= */

.error-message {
    margin-bottom: 20px;

    padding: 14px 18px;

    background: #fef3c7;

    color: #92400e;

    border-radius: 8px;

    font-weight: 600;
}

/* =========================================================
   PRODUCT INFORMATION
========================================================= */

.product-info {
    width: 100%;

    padding: 70px 8%;

    background: #f8fafc;
}

/* =========================================================
   TABS
========================================================= */

.product-info__tabs {
    display: flex;

    gap: 12px;

    flex-wrap: wrap;

    margin-bottom: 30px;
}

.product-info__tab {
    padding: 13px 22px;

    border: none;

    border-radius: 8px;

    background: #e5e7eb;

    color: #374151;

    font-size: 15px;

    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.25s ease,
        color 0.25s ease;
}

.product-info__tab:hover {
    background: #dbeafe;

    color: #2563eb;
}

.product-info__tab--active {
    background: #2563eb;

    color: #fff;
}

.product-info__tab--active:hover {
    background: #1d4ed8;

    color: #fff;
}

/* =========================================================
   TAB PANELS
========================================================= */

.product-info__panel {
    background: #fff;

    padding: 35px;

    margin-bottom: 25px;

    border-radius: 15px;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.05);

    animation: productFade 0.3s ease;
}

.product-info__heading {
    margin: 0 0 20px;

    color: #111827;

    font-size: 24px;
}

.product-info__panel p {
    margin: 0;

    color: #4b5563;

    line-height: 1.8;
}

/* =========================================================
   MODERN SPECIFICATIONS GRID DESIGN
========================================================= */

.product-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.spec-item {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: all 0.2s ease;
}

.spec-item:hover {
    border-color: #d1d5db;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.spec-label {
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.spec-value {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
}

/* =========================================================
   RELATED PRODUCTS
========================================================= */

.related-products {
    width: 100%;

    padding: 70px 8%;

    background: #fff;
}

/* =========================================================
   RELATED HEADER
========================================================= */

.related-products__header {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 35px;
}

.related-products__title {
    margin: 0;

    color: #111827;

    font-size: 32px;
}

.related-products__view {
    color: #2563eb;

    text-decoration: none;

    font-weight: 700;
}

.related-products__view:hover {
    text-decoration: underline;
}

/* =========================================================
   RELATED GRID
========================================================= */

.related-products__grid {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(230px, 1fr)
        );

    gap: 25px;
}

/* =========================================================
   RELATED CARD
========================================================= */

.related-card {
    position: relative;

    padding: 20px;

    background: #fff;

    border: 1px solid #e5e7eb;

    border-radius: 16px;

    text-align: center;

    overflow: hidden;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.related-card:hover {
    transform: translateY(-7px);

    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.1);
}

/* =========================================================
   RELATED IMAGE
========================================================= */

.related-card__image {
    display: block;

    width: 100%;

    height: 200px;

    object-fit: contain;

    margin-bottom: 15px;

    transition:
        transform 0.3s ease;
}

.related-card:hover
.related-card__image {
    transform: scale(1.05);
}

/* =========================================================
   RELATED TITLE
========================================================= */

.related-card__title {
    margin: 10px 0;

    color: #111827;

    font-size: 17px;

    line-height: 1.4;
}

/* =========================================================
   RELATED PRICE
========================================================= */

.related-card__price {
    margin: 10px 0 18px;

    color: #2563eb;

    font-size: 22px;

    font-weight: 800;
}

/* =========================================================
   RELATED BUTTON
========================================================= */

.related-card__button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 11px 20px;

    background: #2563eb;

    color: #fff;

    border-radius: 8px;

    text-decoration: none;

    font-weight: 600;

    transition:
        background 0.25s ease;
}

.related-card__button:hover {
    background: #1d4ed8;
}

/* =========================================================
   ANIMATION
========================================================= */

@keyframes productFade {

    from {
        opacity: 0;

        transform: translateY(10px);
    }

    to {
        opacity: 1;

        transform: translateY(0);
    }
}
/* =========================================================
   ADD TO CART BUTTON LOADING ANIMATION
========================================================= */

.product-details__cart {
    position: relative;
    overflow: hidden;
    transition: background 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
}

/* Loading State */
.product-details__cart.is-loading {
    background: #93c5fd !important;
    pointer-events: none;
    color: transparent !important;
}

/* Spinner element */
.product-details__cart.is-loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-top: -10px;
    margin-left: -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: cartButtonSpin 0.7s linear infinite;
}

@keyframes cartButtonSpin {
    to {
        transform: rotate(360deg);
    }
}
/* =========================================================
   TABLET
========================================================= */

@media (max-width: 992px) {

    .product-details {
        grid-template-columns: 1fr;

        gap: 45px;

        padding: 50px 6%;
    }

    .product-details__main-image {
        height: 450px;
    }

    .product-details__main-image img {
        height: 400px;

        max-height: 400px;
    }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .product-breadcrumb {
        padding: 15px 20px;
    }

    .product-details {
        padding: 35px 20px;

        gap: 35px;
    }

    .product-details__main-image {
        height: 350px;

        min-height: 350px;

        padding: 20px;

        border-radius: 14px;
    }

    .product-details__main-image img {
        width: 100%;

        height: 320px;

        max-height: 320px;
    }

    .product-details__title {
        font-size: 28px;
    }

    .product-details__new-price {
        font-size: 28px;
    }

    .product-details__buttons {
        flex-direction: column;
    }

    .product-details__cart {
        width: 100%;
    }

    /* STORAGE OPTIONS - MOBILE */

    .product-variant-options {
        gap: 10px;
    }

    .product-variant-option {
        width: 110px;

        min-width: 110px;

        height: 38px;
    }

    .product-variant-option__name {
        font-size: 13px;
    }

    .product-info {
        padding: 50px 20px;
    }

    .product-info__panel {
        padding: 25px 20px;
    }

    .product-info__tabs {
        flex-direction: column;
    }

    .product-info__tab {
        width: 100%;
    }

    .related-products {
        padding: 50px 20px;
    }

    .related-products__header {
        flex-direction: column;

        align-items: flex-start;
    }

    .related-products__title {
        font-size: 27px;
    }
}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .product-details {
        padding: 25px 15px;
    }

    .product-details__main-image {
        height: 300px;

        min-height: 300px;

        padding: 15px;
    }

    .product-details__main-image img {
        height: 270px;

        max-height: 270px;
    }

    .product-details__thumbnail {
        width: 65px;

        height: 65px;

        max-width: 65px;

        max-height: 65px;
    }

    .product-details__title {
        font-size: 24px;
    }

    .product-details__new-price {
        font-size: 25px;
    }

    /* SMALL STORAGE OPTIONS */

    .product-variant-options {
        gap: 8px;
    }

    .product-variant-option {
        width: 100px;

        min-width: 100px;

        height: 36px;

        padding: 0 15px;

        border-radius: 20px;
    }

    .product-variant-option__name {
        font-size: 12px;
    }

    .product-info__panel {
        padding: 20px 15px;
    }

    .related-products__grid {
        grid-template-columns: 1fr;
    }
}