.product-page-main {
    padding: 0; 
    width: 100%;
    max-width: 100%;
    
}

.msland-product-single {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.product-gallery {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0;
    padding: 0 10px; 
}

.main-image-container {
    width: 100%;
    margin: 5px 0 0 0;
    padding: 0;
    
    touch-action: pan-y;
    cursor: grab;
}

.main-image-container.is-dragging {
    cursor: grabbing;
}

.main-image-wrapper {
    width: 100%;
    
    aspect-ratio: 1 / 1;
}

.main-image-wrapper .main-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.05); 
    -webkit-user-drag: none;
    user-select: none;
}

.product-thumbnails {
    display: flex;
    width: 100%;
    margin: 10px 0;
    padding: 0;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    
    -webkit-mask-image: linear-gradient(to right, transparent, black 10px, black calc(100% - 10px), transparent);
    mask-image: linear-gradient(to right, transparent, black 10px, black calc(100% - 10px), transparent);
}
.product-thumbnails::-webkit-scrollbar {
    display: none;
}

.thumb-item {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    cursor: pointer;
    background: #fff;
    border: 1px solid #eee;
    border-radius: var(--radius-lg);
    opacity: 0.6;
    transition: all 0.2s ease;
    overflow: hidden;
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-item.active {
    opacity: 1;
    border-color: var(--msland-brand, #355872);
}

.product-summary {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 10px 10px 30px 10px; 
    width: 100%;
    text-align: center; 
}

.product-title {
    font-size: 1.25rem;
    font-weight: 400;
    margin: 0;
    line-height: 1.3;
    color: #111827;
    text-transform: uppercase;
}

.product-price-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.price-main {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 4px;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--msland-brand, #355872);
}

.price-main .currency {
    font-size: 0.9rem;
    font-weight: 600;
}

.price-compare {
    font-size: 0.9rem;
    color: #9CA3AF;
    text-decoration: line-through;
    font-weight: 400;
}

@media (min-width: 992px) {
    .product-page-main {
        max-width: 1300px;
        margin: 0 auto;
        padding-top: 40px; 
        padding-bottom: 40px;
    }

    .msland-product-single {
        flex-direction: row;
        align-items: flex-start;
        gap: 40px; 
        padding: 0 40px;
    }

    .product-gallery {
        flex: 0 0 45%; 
        max-width: 45%;
        padding: 0; 
        position: -webkit-sticky; 
        position: sticky;
        top: 120px; 
        align-self: flex-start; 
        z-index: 10;
    }

    .admin-bar .product-gallery {
        top: 152px; 
    }

    .product-summary {
        flex: 1;
        padding: 0; 
        text-align: left; 
    }

    .product-price-box {
        justify-content: flex-start; 
    }
    
    .product-title {
        font-size: 1.25rem; 
        margin-top: -4px; 
        text-align: left;
    }
}

.product-description-content {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    color: #4B5563;
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: left; 
}

.product-description-content p {
    margin-bottom: 15px;
}

.product-description-content ul, 
.product-description-content ol {
    padding-left: 20px;
    margin-bottom: 15px;
}

.product-description-content li {
    margin-bottom: 8px;
}

.product-description-content h2,
.product-description-content h3 {
    color: #111827;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 20px 0 10px 0;
}

.sticky-checkout-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 8px 15px;
    box-shadow: 0 -10px 20px rgba(0, 0, 0, 0.05);
    z-index: 99999; 
    transform: translateY(110%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: block;
}

.sticky-checkout-bar.is-visible {
    transform: translateY(0);
}

.sticky-atc-btn {
    width: 100%;
    background: var(--msland-brand, #355872);
    color: #fff;
    border: none;
    border-radius: var(--radius-lg);
    padding: 12px 20px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.sticky-btn-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
}

.sticky-btn-inner .main-text {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.sticky-atc-btn .icon {
    display: flex;
    flex-shrink: 0;
}

.sticky-atc-btn .icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

@media (max-width: 380px) {
    .sticky-btn-inner {
        gap: 8px;
    }
    .sticky-btn-inner .main-text {
        font-size: 12px;
    }
}

.sticky-checkout-bar {
    border-top: 1px solid rgba(0,0,0,0.1);
}

.msland-product-specs-card {
    width: 100%;
    border: 1px solid var(--color-border, rgba(0,0,0,0.1));
    border-radius: var(--radius-lg, 8px);
    background: transparent;
    padding: 16px;
    margin-bottom: 12px;
}

.product-metadata-list {
    display: flex;
    flex-direction: column;
}

.product-metadata-list .meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--color-text-secondary, #666);
    padding: 8px 0;
    border-bottom: 1px solid var(--color-border, rgba(0,0,0,0.05));
}

.product-metadata-list .meta-row:last-child {
    border-bottom: none;
}

.product-metadata-list .meta-label {
    font-weight: 500;
    flex-shrink: 0;
}

.product-metadata-list .meta-value {
    font-weight: 600;
    color: var(--color-text, #111);
    text-align: right;
    min-width: 0;
}

.product-metadata-list .category-value {
    font-size: 0.8rem;
    word-break: break-word;
}

@media (max-width: 767px) {
    .product-metadata-list .category-value {
        font-size: 0.7rem;
    }
}

.product-metadata-list .meta-value a {
    color: var(--msland-brand, #355872);
    text-decoration: none;
}

.product-metadata-list .meta-value a:hover {
    text-decoration: underline;
}

.product-metadata-list .brand-value {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
}

.product-metadata-list .brand-logo-img {
    height: 24px;
    max-width: 100px;
    width: auto;
    object-fit: contain;
    display: block;
}

.product-metadata-list .stock-value {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.product-metadata-list .stock-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.product-metadata-list .stock-value.in-stock {
    color: #10B981;
}

.product-metadata-list .stock-value.in-stock .stock-dot {
    background: #10B981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.product-metadata-list .stock-value.out-of-stock {
    color: #EF4444;
}

.product-metadata-list .stock-value.out-of-stock .stock-dot {
    background: #EF4444;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

.product-metadata-list .sku-value {
    font-family: monospace;
    font-size: 0.85rem;
}

.msland-product-description-accordion {
    width: 100%;
    border: 1px solid var(--color-border, rgba(0,0,0,0.1));
    border-radius: var(--radius-lg, 8px);
    background: transparent;
    overflow: hidden;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.msland-product-description-accordion[open] {
    border-color: var(--color-border-hover, rgba(0,0,0,0.2));
}

.msland-product-description-accordion .accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    cursor: pointer;
    list-style: none;
    font-weight: 600;
    font-size: 13.5px;
    color: var(--color-text, #111);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: transparent;
    outline: none;
    user-select: none;
}

.msland-product-description-accordion .accordion-header::-webkit-details-marker {
    display: none;
}

.msland-product-description-accordion .accordion-chevron {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary, #666);
    transition: transform 0.2s ease;
}

.msland-product-description-accordion[open] .accordion-chevron {
    transform: rotate(180deg);
}

.msland-product-description-accordion .accordion-content {
    padding: 0 16px 16px 16px;
    border-top: 1px solid var(--color-border, rgba(0,0,0,0.05));
    text-align: left;
}

.msland-product-description-accordion .product-description-text {
    color: #4B5563;
    font-size: 0.92rem;
    line-height: 1.6;
    margin-top: 12px;
}

.msland-product-description-accordion .product-description-text p {
    margin-bottom: 12px;
}

.msland-product-description-accordion .product-description-text p:last-child {
    margin-bottom: 0;
}

.msland-product-specs-card .msland-product-description-accordion {
    border: none;
    border-radius: 0;
    margin-bottom: 0;
    margin-top: 10px;
    border-top: 1px solid var(--color-border, rgba(0,0,0,0.05));
}

.msland-product-specs-card .msland-product-description-accordion .accordion-header {
    padding: 12px 0 0 0;
}

.msland-product-specs-card .msland-product-description-accordion .accordion-content {
    padding: 0;
    border-top: none;
}

.msland-google-reviews-section {
    width: 100%;
    padding: 20px 10px 10px;
    box-sizing: border-box;
    overflow: hidden;
}

.msland-google-reviews-section .msland-container {
    width: 100%;
    max-width: 100%;
}

body.dark-mode .thumb-item {
    background: rgba(255, 255, 255, 0.03) !important;
    border-color: var(--color-border) !important;
}

body.dark-mode .thumb-item.active {
    border-color: #ffffff !important;
}

body.dark-mode .product-description-content h2,
body.dark-mode .product-description-content h3 {
    color: #ffffff !important;
}

body.dark-mode .sticky-checkout-bar {
    background: var(--color-background-secondary) !important;
    box-shadow: 0 -10px 20px rgba(0, 0, 0, 0.3) !important;
    border-top-color: var(--color-border) !important;
}

body.dark-mode .product-title {
    color: #ffffff !important;
}

body.dark-mode .product-description-content {
    color: var(--color-text-secondary) !important;
    border-top-color: var(--color-border) !important;
}

body.dark-mode .sticky-atc-btn {
    background: #ffffff !important;
    color: #151111 !important;
}

body.dark-mode .sticky-atc-btn .icon svg {
    stroke: #151111 !important;
}

body.dark-mode .msland-product-specs-card {
    border-color: var(--color-border) !important;
}

body.dark-mode .product-metadata-list .meta-row {
    border-bottom-color: var(--color-border) !important;
    color: var(--color-text-secondary) !important;
}

body.dark-mode .product-metadata-list .meta-value {
    color: var(--color-text) !important;
}

body.dark-mode .product-metadata-list .meta-value a {
    color: #3b82f6 !important;
}

body.dark-mode .product-metadata-list .meta-value a:hover {
    color: #60a5fa !important;
}

body.dark-mode .msland-product-description-accordion .product-description-text {
    color: var(--color-text-secondary) !important;
}

body.dark-mode .msland-product-description-accordion .accordion-content {
    border-top-color: var(--color-border) !important;
}

body.dark-mode .msland-product-specs-card .msland-product-description-accordion {
    border-top-color: var(--color-border) !important;
}

body.dark-mode .msland-google-reviews-section {
    
}

body.dark-mode .msland-google-reviews-section .ti-widget {
    background: transparent !important;
}

body.dark-mode .msland-google-reviews-section .ti-widget-container,
body.dark-mode .msland-google-reviews-section .ti-reviews-container,
body.dark-mode .msland-google-reviews-section .ti-reviews-container-wrapper {
    background: transparent !important;
}

body.dark-mode .msland-google-reviews-section .ti-review-item > .ti-inner {
    background: var(--color-background-tertiary) !important;
    border-color: var(--color-border) !important;
}

body.dark-mode .msland-google-reviews-section .ti-review-header {
    background: transparent !important;
}

body.dark-mode .msland-google-reviews-section .ti-name {
    color: #ffffff !important;
}

body.dark-mode .msland-google-reviews-section .ti-date {
    color: var(--color-text-tertiary) !important;
}

body.dark-mode .msland-google-reviews-section .ti-star {
    filter: brightness(1.2) !important;
}

body.dark-mode .msland-google-reviews-section .ti-review-content {
    color: var(--color-text-secondary) !important;
}

body.dark-mode .msland-google-reviews-section .ti-review-content * {
    color: var(--color-text-secondary) !important;
}

body.dark-mode .msland-google-reviews-section .ti-header {
    color: #ffffff !important;
}

body.dark-mode .msland-google-reviews-section .ti-footer {
    color: var(--color-text-secondary) !important;
}

body.dark-mode .msland-google-reviews-section .ti-controls {
    color: var(--color-text-secondary) !important;
}

body.dark-mode .msland-google-reviews-section .ti-controls .ti-next,
body.dark-mode .msland-google-reviews-section .ti-controls .ti-prev {
    background: var(--color-background-tertiary) !important;
    border-color: var(--color-border) !important;
    color: #ffffff !important;
}

body.dark-mode .msland-google-reviews-section .ti-header-write-btn {
    background: var(--color-background-tertiary) !important;
    color: #ffffff !important;
    border-color: var(--color-border) !important;
}

body.dark-mode .msland-google-reviews-section .ti-header-rating-text {
    color: #ffffff !important;
}

body.dark-mode .msland-google-reviews-section .ti-header-rating-text strong {
    color: #ffffff !important;
}

body.dark-mode .msland-google-reviews-section .review-text p,
body.dark-mode .msland-google-reviews-section .review-text p a,
body.dark-mode .msland-google-reviews-section .description p {
    color: #333333 !important;
}
