.cod-product-section {
    max-width: 1100px;
    margin: 20px auto;
    padding: 0;
    font-family: 'Cairo', 'Tahoma', sans-serif;
    direction: rtl;
    text-align: right;
}
.cod-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
@media (min-width: 960px) {
    .cod-layout {
        flex-direction: row;
        align-items: flex-start;
    }
    .cod-product-gallery {
        order: 1;
    }
    .cod-product-info-wrapper {
        order: 2;
    }
}
.cod-product-gallery {
    flex: 1;
}
.cod-product-info-wrapper {
    flex: 1;
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Mobile Product Info - Show above gallery on mobile */
.cod-product-info-mobile {
    display: block;
    background: #fff;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

/* Desktop Product Info - Show in wrapper on desktop */
.cod-product-info-desktop {
    display: none;
}

@media (min-width: 960px) {
    .cod-product-info-mobile {
        display: none;
    }
    .cod-product-info-desktop {
        display: block;
    }
}
.cod-product-gallery {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: center;
}
.cod-gallery-main-image {
    width: 95%;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 25px 40px rgba(0, 0, 0, 0.18);
}
.cod-gallery-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}
.cod-gallery-thumb {
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 4px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}
.cod-gallery-thumb.active,
.cod-gallery-thumb:hover {
    border-color: #f05b74;
    box-shadow: 0 10px 20px rgba(240, 91, 116, 0.2);
}
.cod-gallery-thumb img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}
.cod-product-info {
    margin-bottom: 20px;
}
.cod-badge {
    display: inline-block;
    background: #ffe4aa;
    color: #b37500;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 14px;
    margin-bottom: 12px;
    font-weight: 700;
}
.cod-product-info h2 {
    color: #1d1d1d;
    font-size: 30px;
    margin-bottom: 6px;
    line-height: 1.3;
}
.cod-product-info p {
    color: #6c6a72;
    font-size: 16px;
    margin: 0 0 18px;
}

.cod-custom-print-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: linear-gradient(135deg, #fff5f7, #ffe8ec);
    border: 2px solid #ffc9d4;
    border-radius: 16px;
    padding: 18px 20px;
    margin-top: 16px;
    font-size: 15px;
    color: #2c3e50;
    box-shadow: 0 4px 12px rgba(228, 64, 95, 0.1);
}

.cod-custom-print-icon {
    font-size: 28px;
    flex-shrink: 0;
    animation: codRotate 3s ease-in-out infinite;
}

@keyframes codRotate {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

.cod-custom-print-text {
    line-height: 1.6;
}

.cod-custom-print-text strong {
    display: block;
    margin-bottom: 6px;
    font-size: 16px;
    color: #1a1a1a;
}

.cod-contact-link {
    color: #e4405f;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(90deg, #e4405f, #d6264f);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cod-contact-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}
.cod-price-summary {
    margin: 18px 0 14px;
    padding: 16px 20px;
    background: #f4f7f0;
    border-radius: 14px;
    border: 1px solid #dfe9d6;
}
.cod-price-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 6px;
    color: #3f4b3a;
}
.cod-price-row strong {
    font-size: 20px;
    color: #1f7a44;
}
.cod-promo-discount {
    border-top: 1px dashed #c8d5c0;
    padding-top: 6px;
}
.cod-promo-discount strong {
    color: #e74c3c;
}
.cod-price-row-total {
    border-top: 2px solid #dfe9d6;
    padding-top: 10px;
    margin-top: 6px;
}
.cod-price-row-total strong {
    font-size: 24px;
    font-weight: 800;
}
.cod-price-summary small {
    display: block;
    margin-top: 8px;
    color: #7a8a72;
    font-size: 13px;
    text-align: center;
}
.cod-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}
.cod-benefits li {
    margin-bottom: 10px;
    padding-right: 24px;
    position: relative;
    color: #3a3a3a;
    font-size: 15px;
}
.cod-benefits li::before {
    content: "✓";
    position: absolute;
    right: 0;
    color: #1f7a44;
    font-weight: bold;
}
.cod-order-form {
    background: #fefefe;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid #f0f0f5;
}
.cod-order-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c2c2c;
    font-size: 15px;
}
.cod-order-form input,
.cod-order-form select,
.cod-order-form textarea {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 16px;
    border: 1px solid #dcdfe8;
    border-radius: 10px;
    font-size: 15px;
    box-sizing: border-box;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.cod-order-form input:focus,
.cod-order-form select:focus,
.cod-order-form textarea:focus {
    border-color: #f05b74;
    box-shadow: 0 0 0 3px rgba(240, 91, 116, 0.1);
    outline: none;
}
.cod-order-form textarea {
    min-height: 90px;
    resize: vertical;
}
.cod-promo-section {
    margin-bottom: 20px;
}
.cod-promo-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c2c2c;
    font-size: 15px;
}
.cod-promo-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 6px;
    align-items: stretch;
}
.cod-promo-input {
    flex: 1;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid #dcdfe8;
    border-radius: 10px;
    font-size: 15px;
    text-transform: uppercase;
}
.cod-promo-input:disabled {
    background: #f5f5f5;
    color: #888;
}
.cod-promo-apply-btn {
    flex: 0 0 90px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s;
    white-space: nowrap;
}
.cod-promo-apply-btn:hover {
    opacity: 0.9;
}
.cod-promo-remove {
    background: linear-gradient(135deg, #f44336, #e53935);
}
.cod-promo-message {
    display: block;
    font-size: 13px;
    margin-top: 4px;
}
.cod-promo-success {
    color: #2e7d32;
}
.cod-promo-error {
    color: #c62828;
}
.cod-quantity-control {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #f6f7fb;
    border-radius: 999px;
    margin-bottom: 14px;
}
.cod-quantity-control input[name="quantity"] {
    display: none;
}
.cod-qty-value {
    min-width: 36px;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: #1d1d1d;
}
.cod-qty-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #fff;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    box-shadow: inset 0 0 0 1px #e0e5f2;
    display: flex;
    justify-content: center;
    align-items: center;
}
.cod-qty-btn:hover {
    background: #f1f3ff;
}
.cod-qty-btn:active {
    transform: scale(0.95);
}
.cod-attribute-group {
    margin-bottom: 18px;
}
.cod-delivery-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 18px;
}
@media (min-width: 520px) {
    .cod-delivery-options {
        flex-direction: row;
    }
}
.cod-delivery-chip {
    flex: 1;
    border: none;
    padding: 0;
}
.cod-delivery-chip input {
    display: none;
}
.cod-delivery-chip-body {
    border: 1px solid #d7d9e3;
    border-radius: 12px;
    padding: 14px 16px;
    background: #fff;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.cod-delivery-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: #f6f7fb;
    color: #444;
}
.cod-delivery-label {
    font-weight: 700;
    color: #2c2c2c;
    font-size: 15px;
}
.cod-delivery-chip input:checked + .cod-delivery-chip-body {
    border-color: #ff7b54;
    box-shadow: 0 0 0 3px rgba(255, 123, 84, 0.15);
}
.cod-attribute-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c2c2c;
}
.cod-attribute-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.cod-attribute-group input[type="radio"] {
    display: none;
}
.cod-attribute-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid #d7d9e3;
    background: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 64px;
    text-align: center;
}
.cod-attribute-group input[type="radio"]:checked + .cod-attribute-chip {
    border-color: #ff7b54;
    background: rgba(255, 123, 84, 0.08);
    color: #b63a1f;
    box-shadow: 0 5px 12px rgba(255, 123, 84, 0.18);
}
.cod-color-chip {
    width: 42px;
    height: 42px;
    padding: 3px;
    border-radius: 50%;
    border: none;
    background: transparent;
    min-width: auto;
}
.cod-attribute-group input[type="radio"]:checked + .cod-color-chip {
    border: none;
    background: transparent;
    box-shadow: 0 0 0 3px rgba(255, 123, 84, 0.35);
}
.cod-color-dot {
    display: inline-block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.08);
}
.cod-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.cod-order-form button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #ff7b54, #ff4155);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
}
.cod-order-form button:hover {
    opacity: 0.9;
}
.cod-order-form button:active {
    transform: translateY(1px);
}
.cod-order-form button:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.8;
}
.cod-loading {
    text-align: center;
    color: #777;
    margin-top: 12px;
    font-size: 14px;
}

.cod-notification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    animation: codFadeIn 0.2s ease;
}

@keyframes codFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes codSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cod-notification-box {
    background: #fff;
    border-radius: 18px;
    padding: 32px 28px;
    max-width: 440px;
    width: 90%;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    text-align: center;
    animation: codSlideUp 0.3s ease;
    direction: rtl;
}

.cod-notification-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
}

.cod-notification-success .cod-notification-icon {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
}

.cod-notification-error .cod-notification-icon {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
}

.cod-notification-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1d1d1d;
}

.cod-notification-message {
    font-size: 16px;
    color: #555;
    margin-bottom: 24px;
    line-height: 1.6;
}

.cod-notification-button {
    background: linear-gradient(135deg, #ff7b54, #ff4155);
    color: #fff;
    border: none;
    padding: 12px 32px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s;
}

.cod-notification-button:hover {
    opacity: 0.9;
}

/* Floating Order Button */
.cod-floating-order-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: linear-gradient(135deg, #ff7b54, #ff4155);
    color: #fff;
    border: none;
    padding: 16px 24px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(255, 65, 85, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    animation: codPulse 2s infinite;
    max-width: 400px;
    margin: 0 auto;
}

.cod-floating-order-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(255, 65, 85, 0.5);
}

.cod-floating-order-btn:active {
    transform: translateY(0);
}

.cod-floating-btn-text {
    font-size: 18px;
}

.cod-floating-btn-icon {
    font-size: 20px;
}

@keyframes codPulse {
    0%, 100% {
        box-shadow: 0 8px 24px rgba(255, 65, 85, 0.4);
    }
    50% {
        box-shadow: 0 8px 32px rgba(255, 65, 85, 0.6);
    }
}

@media (min-width: 960px) {
    .cod-floating-order-btn {
        left: 50%;
        transform: translateX(-50%);
        right: auto;
    }
    
    .cod-floating-order-btn:hover {
        transform: translateX(-50%) translateY(-2px);
    }
    
    .cod-floating-order-btn:active {
        transform: translateX(-50%) translateY(0);
    }
}
