.shop-details {
    background-color: var(--white);
    margin-top: var(--nav-height, 0);
    min-height: calc(100vh - var(--nav-height, 0px));
    min-height: calc(100dvh - var(--nav-height, 0px));
    display: flex;
    flex-direction: column;
}

.shop-details #footer-placeholder {
    margin-top: auto;
    flex-shrink: 0;
}

.shop-details .shop-details-container {
    padding: clamp(96px, 10vh, 140px) 20px clamp(48px, 8vh, 80px) 20px;
    background-color: transparent;
    margin: 0 auto;
    width: 100%;
    max-width: 1400px;
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.shop-details .shop-details-container > .row {
    width: 100%;
}

.product-breadcrumb {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    color: #8b95a1;
    font-size: 13px;
    font-weight: 600;
}

.product-breadcrumb a {
    color: #7d8a96;
    text-decoration: none;
}

.product-breadcrumb a:hover {
    color: var(--nsf-primary);
}

.product-breadcrumb strong {
    color: #2E282A;
    font-weight: 700;
}

/* --- Left Column: Images --- */
.shop-details .shop-details-container .img-div {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 0 30px 0 0;
    position: relative;
}

.shop-details-container .carousel {
    width: 100%;
    border-radius: 24px; /* Rounded corners for images */
    overflow: hidden;
    background: #f8f8f8;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.shop-details-container .carousel-item {
    height: 650px; /* Fixed height for consistency */
    width: 100%;
    background: #f4f4f4;
    border-radius: 24px; /* Ensure items respect the radius */
}

.shop-details-container .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-image-overview {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.product-thumb {
    aspect-ratio: 1 / 1;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    padding: 0;
    background: #f4f4f4;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.product-thumb:hover,
.product-thumb.active {
    border-color: var(--nsf-primary);
}

.product-thumb:hover {
    transform: translateY(-1px);
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- Right Column: Item Details --- */
.item-details {
    display: flex;
    flex-direction: column;
    padding: 10px 0 0 30px !important;
    max-width: 600px;
}

/* Header (Title + Price) */
.product-header {
    margin-bottom: 24px;
}

.item-title {
    text-transform: uppercase;
    color: #1a1a1a;
    margin: 0 0 8px 0;
    font-size: 42px;
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -1px;
}

.item-price {
    font-size: 24px;
    font-weight: 500;
    color: #1a1a1a;
    opacity: 0.8;
    display: flex;
    align-items: center;
}

/* Description */
.product-description {
    margin-bottom: 24px;
}

.item-description-text {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    max-width: 90%;
}

/* Divider */
.divider {
    height: 1px;
    background-color: #e5e5e5;
    margin-bottom: 32px;
    width: 100%;
}

.product-specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    margin-bottom: 28px;
}

.product-spec + .product-spec {
    border-left: 1px solid #e5e5e5;
    padding-left: 28px;
}

.product-spec h3 {
    margin: 0 0 8px 0;
    color: #1a1a1a;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.product-spec p {
    margin: 0;
    color: #555;
    font-size: 14px;
    line-height: 1.6;
}

/* Options (Size/Color) */
.option-group {
    margin-bottom: 24px;
}

.option-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    margin-bottom: 10px;
    display: block;
}

.size-options, .color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.size-option {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e0e0e0; /* Lighter border */
    background: white;
    color: #1a1a1a;
    padding: 0 20px;
    height: 44px;
    min-width: 50px;
    cursor: pointer;
    border-radius: 8px; /* Slightly rounded buttons */
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
}

.size-option:hover:not(.unavailable):not(.selected) {
    border-color: #1a1a1a;
}

.size-option.selected {
    background-color: #1a1a1a !important;
    color: white;
    border-color: #1a1a1a;
}

.size-option.unavailable {
    color: #ccc;
    border-color: #f5f5f5;
    background: #fafafa;
    cursor: not-allowed;
    text-decoration: line-through;
}

/* Actions Row: Add Button only */
.actions-row {
    display: flex;
    align-items: center;
    margin-top: 32px;
    margin-bottom: 10px;
    width: 100%;
}

/* Add to Cart Button */
.add-to-cart-wrapper {
    width: 100%;
}

.add-to-cart {
    width: 100%;
    height: 52px;
    background: #1a1a1a;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s ease;
}

.add-to-cart:hover {
    background: #333;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.add-to-cart:active {
    transform: translateY(0);
}

.shop-details .add-to-cart:disabled,
.shop-details .add-to-cart.disabled,
.shop-details .add-to-cart.is-out-of-stock,
.shop-details .btn.btn-primary.add-to-cart.is-out-of-stock {
    background: #d1d5db !important;
    background-color: #d1d5db !important;
    border-color: #d1d5db !important;
    color: #5f6670 !important;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 1;
}

.shop-details .add-to-cart:disabled:hover,
.shop-details .add-to-cart.disabled:hover,
.shop-details .add-to-cart.is-out-of-stock:hover,
.shop-details .btn.btn-primary.add-to-cart.is-out-of-stock:hover {
    background: #d1d5db !important;
    background-color: #d1d5db !important;
    border-color: #d1d5db !important;
    color: #5f6670 !important;
    transform: none;
    box-shadow: none;
}

.notify-card {
    width: 100%;
    border: 1px solid rgba(164, 200, 225, 0.7);
    background: linear-gradient(135deg, #ffffff 0%, #f4f8fb 100%);
    border-radius: 8px;
    padding: 18px;
    box-shadow: 0 8px 24px rgba(164, 200, 225, 0.18);
}

.notify-card-copy {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.notify-card-copy i {
    color: #1a1a1a;
    font-size: 24px;
    line-height: 1;
    margin-top: 2px;
}

.notify-card h3 {
    margin: 0 0 4px 0;
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
}

.notify-card p {
    margin: 0;
    color: #555;
    font-size: 13px;
    line-height: 1.5;
}

.notify-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.notify-input {
    height: 46px;
    border: 1px solid #d8e4ed;
    border-radius: 8px;
    padding: 0 14px;
    background: #fff;
    color: #1a1a1a;
    font-size: 14px;
    outline: none;
}

.notify-input:focus {
    border-color: var(--nsf-primary);
    box-shadow: 0 0 0 3px rgba(164, 200, 225, 0.2);
}

.notify-button {
    height: 46px;
    border: 0;
    border-radius: 8px;
    padding: 0 18px;
    background: #1a1a1a;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    white-space: nowrap;
}

.notify-button:disabled {
    opacity: 0.65;
    cursor: wait;
}

.notify-status {
    min-height: 20px;
    margin-top: 10px !important;
    font-weight: 600;
}

.notify-status.success {
    color: #287a3e;
}

.notify-status.error {
    color: #b3261e;
}

/* Footer / Payment Methods */
.product-footer {
    margin-top: 40px;
    opacity: 0.6;
    filter: grayscale(100%);
    transition: opacity 0.3s;
}

.product-footer:hover {
    opacity: 1;
}

.payment-methods {
    display: flex;
    gap: 16px;
    align-items: center;
}

.payment-logo {
    height: 22px;
    width: auto;
}


/* --- Carousel Controls (Subtle) --- */
.shop-details-container .carousel-control-prev,
.shop-details-container .carousel-control-next {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.92;
    transition: all 0.3s ease;
    color: black;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin: 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    overflow: hidden;
    z-index: 2;
    border: 0;
    padding: 0;
}

.shop-details-container .carousel-control-prev {
    left: 10px;
}

.shop-details-container .carousel-control-next {
    right: 10px;
}

.shop-details-container .carousel:hover .carousel-control-prev,
.shop-details-container .carousel:hover .carousel-control-next {
    opacity: 1;
}

.shop-details-container .carousel-control-prev-icon,
.shop-details-container .carousel-control-next-icon {
    background-image: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.shop-details-container .carousel-control-prev-icon::before,
.shop-details-container .carousel-control-next-icon::before {
    color: #1a1a1a;
    font-size: 30px;
    font-weight: 300;
    line-height: 1;
    margin-top: -2px;
}

.shop-details-container .carousel-control-prev-icon::before {
    content: '\2039';
}

.shop-details-container .carousel-control-next-icon::before {
    content: '\203A';
}

.shop-details-container .carousel-control-prev .sr-only,
.shop-details-container .carousel-control-next .sr-only,
.shop-details-container .carousel-control-prev .visually-hidden,
.shop-details-container .carousel-control-next .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --- Responsive --- */
@media screen and (max-width: 991px) {
    .shop-details .shop-details-container {
        padding: 100px 16px 40px 16px; /* Adjusted for mobile */
        display: block;
    }
    
    .shop-details .shop-details-container .img-div {
        padding: 0 20px 30px 20px;
    }
    
    .item-details {
        padding: 0 20px 0px 20px !important;
        max-width: 100%;
    }
    
    .shop-details-container .carousel-item {
        height: 450px;
    }
}

@media screen and (max-width: 576px) {
    .shop-details .shop-details-container {
        padding: 92px 14px 34px 14px;
    }

    .product-breadcrumb {
        flex-wrap: wrap;
        gap: 6px;
        font-size: 12px;
        line-height: 1.35;
        margin-bottom: 18px;
    }

    .shop-details .shop-details-container .img-div {
        padding: 0 10px 24px 10px;
    }

    .shop-details-container .carousel,
    .shop-details-container .carousel-item {
        border-radius: 20px;
    }

    .shop-details-container .carousel-item {
        height: auto;
        aspect-ratio: 4 / 5;
        min-height: 0;
    }

    .product-image-overview {
        grid-template-columns: repeat(4, minmax(64px, 1fr));
        gap: 8px;
        margin-top: 12px;
    }

    .product-thumb {
        border-radius: 7px;
        box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    }

    .item-details {
        padding: 0 10px !important;
    }

    .product-header {
        margin-bottom: 18px;
    }

    .product-specs {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .product-spec + .product-spec {
        border-left: 0;
        border-top: 1px solid #e5e5e5;
        padding-left: 0;
        padding-top: 18px;
    }

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

    .item-title {
        font-size: 28px;
        line-height: 0.98;
        letter-spacing: -0.4px;
        margin-bottom: 10px;
    }

    .item-price {
        font-size: 22px;
    }

    .product-description {
        margin-bottom: 22px;
    }

    .item-description-text {
        max-width: 100%;
        font-size: 14px;
        line-height: 1.55;
    }

    .divider {
        margin-bottom: 28px;
    }

    .notify-card {
        padding: 16px;
        box-shadow: 0 6px 18px rgba(164, 200, 225, 0.14);
    }

    .notify-card-copy {
        gap: 12px;
        margin-bottom: 14px;
    }

    .notify-card-copy i {
        font-size: 22px;
    }

    .notify-input,
    .notify-button {
        height: 46px;
    }

    .product-footer {
        margin-top: 28px;
    }

    .payment-methods {
        justify-content: center;
        gap: 12px;
        flex-wrap: wrap;
    }

    .payment-logo {
        height: 20px;
    }
}
