
    /* ===== VARIABLES ===== */
    :root {
        --primary-color: #e86729;
        --secondary-color: #e67e22;
        --border-color: #e5e5e5;
        --text-color: #333;
        --text-muted: #999;
        --white: #fff;
        --success-color: #01a859;
        --error-color: #cb141e;
        --brand-primary-color: #ee4d2d;
    }

    /* ===== BASE STYLES ===== */
    * {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
    }

    body {
        font-family: "Helvetica,Arial,sans-serif", sans-serif;
        background: var(--white);
        padding: 16px;
        line-height: 1.5;
        color: var(--text-color);
        font-size: 14px;
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }

    /* ===== COMPONENT STYLES ===== */
    .product-variations {
        background: var(--white);
        margin-bottom: 16px;
        width: 100%;
        overflow: visible;
        max-width: 100%;
    }

    .flex {
        display: flex;
    }

    .flex-column {
        flex-direction: column;
    }

    .items-center {
        align-items: center;
    }

    .variation-section {
        padding: 16px 0;
        border-bottom: 1px solid var(--border-color);
        width: 100%;
        overflow: visible;
    }

    .variation-section:last-child {
        border-bottom: none;
    }

    /* ===== LABEL STYLES ===== */
    .Dagtcd {
        color: var(--text-color);
        min-width: 100px;
        margin-right: 20px;
        flex-shrink: 0;
        line-height: 1.4;
        font-family: "Helvetica,Arial,sans-serif", sans-serif;
        font-size: 15px;
        font-weight: 600;
        margin-bottom: 12px;
    }

    /* ===== OPTIONS CONTAINER - 2 CỘT ===== */
    .variation-options {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        max-width: 100%;
        width: 100%;
        overflow: visible;
        padding: 2px 0 2px 2px;
    }

    .j7HL5Q {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        max-width: 100%;
        width: 100%;
        overflow: visible;
        padding: 2px 0 2px 2px;
    }

    /* ===== BUTTON STYLES (SHOPEE STYLE) ===== */
    .variation-option, .sApkZm {
        align-items: center;
        background: #fff;
        border: 1px solid rgba(0, 0, 0, .09);
        border-radius: 6px;
        box-sizing: border-box;
        color: rgba(0, 0, 0, .8);
        cursor: pointer;
        display: inline-flex;
        justify-content: center;
        margin: 0;
        min-height: 2.5rem;
        min-width: 4rem;
        outline: 0;
        overflow: visible !important;
        padding: 0.5rem 0.75rem;
        position: relative;
        text-align: center;
        word-break: break-word;
        transition: all 0.2s ease;
        gap: 6px;
        flex: 0 1 auto;
        font-weight: 500;
        font-size: 13px;
        width: 100%;
    }

    .variation-option:hover, .sApkZm:hover {
        border-color: var(--brand-primary-color, #ee4d2d);
    }

    .variation-option.selected, .T_6srb {
        border-color: var(--brand-primary-color, #ee4d2d);
        color: var(--brand-primary-color, #ee4d2d);
        background-color: rgba(238, 77, 45, 0.03);
    }

    .variation-option.disabled {
        opacity: 0.4;
        cursor: not-allowed;
        background: #f9f9f9;
    }

    .variation-option.disabled:hover {
        border-color: rgba(0, 0, 0, .09);
        color: rgba(0, 0, 0, .8);
    }

    /* ===== OPTION CONTENT ===== */
    .option-image {
        display: flex;
        flex-shrink: 0;
    }

    .option-image img {
        height: 20px;
        width: auto;
        border-radius: 3px;
    }

    .color-swatch {
        width: 24px;
        height: 24px;
        border-radius: 3px;
        object-fit: cover;
        border: 1px solid rgba(0, 0, 0, .09);
        flex-shrink: 0;
    }

    .color-swatch.disabled {
        opacity: 0.5;
    }

    .option-name, .ZivAAW {
        font-size: 13px;
        color: inherit;
        line-height: 1.4;
        font-weight: 500;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        word-break: break-word;
        flex: 1;
        min-width: 0;
    }

    /* ===== SELECTION BADGES ===== */
    .selected-badge {
        position: absolute;
        top: -6px;
        right: -6px;
        width: 18px;
        height: 18px;
        background: var(--brand-primary-color, #ee4d2d);
        border-radius: 50%;
        display: none;
        align-items: center;
        justify-content: center;
        z-index: 10;
        box-shadow: 0 1px 2px rgba(0,0,0,0.2);
    }

    .variation-option.selected .selected-badge {
        display: flex;
    }

    .selected-badge::before {
        content: "✓";
        color: var(--white);
        font-size: 10px;
        font-weight: bold;
    }

    .NkXHv4 {
        position: absolute;
        top: -6px;
        right: -6px;
        width: 18px;
        height: 18px;
        background: var(--brand-primary-color, #ee4d2d);
        border-radius: 50%;
        display: none;
        align-items: center;
        justify-content: center;
        z-index: 10;
        box-shadow: 0 1px 2px rgba(0,0,0,0.2);
    }

    .T_6srb .NkXHv4 {
        display: flex;
    }

    .QX2JQy {
        width: 10px;
        height: 10px;
        filter: brightness(0) invert(1);
    }

    /* ===== THÔNG BÁO LỖI ===== */
    .error-message {
        color: var(--error-color);
        font-size: 11px;
        margin-top: 4px;
        display: none;
    }

    .error-message.show {
        display: block;
    }

    .variation-required .Dagtcd::after {
        content: " *";
        color: var(--error-color);
        font-size: 12px;
    }

    /* ===== QUANTITY DISABLED STYLES ===== */
    .quantity-disabled {
        opacity: 0.5;
        pointer-events: none;
        position: relative;
    }

    .quantity-disabled::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.7);
        z-index: 1;
        border-radius: 4px;
    }

    .quantity-tooltip {
        position: absolute;
        top: -28px;
        left: 50%;
        transform: translateX(-50%);
        background: #333;
        color: white;
        padding: 4px 8px;
        border-radius: 4px;
        font-size: 11px;
        white-space: nowrap;
        z-index: 10;
        display: none;
        pointer-events: none;
    }

    .quantity-tooltip::after {
        content: "";
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        border: 4px solid transparent;
        border-top-color: #333;
    }

    .quantity-disabled:hover .quantity-tooltip {
        display: block;
    }

    /* Đảm bảo container không bị tràn */
    .product-variations {
        max-width: 100%;
        overflow: visible;
    }

    /* Fix cho các option dài */
    .variation-option .option-name {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }
    
    /* Ẩn các input ẩn không cần thiết */
    .hidden-inputs {
        display: none;
    }
    
    /* Hiển thị ảnh được chọn */
    #selected-color-image {
        max-width: 100%;
        margin-top: 8px;
        display: none;
        border-radius: 6px;
    }

    /* ===== QUANTITY SECTION STYLES ===== */
    .quantity.buttons_added {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0;
        margin: 0;
        position: relative;
        height: 44px;
        border: 1px solid var(--border-color);
        border-radius: 6px;
        background: #fff;
        overflow: hidden;
        flex-shrink: 0;
        width: 100%;
    }

    .quantity .minus, .quantity .plus {
        width: 44px;
        height: 44px;
        border: none;
        background: #f5f5f5;
        font-size: 20px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #333;
        margin: 0;
        padding: 0;
        line-height: 1;
    }

    .quantity .minus:hover, .quantity .plus:hover {
        background: var(--brand-primary-color);
        color: #fff;
    }

    .quantity .minus:disabled, .quantity .plus:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        background: #f5f5f5;
        color: #999;
    }

    #quantity_62acbb3aab6dd {
        width: 60px;
        height: 44px;
        text-align: center;
        border: none;
        border-left: 1px solid var(--border-color);
        border-right: 1px solid var(--border-color);
        font-size: 15px;
        font-weight: 500;
        background: #fff;
        -moz-appearance: textfield;
        flex: 1;
    }

    #quantity_62acbb3aab6dd::-webkit-outer-spin-button,
    #quantity_62acbb3aab6dd::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

    /* ===== CART ACTIONS LAYOUT ===== */
    .cart-actions-wrapper {
        margin: 16px 0 8px;
        width: 100%;
    }

    .cart-row {
        display: flex;
        gap: 10px;
        margin-bottom: 10px;
        width: 100%;
        flex-wrap: wrap;
    }

    .cart-row:last-child {
        margin-bottom: 0;
    }

    /* Nút số lượng chiếm 40% */
    .quantity-wrapper {
        flex: 0 0 40%;
        max-width: 40%;
        min-width: 0;
    }

    /* Nút thêm vào giỏ chiếm 60% */
    .add-to-cart-wrapper {
        flex: 0 0 calc(60% - 10px);
        max-width: calc(60% - 10px);
        min-width: 0;
    }

    /* Nút mua ngay full width */
    .buy-now-wrapper {
        width: 100%;
    }

    .single_add_to_cart_button {
        height: 44px;
        padding: 0 16px;
        border: none;
        border-radius: 6px;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s;
        display: flex;
        align-items: center;
        justify-content: center;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        width: 100%;
        white-space: nowrap;
    }

    .single_add_to_cart_button:hover:not(:disabled) {
        transform: translateY(-1px);
        box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    }

    .single_add_to_cart_button:active:not(:disabled) {
        transform: translateY(0);
        box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    }

    .single_add_to_cart_button:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }

    #add-to-cart-btn {
        background-color: #ff6b6b !important;
        color: #fff !important;
        border: 1px solid #ff5252;
    }

    #add-to-cart-btn:hover:not(:disabled) {
        background-color: #ff5252 !important;
    }

    #buy-now-btn {
        background-color: #ee4d2d !important;
        color: #fff !important;
        border: 1px solid #d73211;
    }

    #buy-now-btn:hover:not(:disabled) {
        background-color: #d73211 !important;
    }

    /* ===== PRICE DISPLAY STYLES ===== */
    .price-display-section {
        background: #f8f9fa;
        border: 1px solid var(--border-color);
        border-radius: 6px;
        padding: 12px;
        margin: 12px 0;
        width: 100%;
        overflow: visible;
    }

    .price-info {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px;
    }

    .price-info .label {
        font-size: 14px;
        font-weight: 500;
        color: var(--text-color);
    }

    .price-info .value {
        font-size: 20px;
        font-weight: 700;
        color: var(--brand-primary-color);
    }

    .price-info .value small {
        font-size: 12px;
        font-weight: 400;
        color: var(--text-muted);
        margin-left: 3px;
    }

    .price-breakdown {
        display: flex;
        gap: 12px;
        margin-top: 8px;
        padding-top: 8px;
        border-top: 1px dashed var(--border-color);
        flex-wrap: wrap;
    }

    .price-breakdown-item {
        flex: 1;
        text-align: center;
        min-width: 60px;
    }

    .price-breakdown-item .label {
        font-size: 11px;
        color: var(--text-muted);
        margin-bottom: 2px;
    }

    .price-breakdown-item .value {
        font-size: 13px;
        font-weight: 600;
        color: var(--text-color);
    }

    .price-breakdown-item .value.sale {
        color: var(--success-color);
    }

    .price-original {
        text-decoration: line-through;
        color: var(--text-muted);
        font-size: 12px;
        margin-right: 6px;
    }

    /* Fix cho button bị che */
    button, .single_add_to_cart_button, .sApkZm, .variation-option {
        overflow: visible !important;
    }

    /* ===== MOBILE OPTIMIZED STYLES ===== */
    @media (max-width: 768px) {
        body {
            padding: 12px;
            font-size: 13px;
        }
        
        .Dagtcd {
            font-size: 14px !important;
            margin-bottom: 10px;
        }
        
        .variation-option, .sApkZm {
            min-height: 2.2rem !important;
            padding: 0.4rem 0.5rem !important;
            font-size: 12px !important;
            border-radius: 5px !important;
            gap: 4px;
        }
        
        .option-image img {
            height: 18px !important;
        }
        
        .color-swatch {
            width: 22px !important;
            height: 22px !important;
        }
        
        .option-name, .ZivAAW {
            font-size: 12px !important;
        }
        
        .selected-badge, .NkXHv4 {
            width: 16px !important;
            height: 16px !important;
            top: -5px !important;
            right: -5px !important;
        }
        
        .selected-badge::before {
            font-size: 8px !important;
        }
        
        .QX2JQy {
            width: 8px !important;
            height: 8px !important;
        }
        
        .variation-options, .j7HL5Q {
            gap: 8px !important;
            padding: 2px 0 2px 2px;
        }
        
        .quantity.buttons_added {
            height: 40px;
        }
        
        .quantity .minus, .quantity .plus {
            width: 40px !important;
            height: 40px !important;
            font-size: 18px !important;
        }
        
        #quantity_62acbb3aab6dd {
            height: 40px !important;
            font-size: 14px !important;
            width: calc(100% - 80px);
        }
        
        .single_add_to_cart_button {
            height: 40px !important;
            font-size: 13px !important;
            border-radius: 5px;
        }
        
        .price-info .value {
            font-size: 18px;
        }
        
        .price-breakdown-item .value {
            font-size: 12px;
        }
        
        #add-to-cart-btn span, #buy-now-btn span {
            font-size: 12px;
        }
    }

    @media (max-width: 480px) {
        body {
            padding: 10px;
            font-size: 12px;
        }
        
        .Dagtcd {
            font-size: 13px !important;
            margin-bottom: 8px;
        }
        
        .variation-option, .sApkZm {
            min-height: 2rem !important;
            padding: 0.35rem 0.4rem !important;
            font-size: 11px !important;
        }
        
        .option-image img {
            height: 16px !important;
        }
        
        .color-swatch {
            width: 20px !important;
            height: 20px !important;
        }
        
        .option-name, .ZivAAW {
            font-size: 11px !important;
        }
        
        .selected-badge, .NkXHv4 {
            width: 14px !important;
            height: 14px !important;
            top: -4px !important;
            right: -4px !important;
        }
        
        .selected-badge::before {
            font-size: 7px !important;
        }
        
        .QX2JQy {
            width: 7px !important;
            height: 7px !important;
        }
        
        .cart-row {
            gap: 8px;
            margin-bottom: 8px;
        }
        
        .quantity-wrapper {
            flex: 0 0 42%;
            max-width: 42%;
        }
        
        .add-to-cart-wrapper {
            flex: 0 0 calc(58% - 8px);
            max-width: calc(58% - 8px);
        }
        
        .quantity.buttons_added {
            height: 38px;
        }
        
        .quantity .minus, .quantity .plus {
            width: 38px !important;
            height: 38px !important;
            font-size: 16px !important;
        }
        
        #quantity_62acbb3aab6dd {
            height: 38px !important;
            font-size: 13px !important;
            width: calc(100% - 76px);
        }
        
        .single_add_to_cart_button {
            height: 38px !important;
            font-size: 12px !important;
            padding: 0 10px;
        }
        
        .price-display-section {
            padding: 8px;
            margin: 8px 0;
        }
        
        .price-info .label {
            font-size: 12px;
        }
        
        .price-info .value {
            font-size: 16px;
        }
        
        .price-info .value small {
            font-size: 10px;
        }
        
        .price-breakdown {
            gap: 8px;
            margin-top: 6px;
            padding-top: 6px;
        }
        
        .price-breakdown-item .label {
            font-size: 9px;
        }
        
        .price-breakdown-item .value {
            font-size: 11px;
        }
        
        #add-to-cart-btn span, #buy-now-btn span {
            font-size: 11px;
        }
        
        .single_add_to_cart_button {
            white-space: normal;
            word-break: keep-all;
        }
        
        .variation-options, .j7HL5Q {
            padding: 1px 0 1px 1px;
        }
    }

    @media (max-width: 360px) {
        body {
            padding: 8px;
        }
        
        .Dagtcd {
            font-size: 12px !important;
        }
        
        .variation-option, .sApkZm {
            min-height: 1.8rem !important;
            padding: 0.3rem 0.3rem !important;
            font-size: 10px !important;
        }
        
        .option-image img {
            height: 14px !important;
        }
        
        .color-swatch {
            width: 18px !important;
            height: 18px !important;
        }
        
        .option-name, .ZivAAW {
            font-size: 10px !important;
        }
        
        .selected-badge, .NkXHv4 {
            width: 12px !important;
            height: 12px !important;
            top: -3px !important;
            right: -3px !important;
        }
        
        .selected-badge::before {
            font-size: 6px !important;
        }
        
        .quantity-wrapper {
            flex: 0 0 40%;
            max-width: 40%;
        }
        
        .add-to-cart-wrapper {
            flex: 0 0 calc(60% - 8px);
            max-width: calc(60% - 8px);
        }
        
        .quantity.buttons_added {
            height: 36px;
        }
        
        .quantity .minus, .quantity .plus {
            width: 36px !important;
            height: 36px !important;
            font-size: 15px !important;
        }
        
        #quantity_62acbb3aab6dd {
            height: 36px !important;
            font-size: 12px !important;
            width: calc(100% - 72px);
        }
        
        .single_add_to_cart_button {
            height: 36px !important;
            font-size: 11px !important;
            padding: 0 8px;
        }
        
        .price-info .value {
            font-size: 15px;
        }
        
        .price-breakdown-item .value {
            font-size: 10px;
        }
        
        #add-to-cart-btn span, #buy-now-btn span {
            font-size: 10px;
        }
        
        .single_add_to_cart_button {
            white-space: normal;
            word-break: break-word;
            line-height: 1.2;
        }
        
        .variation-options, .j7HL5Q {
            gap: 6px !important;
        }
    }

    /* ===== UTILITY CLASSES ===== */
    .hidden {
        display: none !important;
    }
    
    .text-center {
        text-align: center;
    }
    
    .text-right {
        text-align: right;
    }
    
    .text-left {
        text-align: left;
    }
