/* Tight Product Layout - Optimized for Space */

/* Container - Tight Variant (wider than standard .container) */
/* Note: Standard .container is 1200px in styles.css, this is 1280px for product pages */
.container-tight {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Product Page */
.product-page {
    background: var(--pure-white);
    padding-top: 100px;
    min-height: 100vh;
}

/* Compact Breadcrumb */
.breadcrumb-compact {
    background: var(--soft-white);
    padding: 12px 0;
    font-size: 13px;
    color: var(--grey-medium);
    border-bottom: 1px solid rgba(201, 169, 97, 0.1);
}

.breadcrumb-compact a {
    color: var(--grey-medium);
    transition: color 0.3s ease;
}

.breadcrumb-compact a:hover {
    color: var(--primary-gold);
}

.breadcrumb-compact span {
    margin: 0 8px;
    color: var(--grey-light);
}

/* Product Grid - Tight Layout */
.product-grid-tight {
    display: grid;
    grid-template-columns: 500px 1fr;
    gap: 40px;
    padding: 40px 0;
    align-items: start;
}

/* Product Gallery */
.product-gallery {
    position: -webkit-sticky; /* Safari < 13 */
    position: sticky;
    top: 120px;
}

.main-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%; /* Fallback for aspect-ratio */
    aspect-ratio: 1 / 1;
    background: var(--soft-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 12px;
}

.main-product-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* For browsers that support aspect-ratio, remove padding */
@supports (aspect-ratio: 1 / 1) {
    .main-img-wrapper {
        padding-top: 0;
    }
    .main-product-img {
        position: static;
    }
}

.main-img-wrapper:hover .main-product-img {
    transform: scale(1.05);
}

.badge-cert {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, var(--primary-gold), var(--dark-gold));
    color: var(--deep-black);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(201, 169, 97, 0.4);
    z-index: 2;
}

/* Thumbnail Row */
.thumbnail-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.thumb {
    width: 100%;
    height: 0;
    padding-top: 100%; /* Fallback for aspect-ratio */
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    background: var(--soft-white);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* For browsers that support aspect-ratio */
@supports (aspect-ratio: 1 / 1) {
    .thumb {
        height: auto;
        padding-top: 0;
    }
}

.thumb:hover,
.thumb.active {
    border-color: var(--primary-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201, 169, 97, 0.3);
}

/* Product Info Compact */
.product-info-compact {
    padding: 0;
}

.product-name {
    font-family: var(--font-primary);
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--deep-black);
    margin-bottom: 16px;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--deep-black) 0%, var(--primary-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-intro {
    font-size: 15px;
    line-height: 1.6;
    color: var(--grey-dark);
    margin-bottom: 24px;
}

/* Quick Specs Grid */
.specs-quick {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 28px;
    padding: 20px;
    background: var(--soft-white);
    border-radius: 10px;
    border: 1px solid rgba(201, 169, 97, 0.1);
}

.spec-box {
    padding: 12px;
    background: var(--pure-white);
    border-radius: 8px;
    border-left: 3px solid var(--primary-gold);
}

.spec-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--grey-medium);
    font-weight: 600;
    margin-bottom: 4px;
}

.spec-val {
    font-size: 14px;
    font-weight: 700;
    color: var(--deep-black);
}

/* Features Compact */
.features-compact {
    margin-bottom: 28px;
    padding: 20px;
    background: var(--soft-white);
    border-radius: 10px;
    border: 1px solid rgba(201, 169, 97, 0.1);
}

.features-compact h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--deep-black);
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.features-compact ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-compact li {
    padding: 10px 0 10px 24px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--grey-dark);
    position: relative;
    border-bottom: 1px solid rgba(201, 169, 97, 0.08);
}

.features-compact li:last-child {
    border-bottom: none;
}

.features-compact li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-gold);
    font-weight: 700;
    font-size: 16px;
}

/* Full Width Sizes & CTA Section */
.sizes-cta-fullwidth {
    margin: 40px 0;
    padding: 40px;
    background: linear-gradient(145deg, #fdfcfa 0%, #f8f6f2 50%, #fdfcfa 100%);
    border-radius: 20px;
    border: 1px solid rgba(201, 169, 97, 0.2);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.sizes-fullwidth h3 {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--deep-black);
    text-align: center;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.sizes-subtitle {
    text-align: center;
    font-size: 15px;
    color: var(--grey-medium);
    margin-bottom: 32px;
    font-weight: 400;
}

.size-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
    justify-content: center;
}

/* All cards in one row on large desktops */
@media (min-width: 1200px) {
    .size-cards {
        display: flex;
        flex-wrap: nowrap;
        justify-content: center;
        gap: 16px;
    }

    .size-cards .size-card {
        flex: 0 1 200px;
        min-width: 0;
    }
}

.size-card {
    background: var(--pure-white);
    border-radius: 16px;
    padding: 28px 20px;
    text-align: center;
    border: 2px solid rgba(201, 169, 97, 0.12);
    transition: all 0.35s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.size-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-gold), var(--dark-gold));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.size-card:hover {
    border-color: var(--primary-gold);
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(201, 169, 97, 0.25);
}

.size-card:hover::before {
    opacity: 1;
}

.size-card > i {
    font-size: 2.5rem;
    color: var(--primary-gold);
    margin-bottom: 16px;
    display: block;
    opacity: 0.85;
    transition: all 0.3s ease;
}

.size-card:hover > i {
    opacity: 1;
    transform: scale(1.1);
}

.size-card .size-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--deep-black);
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

.size-card .size-dimensions {
    font-size: 14px;
    color: var(--grey-medium);
    margin-bottom: 16px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.size-price-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.size-card .size-price {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary-gold);
    letter-spacing: -0.5px;
}

.size-card .size-unit {
    font-size: 12px;
    color: var(--grey-medium);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* Popular Card */
.size-card-popular {
    border-color: var(--primary-gold);
    background: linear-gradient(145deg, #fffdf8 0%, var(--pure-white) 100%);
    box-shadow: 0 4px 20px rgba(201, 169, 97, 0.15);
}

.size-card-popular::before {
    opacity: 1;
}

.popular-badge {
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(201, 169, 97, 0.85);
    color: var(--deep-black);
    font-size: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 0 0 6px 6px;
}

/* Custom Card */
.size-card-custom {
    border-style: dashed;
    border-color: rgba(201, 169, 97, 0.4);
}

.size-card-custom:hover {
    border-style: solid;
}

.size-card .size-price-quote {
    font-size: 16px;
    font-weight: 700;
    color: var(--pure-white);
    background: linear-gradient(135deg, var(--primary-gold), var(--dark-gold));
    padding: 10px 24px;
    border-radius: 25px;
    display: inline-block;
    transition: all 0.3s ease;
}

.size-card:hover .size-price-quote {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(201, 169, 97, 0.4);
}

/* Full Width CTA Buttons */
.cta-fullwidth {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.btn-primary-large,
.btn-secondary-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-decoration: none;
    transition: all 0.35s ease;
    cursor: pointer;
    min-width: 260px;
}

.btn-primary-large {
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--dark-gold) 100%);
    color: var(--deep-black);
    border: none;
    box-shadow: 0 4px 16px rgba(201, 169, 97, 0.35);
}

.btn-primary-large:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 28px rgba(201, 169, 97, 0.5);
}

.btn-secondary-large {
    background: var(--pure-white);
    color: var(--deep-black);
    border: 2px solid rgba(201, 169, 97, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.btn-secondary-large:hover {
    border-color: var(--primary-gold);
    color: var(--primary-gold);
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(201, 169, 97, 0.2);
}

.btn-primary-large i,
.btn-secondary-large i {
    font-size: 18px;
}

/* Trust Badges */
.cta-trust {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    padding-top: 24px;
    border-top: 1px solid rgba(201, 169, 97, 0.15);
}

.cta-trust > span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--grey-dark);
    font-weight: 500;
}

.cta-trust i {
    font-size: 18px;
    color: var(--primary-gold);
}

/* Button Group Compact */
.btn-group-compact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.btn-primary-compact,
.btn-secondary-compact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary-compact {
    background: linear-gradient(135deg, var(--primary-gold), var(--dark-gold));
    color: var(--deep-black);
    border: 2px solid var(--primary-gold);
}

.btn-primary-compact:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 169, 97, 0.4);
}

.btn-secondary-compact {
    background: transparent;
    color: var(--primary-gold);
    border: 2px solid var(--primary-gold);
}

.btn-secondary-compact:hover {
    background: var(--primary-gold);
    color: var(--deep-black);
    transform: translateY(-2px);
}

.btn-primary-compact i,
.btn-secondary-compact i {
    font-size: 16px;
}

/* Advantages Section */
.advantages-section {
    margin: 60px 0 40px;
    padding: 40px;
    background: linear-gradient(135deg, var(--soft-white) 0%, rgba(249, 249, 249, 0.5) 100%);
    border-radius: 12px;
    border: 1px solid rgba(201, 169, 97, 0.1);
}

.advantages-section h2 {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--deep-black);
    text-align: center;
    margin-bottom: 32px;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.adv-card {
    text-align: center;
    padding: 24px 20px;
    background: var(--pure-white);
    border-radius: 10px;
    border: 1px solid rgba(201, 169, 97, 0.1);
    transition: all 0.3s ease;
}

.adv-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    border-color: var(--primary-gold);
}

.adv-card i {
    font-size: 2.5rem;
    color: var(--primary-gold);
    margin-bottom: 12px;
}

.adv-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--deep-black);
    margin-bottom: 8px;
}

.adv-card p {
    font-size: 13px;
    color: var(--grey-dark);
    line-height: 1.5;
}

/* Applications Section */
.applications-section {
    margin: 40px 0 60px;
}

.applications-section h2 {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--deep-black);
    text-align: center;
    margin-bottom: 32px;
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.app-item {
    text-align: center;
    padding: 24px 16px;
    background: var(--soft-white);
    border-radius: 10px;
    border: 1px solid rgba(201, 169, 97, 0.1);
    transition: all 0.3s ease;
}

.app-item:hover {
    background: var(--pure-white);
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    border-color: var(--primary-gold);
}

.app-item i {
    font-size: 2.2rem;
    color: var(--primary-gold);
    margin-bottom: 12px;
}

.app-item h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--deep-black);
    margin-bottom: 6px;
}

.app-item p {
    font-size: 13px;
    color: var(--grey-medium);
    line-height: 1.4;
}

/* Tablet Responsive */
@media (max-width: 1024px) {
    .container-tight {
        padding: 0 20px;
    }

    .product-grid-tight {
        grid-template-columns: 400px 1fr;
        gap: 32px;
        padding: 32px 0;
    }

    .product-gallery {
        top: 100px;
    }

    .size-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .sizes-cta-fullwidth {
        padding: 32px 24px;
        margin: 32px 0;
    }

    .sizes-fullwidth h3 {
        font-size: 1.5rem;
    }

    .sizes-subtitle {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .size-card {
        padding: 24px 16px;
    }

    .size-card > i {
        font-size: 2rem;
    }

    .cta-fullwidth {
        gap: 16px;
    }

    .btn-primary-large,
    .btn-secondary-large {
        min-width: 220px;
        padding: 16px 32px;
    }

    .cta-trust {
        gap: 24px;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .app-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .advantages-section {
        padding: 32px 24px;
        margin: 40px 0 32px;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .product-page {
        padding-top: 90px;
    }

    .container-tight {
        padding: 0 16px;
    }

    .product-grid-tight {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 24px 0;
    }

    .product-gallery {
        position: static;
    }

    .main-img-wrapper {
        margin-bottom: 10px;
    }

    .thumbnail-row {
        gap: 8px;
    }

    .product-name {
        font-size: 1.8rem;
        margin-bottom: 12px;
    }

    .product-intro {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .specs-quick {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 16px;
        margin-bottom: 20px;
    }

    .features-compact {
        padding: 16px;
        margin-bottom: 20px;
    }

    .features-compact h3 {
        font-size: 15px;
        margin-bottom: 12px;
    }

    .features-compact li {
        font-size: 13px;
        padding: 8px 0 8px 22px;
    }

    .btn-group-compact {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .sizes-cta-fullwidth {
        padding: 24px 16px;
        margin: 24px 0;
        border-radius: 16px;
    }

    .sizes-fullwidth h3 {
        font-size: 1.3rem;
        margin-bottom: 6px;
    }

    .sizes-subtitle {
        font-size: 13px;
        margin-bottom: 20px;
    }

    .size-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-bottom: 28px;
    }

    .size-card {
        padding: 20px 14px;
        border-radius: 12px;
    }

    .size-card > i {
        font-size: 1.8rem;
        margin-bottom: 12px;
    }

    .size-card .size-name {
        font-size: 14px;
    }

    .size-card .size-dimensions {
        font-size: 12px;
        margin-bottom: 12px;
    }

    .size-card .size-price {
        font-size: 18px;
    }

    .size-card .size-unit {
        font-size: 10px;
    }

    .popular-badge {
        font-size: 7px;
        padding: 3px 8px;
    }

    .size-card .size-price-quote {
        font-size: 13px;
        padding: 8px 18px;
    }

    .cta-fullwidth {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        margin-bottom: 24px;
    }

    .btn-primary-large,
    .btn-secondary-large {
        width: 100%;
        max-width: 320px;
        padding: 16px 28px;
        font-size: 14px;
        border-radius: 12px;
    }

    .cta-trust {
        gap: 16px;
        padding-top: 20px;
    }

    .cta-trust > span {
        font-size: 12px;
    }

    .cta-trust i {
        font-size: 16px;
    }

    .advantages-section {
        padding: 24px 16px;
        margin: 32px 0 24px;
    }

    .advantages-section h2 {
        font-size: 1.5rem;
        margin-bottom: 24px;
    }

    .advantages-grid {
        gap: 16px;
    }

    .adv-card {
        padding: 20px 16px;
    }

    .adv-card i {
        font-size: 2rem;
    }

    .applications-section {
        margin: 32px 0 40px;
    }

    .applications-section h2 {
        font-size: 1.5rem;
        margin-bottom: 24px;
    }

    .app-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .app-item {
        padding: 20px 16px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .container-tight {
        padding: 0 12px;
    }

    .product-page {
        padding-top: 85px;
    }

    .breadcrumb-compact {
        font-size: 12px;
        padding: 10px 0;
    }

    .breadcrumb-compact span {
        margin: 0 6px;
    }

    .product-grid-tight {
        padding: 20px 0;
        gap: 20px;
    }

    .product-name {
        font-size: 1.6rem;
    }

    .product-intro {
        font-size: 13px;
    }

    .specs-quick {
        padding: 14px;
    }

    .spec-box {
        padding: 10px;
    }

    .spec-label {
        font-size: 10px;
    }

    .spec-val {
        font-size: 13px;
    }

    .features-compact {
        padding: 14px;
    }

    .features-compact h3 {
        font-size: 14px;
    }

    .features-compact li {
        font-size: 12px;
        padding: 7px 0 7px 20px;
    }

    .btn-primary-compact,
    .btn-secondary-compact {
        padding: 12px 16px;
        font-size: 12px;
    }

    .sizes-cta-fullwidth {
        padding: 20px 14px;
        margin: 20px 0;
        border-radius: 14px;
    }

    .sizes-fullwidth h3 {
        font-size: 1.15rem;
        margin-bottom: 4px;
        letter-spacing: 1px;
    }

    .sizes-subtitle {
        font-size: 12px;
        margin-bottom: 16px;
    }

    .size-cards {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-bottom: 24px;
    }

    .size-card {
        padding: 16px 10px;
        border-radius: 10px;
    }

    .size-card::before {
        height: 3px;
    }

    .size-card > i {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

    .size-card .size-name {
        font-size: 12px;
        margin-bottom: 4px;
    }

    .size-card .size-dimensions {
        font-size: 10px;
        margin-bottom: 10px;
    }

    .size-card .size-price {
        font-size: 15px;
    }

    .size-card .size-unit {
        font-size: 9px;
    }

    .popular-badge {
        font-size: 6px;
        padding: 2px 6px;
        letter-spacing: 0.3px;
    }

    .size-card .size-price-quote {
        font-size: 11px;
        padding: 7px 14px;
    }

    .btn-primary-large,
    .btn-secondary-large {
        padding: 14px 24px;
        font-size: 13px;
        letter-spacing: 0.5px;
    }

    .btn-primary-large i,
    .btn-secondary-large i {
        font-size: 16px;
    }

    .cta-trust {
        gap: 12px;
        padding-top: 16px;
    }

    .cta-trust > span {
        font-size: 11px;
        gap: 6px;
    }

    .cta-trust i {
        font-size: 14px;
    }

    .advantages-section {
        padding: 20px 12px;
        margin: 24px 0 20px;
    }

    .advantages-section h2,
    .applications-section h2 {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }

    .adv-card {
        padding: 18px 14px;
    }

    .adv-card i {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }

    .adv-card h4 {
        font-size: 15px;
        margin-bottom: 6px;
    }

    .adv-card p {
        font-size: 12px;
    }

    .app-item {
        padding: 18px 14px;
    }

    .app-item i {
        font-size: 2rem;
    }

    .app-item h4 {
        font-size: 14px;
    }

    .app-item p {
        font-size: 12px;
    }
}

/* Arabic RTL Support */
body.rtl .product-grid-tight {
    direction: rtl;
}

body.rtl .spec-box {
    border-left: none;
    border-right: 3px solid var(--primary-gold);
}

body.rtl .features-compact li {
    padding-left: 0;
    padding-right: 24px;
}

body.rtl .features-compact li::before {
    left: auto;
    right: 0;
}

body.rtl .breadcrumb-compact {
    direction: rtl;
}

body.rtl .product-name,
body.rtl .product-intro,
body.rtl .features-compact h3,
body.rtl .sizes-compact h3,
body.rtl .sizes-fullwidth h3,
body.rtl .advantages-section h2,
body.rtl .applications-section h2 {
    font-family: var(--font-arabic-luxury);
}

body.rtl .size-list li:hover {
    transform: translateX(-4px);
}

body.rtl .sizes-cta-fullwidth {
    direction: rtl;
}

body.rtl .sizes-subtitle,
body.rtl .size-card .size-name,
body.rtl .size-card .size-dimensions,
body.rtl .size-card .size-price,
body.rtl .size-card .size-unit,
body.rtl .popular-badge,
body.rtl .cta-trust span {
    font-family: var(--font-arabic-luxury);
}

/* Order Modal Styles - Wide Two-Column Layout */
.order-modal-content {
    max-width: 880px;
    width: 95%;
    max-height: 90vh;
    padding: 0;
    border-radius: 16px;
    overflow: hidden;
    background: var(--pure-white);
    display: flex;
    flex-direction: column;
}

.order-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 0;
    overflow-y: auto;
    max-height: calc(90vh - 20px);
}

/* Left Column */
.order-col-left {
    padding: 24px;
    background: linear-gradient(145deg, #fdfcfa 0%, #f8f6f2 100%);
    border-right: 1px solid rgba(201, 169, 97, 0.1);
}

/* Right Column */
.order-col-right {
    padding: 24px;
    display: flex;
    flex-direction: column;
}

/* Product Preview */
.order-product-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--pure-white);
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.order-product-preview img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
}

.order-product-info h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--deep-black);
    margin-bottom: 2px;
}

.order-product-info p {
    font-size: 12px;
    color: var(--grey-medium);
}

/* Section Headers */
.order-section {
    margin-bottom: 16px;
}

.order-section h4 {
    font-size: 12px;
    font-weight: 700;
    color: var(--deep-black);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(201, 169, 97, 0.15);
}

/* Size Options - Compact Horizontal List */
.size-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.size-option {
    position: relative;
    cursor: pointer;
}

.size-option input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.size-option-content {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    background: var(--pure-white);
    border: 2px solid rgba(201, 169, 97, 0.12);
    border-radius: 8px;
    transition: all 0.25s ease;
}

.size-option:hover .size-option-content {
    border-color: rgba(201, 169, 97, 0.4);
}

.size-option input:checked + .size-option-content {
    border-color: var(--primary-gold);
    background: linear-gradient(145deg, #fffdf8 0%, var(--pure-white) 100%);
    box-shadow: 0 2px 8px rgba(201, 169, 97, 0.15);
}

.size-option-check {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(201, 169, 97, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.size-option-check i {
    font-size: 10px;
    color: transparent;
    transition: color 0.25s ease;
}

.size-option input:checked + .size-option-content .size-option-check {
    background: var(--primary-gold);
    border-color: var(--primary-gold);
}

.size-option input:checked + .size-option-content .size-option-check i {
    color: var(--deep-black);
}

.size-option-details {
    flex: 1;
    min-width: 0;
}

.size-option-name {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--deep-black);
    margin-bottom: 1px;
}

.size-option-dim {
    font-size: 10px;
    color: var(--grey-medium);
}

.size-option-price {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-gold);
    margin-left: auto;
    white-space: nowrap;
}

.size-option-quote {
    background: linear-gradient(135deg, var(--primary-gold), var(--dark-gold));
    color: var(--deep-black) !important;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 10px;
}

.size-option-custom .size-option-content {
    border-style: dashed;
}

/* Quantity Row */
.order-quantity-row {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(201, 169, 97, 0.1);
}

.order-quantity label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--deep-black);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
}

.quantity-control {
    display: flex;
    align-items: center;
    background: var(--pure-white);
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid rgba(201, 169, 97, 0.15);
    width: fit-content;
}

.qty-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    font-size: 18px;
    font-weight: 600;
    color: var(--grey-dark);
    cursor: pointer;
    transition: all 0.2s ease;
}

.qty-btn:hover {
    background: rgba(201, 169, 97, 0.1);
    color: var(--primary-gold);
}

.quantity-control input {
    width: 50px;
    height: 40px;
    border: none;
    border-left: 1px solid rgba(201, 169, 97, 0.15);
    border-right: 1px solid rgba(201, 169, 97, 0.15);
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: var(--deep-black);
    background: transparent;
}

.quantity-control input:focus {
    outline: none;
}

/* Form Groups */
.order-form-group {
    margin-bottom: 12px;
}

.order-form-group label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--grey-dark);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.order-form input,
.order-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid rgba(201, 169, 97, 0.2);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.25s ease;
    background: var(--soft-white);
}

.order-form input:focus,
.order-form textarea:focus {
    outline: none;
    border-color: var(--primary-gold);
    background: var(--pure-white);
    box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.1);
}

.order-form textarea {
    resize: vertical;
    min-height: 60px;
}

/* Order Summary */
.order-summary {
    background: linear-gradient(145deg, #fdfcfa 0%, #f8f6f2 100%);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 16px;
}

.order-summary h4 {
    font-size: 11px;
    font-weight: 700;
    color: var(--deep-black);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    font-size: 13px;
}

.summary-row span:first-child {
    color: var(--grey-medium);
}

.summary-row span:last-child {
    color: var(--deep-black);
    font-weight: 500;
}

.summary-divider {
    height: 1px;
    background: rgba(201, 169, 97, 0.2);
    margin: 8px 0;
}

.summary-total {
    padding-top: 8px;
}

.summary-total span:first-child {
    font-size: 14px;
    font-weight: 700;
    color: var(--deep-black);
}

.order-total {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-gold) !important;
}

/* Submit Button */
.btn-order-submit {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--dark-gold) 100%);
    color: var(--deep-black);
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(201, 169, 97, 0.3);
}

.btn-order-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201, 169, 97, 0.4);
}

.btn-order-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-order-submit i {
    font-size: 16px;
}

/* Disclaimer */
.order-disclaimer {
    font-size: 10px;
    color: var(--grey-medium);
    text-align: center;
    margin-top: 12px;
    line-height: 1.4;
}

/* Success Message */
.order-success-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    padding: 20px 24px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-weight: 600;
    font-size: 15px;
    animation: fadeIn 0.3s ease;
    grid-column: 1 / -1;
}

.order-success-message i {
    font-size: 28px;
    color: #28a745;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Order Modal Responsive - Tablet */
@media (max-width: 800px) {
    .order-modal-content {
        max-width: 95%;
        max-height: 85vh;
    }

    .order-form {
        grid-template-columns: 1fr;
        max-height: calc(85vh - 20px);
    }

    .order-col-left {
        border-right: none;
        border-bottom: 1px solid rgba(201, 169, 97, 0.1);
        padding: 20px;
    }

    .order-col-right {
        padding: 20px;
    }

    .order-quantity-row {
        margin-top: 12px;
        padding-top: 12px;
    }

    .size-options {
        grid-template-columns: 1fr 1fr;
    }
}

/* Order Modal Responsive - Mobile */
@media (max-width: 500px) {
    .order-modal-content {
        border-radius: 16px 16px 0 0;
        max-height: 90vh;
        margin-top: auto;
    }

    .order-form {
        max-height: calc(90vh - 10px);
    }

    .order-col-left,
    .order-col-right {
        padding: 16px;
    }

    .order-product-preview {
        padding: 10px;
        margin-bottom: 14px;
    }

    .order-product-preview img {
        width: 48px;
        height: 48px;
    }

    .order-product-info h3 {
        font-size: 13px;
    }

    .order-product-info p {
        font-size: 11px;
    }

    .order-section h4 {
        font-size: 11px;
        margin-bottom: 10px;
        padding-bottom: 6px;
    }

    .size-options {
        gap: 6px;
    }

    .size-option-content {
        padding: 8px 10px;
    }

    .size-option-check {
        width: 16px;
        height: 16px;
        margin-right: 8px;
    }

    .size-option-check i {
        font-size: 8px;
    }

    .size-option-name {
        font-size: 11px;
    }

    .size-option-dim {
        font-size: 9px;
    }

    .size-option-price {
        font-size: 11px;
    }

    .order-quantity-row {
        margin-top: 10px;
        padding-top: 10px;
    }

    .order-quantity label {
        font-size: 11px;
        margin-bottom: 6px;
    }

    .quantity-control input {
        width: 44px;
        height: 36px;
        font-size: 14px;
    }

    .qty-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .order-form-group {
        margin-bottom: 10px;
    }

    .order-form-group label {
        font-size: 10px;
        margin-bottom: 4px;
    }

    .order-form input,
    .order-form textarea {
        padding: 10px 12px;
        font-size: 14px;
    }

    .order-form textarea {
        min-height: 50px;
    }

    .order-summary {
        padding: 12px;
        margin-bottom: 12px;
    }

    .order-summary h4 {
        font-size: 10px;
        margin-bottom: 8px;
    }

    .summary-row {
        padding: 4px 0;
        font-size: 12px;
    }

    .order-total {
        font-size: 18px;
    }

    .btn-order-submit {
        padding: 12px 20px;
        font-size: 13px;
    }

    .order-disclaimer {
        font-size: 9px;
        margin-top: 10px;
    }
}

/* RTL Support for Order Modal */
body.rtl .order-modal-content {
    direction: rtl;
}

body.rtl .order-col-left {
    border-right: none;
    border-left: 1px solid rgba(201, 169, 97, 0.1);
}

body.rtl .size-option-check {
    margin-right: 0;
    margin-left: 10px;
}

body.rtl .size-option-price {
    margin-left: 0;
    margin-right: auto;
}

body.rtl .order-product-info h3,
body.rtl .order-product-info p,
body.rtl .order-section h4,
body.rtl .order-form-group label,
body.rtl .size-option-name,
body.rtl .order-form input,
body.rtl .order-form textarea,
body.rtl .order-summary h4,
body.rtl .summary-row,
body.rtl .order-disclaimer {
    font-family: var(--font-arabic-luxury);
}

/* Performance Optimizations */
.main-product-img,
.thumb {
    will-change: transform;
}

.adv-card,
.app-item,
.size-card,
.btn-primary-compact,
.btn-secondary-compact,
.btn-primary-large,
.btn-secondary-large {
    will-change: transform;
}