* {
    text-decoration: none !important;
}
.product-details-container {
    background: #f5f5f5;
    min-height: 100vh;
    padding: 1rem 0;
}

/* ============================================
   Product Content
============================================ */
.product-content {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    margin-bottom: 1.5rem;
}

/* ============================================
   Gallery - Mobile First
============================================ */
.product-gallery-wrapper {
    position: relative;
    background: transparent;
    margin-bottom: 1.5rem;
}

.discount-badge-main {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: #ea7a7a;
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    font-size: 0.8rem;
 font-family: "Poppins", sans-serif;
   font-weight: 300;    z-index: 10;
    box-shadow: 0 2px 6px rgba(234, 122, 122, 0.2);
}

.soldout-badge-main {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: #b0b8c1;
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    font-size: 0.8rem;
 font-family: "Poppins", sans-serif;
   font-weight: 300;    z-index: 10;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.main-image-container {
    position: relative;
    width: 100%;
    padding-bottom: 115%;
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.main-image-container a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.main-image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.main-wishlist-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 10;
}

.wishlist-icon-btn {
    width: 38px;
    height: 38px;
    background: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    color: #999;
}

.wishlist-icon-btn:active {
    transform: scale(0.9);
}

.wishlist-icon-btn.active {
    background: white;
    color: #ea7a7a;
}

.wishlist-icon-btn i {
    font-size: 1rem;
}

.gallery-thumbs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.75rem 0;
    margin-top: 0.75rem;
    scroll-snap-type: x mandatory;
}

.gallery-thumbs::-webkit-scrollbar {
    height: 4px;
}

.gallery-thumbs::-webkit-scrollbar-thumb {
    background: #e0e0e0;
    border-radius: 5px;
}

.thumb-item {
    min-width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid #e0e0e0;
    transition: all 0.3s;
    flex-shrink: 0;
    scroll-snap-align: start;
}

.thumb-item.active {
    border-color: #ea7a7a;
    box-shadow: 0 1px 4px rgba(234, 122, 122, 0.15);
}

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

/* ============================================
   Product Info - Mobile First
============================================ */
.product-info {
    padding-left: 0;
}

.stock-badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: #fff0f1;
    color: #d97a7a;
    border-radius: 6px;
    font-size: 0.8rem;
 font-family: "Poppins", sans-serif;
   font-weight: 300;    margin-bottom: 1rem;
}

.stock-badge.out-stock {
    background: #ffe0e0;
    color: #c85a5a;
}

.price-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.current-price {
    font-size: 1.1rem;
 font-family: "Poppins", sans-serif;
   font-weight: 500;
   color: #2a2a2a;
}

.old-price {
    font-size: 0.95rem;
    color: #999;
    text-decoration: line-through;
     font-family: "Poppins", sans-serif;
   font-weight: 300;
}

.current-pricee {
    font-size: 1.8rem;
 font-family: "Poppins", sans-serif;
   font-weight: 300; 
   color: #2a2a2a;
}

.old-pricee {
    font-size: 1.3rem;
    color: #999;
    text-decoration: line-through;
 font-family: "Poppins", sans-serif;
   font-weight: 300;}

.discount-badge {
    background: #ea7a7a;
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
 font-family: "Poppins", sans-serif;
   font-weight: 500;}

.product-desc {
    color: #666;
    line-height: 1.6;
    margin: 1.25rem 0;
    font-size: 0.9rem;
}

/* ============================================
   Product Options - Mobile Optimized
============================================ */
.product-options-form {
    width: 100%;
}

.option-group {
    margin-bottom: 1.5rem;
}

.option-label {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
 font-family: "Poppins", sans-serif;
   font-weight: 300;    color: #333;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.option-label i {
    color: #ea7a7a;
    margin-right: 0.5rem;
    font-size: 0.95rem;
}

.option-label .required {
    color: #ea7a7a;
    margin-left: 0.25rem;
    font-size: 1rem;
}

.single-size-display {
    display: flex;
    gap: 0.5rem;
}

.size-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1.2rem;
    border-color: white;
    color: #dc3545;
    border: 2px solid #dc3545;
    border-radius: 8px;
 font-family: "Poppins", sans-serif;
   font-weight: 300;    font-size: 0.95rem;
    box-shadow: 0 2px 6px rgba(234, 122, 122, 0.15);
}

.size-chip i {
    font-size: 0.85rem;
    margin-left: 0.5rem;
}

.size-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

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

.size-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.size-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.4rem;
    background: #f5f5f5;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
 font-family: "Poppins", sans-serif;
   font-weight: 300;    font-size: 0.95rem;
    color: #666;
    transition: all 0.3s ease;
    min-width: 70px;
    text-align: center;
    touch-action: manipulation;
}

.size-option input[type="radio"]:checked + .size-btn {
    background: #ea7a7a;
    border-color: #ea7a7a;
    color: white;
    box-shadow: 0 2px 6px rgba(234, 122, 122, 0.15);
}

.size-option:active .size-btn {
    transform: scale(0.95);
}

.quantity-selector-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 280px;
    background: #f5f5f5;
    padding: 0.5rem 0.8rem;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    box-shadow: none;
}

.qty-btn-modern {
    width: 38px;
    height: 38px;
    border: 1px solid #e0e0e0;
    background: white;
    color: #666;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    touch-action: manipulation;
    transition: all 0.3s;
}

.qty-btn-modern:active {
    background: #f5f5f5;
    transform: scale(0.95);
}

.qty-input-modern {
    flex: 1;
    max-width: 80px;
    height: 38px;
    text-align: center;
     font-family: "Poppins", sans-serif;
   font-weight: 300;
    font-size: 1.2rem;
    border: none;
    background: transparent;
    border-radius: 6px;
    -moz-appearance: textfield;
}

.qty-input-modern::-webkit-outer-spin-button,
.qty-input-modern::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qty-input-modern:focus {
    outline: none;
}

.multi-size-note {
    background: #fff9e6;
    border: 1px solid #ffe699;
    border-radius: 8px;
    padding: 0.7rem 0.9rem;
    color: #8b6914;
    font-size: 0.8rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 1rem;
     font-family: "Poppins", sans-serif;
   font-weight: 300;
}

.multi-size-note i {
    color: #ffc107;
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 0.05rem;
}

/* ============================================
   Action Buttons - Mobile First
============================================ */
.product-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    margin-top: 1.5rem;
}

.buy-now-btn-modern {
    width: 100%;
    padding: 0.55rem 2.2rem; /* تقليل الطول + زيادة العرض */
    background: white;
    color: #dc3545;
    border-color: #dc3545;
    border-radius: 10px;
    font-family: "Poppins", sans-serif;
   font-weight: 300;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(234, 122, 122, 0.15);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    touch-action: manipulation;
    transition: all 0.3s ease;
}


.buy-now-btn-modern:active {
    transform: scale(0.97);
    box-shadow: 0 1px 4px rgba(234, 122, 122, 0.1);
}

.buy-now-btn-modern i {
    font-size: 1.1rem;
}


@keyframes boltPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.add-cart-btn-modern {
    width: 100%;
    padding: 0.55rem 2.2rem; 
    background: #f0f0f0;
    color: #333;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 0.95rem;
 font-family: "Poppins", sans-serif;
   font-weight: 300;    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    text-decoration: none;
    box-shadow: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    touch-action: manipulation;
    transition: all 0.3s ease;
}

.add-cart-btn-modern:active {
    transform: scale(0.97);
    background: #e8e8e8;
}

.add-cart-btn-modern i {
    font-size: 1rem;
}

.add-cart-btn-modern.in-cart {
    background: #ea7a7a;
    color: white;
    border-color: #ea7a7a;
    box-shadow: 0 2px 8px rgba(234, 122, 122, 0.15);
}

.add-cart-btn-modern.sold-out {
    background: #e8e8e8;
    color: #999;
    opacity: 0.6;
    cursor: not-allowed;
}

.add-cart-btn-modern.loading,
.buy-now-btn-modern.loading {
    pointer-events: none;
    opacity: 0.8;
}

.add-cart-btn-modern.loading .btn-text,
.buy-now-btn-modern.loading .btn-text {
    display: none;
}

.fade-out-hide {
    animation: fadeOutHide 0.4s ease forwards;
}

@keyframes fadeOutHide {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.8);
        display: none;
    }
}

/* ============================================
   Product Meta
============================================ */
.product-meta {
    border-top: 1px solid #f0f0f0;
    padding-top: 1.25rem;
    margin-top: 1.5rem;
}

.meta-row {
    display: flex;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.meta-label {
 font-family: "Poppins", sans-serif;
   font-weight: 300;
   color: #777;
    width: 100px;
}

.meta-value {
    color: #555;
}   

/* ============================================
   Related Products
============================================ */
.related-section {
    margin-top: 1.5rem;
}

.section-header {
    background: white;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    margin-bottom: 1.25rem;
    border-left: 3px solid #ea7a7a;
}

.section-title {
    font-size: 1.15rem;
 font-family: "Poppins", sans-serif;
   font-weight: 300;    color: #333;
    margin: 0;
}

.products-grid {
    margin: 0 -0.3rem;
}

.product-col {
    padding: 0 0.3rem;
    margin-bottom: 0.6rem;
}

.product-item {
    background: transparent;
    transition: transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-item:active {
    transform: scale(0.98);
}

.product-image-container {
    position: relative;
    width: 100%;
    padding-bottom: 125%;
    overflow: hidden;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.product-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.discount-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: #ea7a7a;
    color: white;
    padding: 0.3rem 0.65rem;
    border-radius: 6px;
    font-size: 0.75rem;
 font-family: "Poppins", sans-serif;
   font-weight: 300;    z-index: 2;
    box-shadow: 0 2px 6px rgba(234, 122, 122, 0.2);
}

.wishlist-btn-container {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 2;
}

.wishlist-btn {
    width: 34px;
    height: 34px;
    background: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    color: #999;
    touch-action: manipulation;
}

.wishlist-btn:active {
    transform: scale(0.9);
}

.wishlist-btn.active {
    background: white;
    color: #ea7a7a;
}

.wishlist-btn i {
    font-size: 0.95rem;
}

.cart-btn-container {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    z-index: 2;
    opacity: 1;
    transform: translateY(0);
}

.cart-btn {
    width: 40px;
    height: 40px;
    background: white;
    color: #666;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    touch-action: manipulation;
}

.cart-btn:active {
    transform: scale(0.9);
}

.cart-btn.in-cart {
    background: #ea7a7a;
    color: white;
    border-color: #ea7a7a;
}

.cart-btn.sold-out {
    background: #e8e8e8;
    color: #999;
    cursor: not-allowed;
}

.cart-btn i {
    font-size: 1rem;
}

.product-details {
    padding: 0.6rem 0.2rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.product-title {
    font-size: 0.85rem;
 font-family: "Poppins", sans-serif;
   font-weight: 300;    color: #333;
    margin: 0;
    line-height: 1.4;
    height: 1.6em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

.product-price-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.4rem;
}

.product-current-price {
    font-size: 1.1rem;
 font-family: "Poppins", sans-serif;
   font-weight: 300;    color: #ea7a7a;
}

.product-old-price {
    font-size: 0.85rem;
    color: #bbb;
    text-decoration: line-through;
    text-decoration-thickness: 1px;
}

.product-stock-badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    background: #fff0f1;
    color: #d97a7a;
    border-radius: 4px;
 font-family: "Poppins", sans-serif;
   font-weight: 300;    margin-top: 0.3rem;
    display: inline-block;
}

.product-stock-badge.out-of-stock {
    background: #ffe0e0;
    color: #c85a5a;
}

/* ============================================
   Tablet Styles (≥576px)
============================================ */
@media (min-width: 576px) {
    .product-content {
        padding: 1.5rem;
    }

    .product-action-buttons {
        flex-direction: row;
        gap: 1rem;
    }
}

/* ============================================
   Desktop Styles (≥768px)
============================================ */
@media (min-width: 768px) {
    .product-details-container {
        padding: 1.5rem 0;
    }

    .product-content {
        padding: 2rem;
        margin-bottom: 2rem;
    }

    .product-info {
        padding-left: 2rem;
    }
}

/* ============================================
   Loading Spinner
============================================ */
.spinner-border-sm {
    width: 18px;
    height: 18px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
}

@keyframes spinner-border {
    to { transform: rotate(360deg); }
}

/* ============================================
   Utility Classes
============================================ */
.text-muted {
    color: #999 !important;
}

.text-danger {
    color: #ea7a7a !important;
}

.text-success {
    color: #ea7a7a !important;
}

.fw-bold {
    font-weight: 700 !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.d-none {
    display: none !important;
}

.d-inline-block {
    display: inline-block !important;
}

/* Toast Notifications */
.success-toast,
.error-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    z-index: 9999;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
 font-family: "Poppins", sans-serif;
   font-weight: 300;
   min-width: 250px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.success-toast {
    background: #ea7a7a;
}

.error-toast {
    background: #ea7a7a;
}

.success-toast.show,
.error-toast.show {
    opacity: 1;
    transform: translateX(0);
}

.success-toast i,
.error-toast i {
    font-size: 1.2rem;
}

/* Mobile Toast */
@media (max-width: 767px) {
    .success-toast,
    .error-toast {
        top: auto;
        bottom: 80px;
        right: 1rem;
        left: 1rem;
        min-width: auto;
    }
}

/* Product Header Simple */
.product-header-simple {
    background: white;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
    border-left: 3px solid #ea7a7a;
}

.breadcrumb-simple {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #999;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.breadcrumb-simple a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb-simple a:hover {
    color: #ea7a7a;
}

.breadcrumb-simple span:last-child {
    color: #ea7a7a;
 font-family: "Poppins", sans-serif;
   font-weight: 300;}

.title-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.product-title-simple {
    font-size: 1.8rem;
 font-family: "Poppins", sans-serif;
   font-weight: 300;    color: #333;
    margin: 0;
    flex: 1;
}

.category-simple {
    background: #f5f5f5;
    color: #777;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.85rem;
 font-family: "Poppins", sans-serif;
   font-weight: 300;}

@media (max-width: 767px) {
    .product-header-simple {
        padding: 1rem 1.25rem;
        margin-bottom: 1.25rem;
    }
    
    .product-title-simple {
        font-size: 1.3rem;
    }
}

/* Pulse Animation */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 0.5s ease-in-out;
}

/* Spinner Animation */
.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}