:root {
    --easystore-primary-color: #406deb;
    --easystore-primary-color-rgb: 64, 110, 235;
    --easystore-secondary-color: #48595f;
    --easystore-danger-color: #be1d04;
    --easystore-border-color: #e7e6e5;
    --easystore-border-radius: 6px;
    --easystore-text-default: #111213;
    --easystore-text-neutral: #676970;
    --easystore-bg-surface: #f8f9fa;
}

.easystore-single-product-module {
    box-sizing: border-box;
    font-family: inherit;
    color: var(--easystore-text-default, #111213);
    margin-bottom: 2rem;
}

.easystore-single-product-module * {
    box-sizing: border-box;
}

/* Default Layout */
.es-sp-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
    background: #ffffff;
    border: 1px solid var(--easystore-border-color, #e7e6e5);
    border-radius: var(--easystore-border-radius, 8px);
    padding: 2rem;
}

@media (max-width: 768px) {
    .es-sp-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.25rem;
    }
}

.es-sp-media {
    position: relative;
}

.es-sp-main-image {
    position: relative;
    overflow: hidden;
    border-radius: var(--easystore-border-radius, 6px);
    background: var(--easystore-bg-surface, #f8f9fa);
    border: 1px solid var(--easystore-border-color, #e7e6e5);
}

.es-sp-main-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.es-sp-main-image:hover img {
    transform: scale(1.02);
}

.es-sp-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 3;
}

.es-sp-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #ffffff;
}

.es-sp-badge-sale {
    background-color: var(--easystore-danger-color, #be1d04);
}

.es-sp-badge-featured {
    background-color: var(--easystore-primary-color, #406deb);
}

.es-sp-badge-outofstock {
    background-color: var(--easystore-text-neutral, #676970);
}

/* Gallery Thumbnails */
.es-sp-gallery-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.es-sp-thumb-btn {
    border: 1.5px solid var(--easystore-border-color, #e7e6e5);
    border-radius: var(--easystore-border-radius, 6px);
    background: #ffffff;
    padding: 3px;
    cursor: pointer;
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.es-sp-thumb-btn.active, 
.es-sp-thumb-btn:hover,
.es-sp-thumb-btn:focus-visible {
    border-color: var(--easystore-primary-color, #406deb);
    transform: translateY(-1px);
    outline: none;
}

.es-sp-thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

/* Content Area */
.es-sp-content {
    display: flex;
    flex-direction: column;
}

.es-sp-brand {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--easystore-primary-color, #406deb);
    margin-bottom: 6px;
}

.es-sp-title {
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 12px 0;
    color: var(--easystore-text-default, #111213);
}

.es-sp-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.es-sp-title a:hover,
.es-sp-title a:focus-visible {
    color: var(--easystore-primary-color, #406deb);
}

.es-sp-sku {
    font-size: 0.85rem;
    color: var(--easystore-text-neutral, #676970);
    margin-bottom: 12px;
}

.es-sp-sku strong {
    color: var(--easystore-text-default, #111213);
}

/* Price Box */
.es-sp-price-box {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 16px;
}

.es-sp-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--easystore-text-default, #111213);
}

.es-sp-price-sale {
    color: var(--easystore-danger-color, #be1d04);
}

.es-sp-price-regular.original {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--easystore-text-neutral, #676970);
    text-decoration: line-through;
}

.es-sp-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--easystore-text-neutral, #676970);
    margin-bottom: 24px;
}

/* Variants Selector */
.es-sp-variants {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
}

.es-sp-variant-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.es-sp-variant-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--easystore-text-default, #111213);
}

.es-sp-variant-values {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.es-sp-variant-select {
    height: 42px;
    padding: 0 12px;
    font-size: 0.9rem;
    border: 1px solid var(--easystore-border-color, #e7e6e5);
    border-radius: var(--easystore-border-radius, 6px);
    background-color: #ffffff;
    color: var(--easystore-text-default, #111213);
    outline: none;
    min-width: 160px;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.es-sp-variant-select:focus {
    border-color: var(--easystore-primary-color, #406deb);
    box-shadow: 0 0 0 3px rgba(var(--easystore-primary-color-rgb, 64, 110, 235), 0.15);
}

.es-sp-variant-color {
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 50%;
    padding: 2px;
    display: inline-flex;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.es-sp-variant-color.selected,
.es-sp-variant-color:hover,
.es-sp-variant-color:focus-within {
    border-color: var(--easystore-primary-color, #406deb);
    transform: scale(1.08);
}

.es-sp-color-dot {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-block;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.15);
}

.es-sp-variant-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid var(--easystore-border-color, #e7e6e5);
    border-radius: var(--easystore-border-radius, 6px);
    background-color: #ffffff;
    color: var(--easystore-text-default, #111213);
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
}

.es-sp-variant-pill.selected,
.es-sp-variant-pill:hover,
.es-sp-variant-pill:focus-within {
    border-color: var(--easystore-primary-color, #406deb);
    color: var(--easystore-primary-color, #406deb);
    background-color: rgba(var(--easystore-primary-color-rgb, 64, 110, 235), 0.08);
}

/* Action Panel & Buttons */
.es-sp-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: auto;
}

/* Quantity Controls */
.es-sp-qty-wrap {
    display: inline-flex !important;
    align-items: center !important;
    border: 1px solid var(--easystore-border-color, #e7e6e5) !important;
    border-radius: var(--easystore-border-radius, 6px) !important;
    overflow: hidden !important;
    background: #ffffff !important;
    height: 44px !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    margin: 0 !important;
}

.es-sp-qty-btn {
    width: 40px !important;
    height: 100% !important;
    border: none !important;
    border-radius: 0 !important;
    background: #ffffff !important;
    color: var(--easystore-text-default, #111213) !important;
    font-size: 1.15rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    outline: none !important;
}

.es-sp-qty-btn:hover {
    background-color: var(--easystore-bg-surface, #f8f9fa) !important;
}

.es-sp-qty-input {
    width: 52px !important;
    height: 100% !important;
    border-top: none !important;
    border-bottom: none !important;
    border-left: 1px solid var(--easystore-border-color, #e7e6e5) !important;
    border-right: 1px solid var(--easystore-border-color, #e7e6e5) !important;
    border-radius: 0 !important;
    text-align: center !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    color: var(--easystore-text-default, #111213) !important;
    background: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: textfield !important;
}

.es-sp-qty-input:focus,
.es-sp-qty-input:active {
    box-shadow: none !important;
    outline: none !important;
    border-top: none !important;
    border-bottom: none !important;
    border-left: 1px solid var(--easystore-border-color, #e7e6e5) !important;
    border-right: 1px solid var(--easystore-border-color, #e7e6e5) !important;
    border-radius: 0 !important;
}

.es-sp-qty-input::-webkit-outer-spin-button,
.es-sp-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

/* Buttons */
.es-sp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 26px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--easystore-border-radius, 6px);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.es-sp-btn-cart {
    background-color: var(--easystore-primary-color, #406deb);
    color: #ffffff;
}

.es-sp-btn-cart:hover:not(:disabled) {
    background-color: #3157c8;
    color: #ffffff;
}

.es-sp-btn-buynow {
    background-color: #111213;
    color: #ffffff;
}

.es-sp-btn-buynow:hover {
    background-color: #2b2d31;
    color: #ffffff;
}

.es-sp-btn.disabled,
.es-sp-btn:disabled {
    background-color: var(--easystore-bg-surface, #f1f1f1) !important;
    color: var(--easystore-text-neutral, #8c8f96) !important;
    border-color: var(--easystore-border-color, #e7e6e5) !important;
    cursor: not-allowed !important;
    opacity: 0.75;
}

/* Hero Layout */
.easystore-layout-hero {
    position: relative;
    min-height: 420px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    overflow: hidden;
    color: #ffffff;
    display: flex;
    align-items: flex-end;
}

.es-sp-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(17, 18, 19, 0.92) 0%, rgba(17, 18, 19, 0.45) 60%, rgba(17, 18, 19, 0.15) 100%);
}

.es-sp-hero-container {
    position: relative;
    z-index: 2;
    padding: 2.5rem;
    width: 100%;
}

.es-sp-hero-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin: 10px 0;
    line-height: 1.2;
}

.es-sp-hero-title a {
    color: #ffffff;
    text-decoration: none;
}

.es-sp-hero-desc {
    font-size: 1rem;
    color: #e5e7eb;
    max-width: 650px;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.es-sp-hero-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
}

.es-sp-hero-bottom .es-sp-price-box {
    margin-bottom: 0;
}

.es-sp-hero-bottom .es-sp-price {
    color: #ffffff;
}

.es-sp-hero-bottom .es-sp-price-regular.original {
    color: #cbd5e1;
}

.es-sp-btn-hero {
    background-color: #ffffff;
    color: #111213;
}

.es-sp-btn-hero:hover:not(:disabled) {
    background-color: #f3f4f6;
    color: #111213;
}

.es-sp-btn-hero-buynow {
    background-color: var(--easystore-primary-color, #406deb);
    color: #ffffff;
}

.es-sp-btn-hero-buynow:hover {
    background-color: #3157c8;
    color: #ffffff;
}

/* Compact Layout */
.easystore-layout-compact {
    border: 1px solid var(--easystore-border-color, #e7e6e5);
    border-radius: var(--easystore-border-radius, 8px);
    padding: 16px;
    background: #ffffff;
}

.es-sp-compact-card {
    display: flex;
    gap: 16px;
    align-items: center;
}

.es-sp-compact-thumb {
    width: 84px;
    height: 84px;
    flex-shrink: 0;
    border-radius: var(--easystore-border-radius, 6px);
    overflow: hidden;
    background: var(--easystore-bg-surface, #f8f9fa);
    border: 1px solid var(--easystore-border-color, #e7e6e5);
}

.es-sp-compact-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.es-sp-compact-details {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.es-sp-compact-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 6px 0;
}

.es-sp-compact-title a {
    color: var(--easystore-text-default, #111213);
    text-decoration: none;
}

.es-sp-compact-title a:hover {
    color: var(--easystore-primary-color, #406deb);
}

.es-sp-compact-details .es-sp-price-box {
    margin-bottom: 10px;
}

.es-sp-compact-details .es-sp-price {
    font-size: 1.15rem;
}

.es-sp-btn-sm {
    height: 36px;
    padding: 0 16px;
    font-size: 0.85rem;
    background-color: var(--easystore-primary-color, #406deb);
    color: #ffffff;
    align-self: flex-start;
}

/* Split Layout */
.easystore-layout-split {
    background: #ffffff;
    border-radius: var(--easystore-border-radius, 8px);
    border: 1px solid var(--easystore-border-color, #e7e6e5);
    padding: 2.5rem;
}

.es-sp-split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.es-sp-cat-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--easystore-primary-color, #406deb);
    margin-bottom: 8px;
}

.es-sp-split-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 16px 0;
}

.es-sp-split-title a {
    color: inherit;
    text-decoration: none;
}

.es-sp-split-title a:hover {
    color: var(--easystore-primary-color, #406deb);
}

.es-sp-split-description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--easystore-text-neutral, #676970);
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .es-sp-split-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .easystore-layout-split {
        padding: 1.25rem;
    }
}

/* Spinner Animation */
.es-sp-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: es-sp-spin 0.75s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}

@keyframes es-sp-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Specifications Section */
.es-sp-specifications {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--easystore-border-color, #e7e6e5);
}

.es-sp-specifications-heading {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 14px 0;
    color: var(--easystore-text-default, #111213);
}

.es-sp-spec-group-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--easystore-primary-color, #406deb);
    margin: 12px 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.es-sp-spec-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.es-sp-spec-table th,
.es-sp-spec-table td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--easystore-border-color, #e7e6e5);
}

.es-sp-spec-table .es-sp-spec-group-row th {
    background-color: var(--easystore-bg-surface, #f8f9fa);
    font-weight: 600;
    text-align: left;
}

.es-sp-spec-table .es-sp-spec-key {
    width: 35%;
    font-weight: 600;
    color: var(--easystore-text-default, #111213);
    vertical-align: top;
}

.es-sp-spec-table .es-sp-spec-value {
    color: var(--easystore-text-neutral, #676970);
}

.es-sp-spec-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.es-sp-spec-items {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
}

.es-sp-spec-item {
    display: flex;
    gap: 8px;
    font-size: 0.9rem;
}

.es-sp-spec-item .es-sp-spec-key {
    font-weight: 600;
    color: var(--easystore-text-default, #111213);
    min-width: 120px;
}

.es-sp-spec-item .es-sp-spec-value {
    color: var(--easystore-text-neutral, #676970);
}

/* Custom Fields Section */
.es-sp-custom-fields {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--easystore-border-color, #e7e6e5);
}

.es-sp-custom-fields-heading {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 14px 0;
    color: var(--easystore-text-default, #111213);
}

.es-sp-custom-fields-wrap {
    font-size: 0.9rem;
}

