

body {
    color: #333;
    background-color: #f5f5f5;
    line-height: 1.6;
    scroll-behavior: smooth;
    /* Space for fixed header + nav */
}

a {
    text-decoration: none;
    color: inherit;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary);
    color: white;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 0.95rem;
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background-color: var(--secondary);
}

.btn-secondary:hover {
    background-color: #e68900;
}

.btn-large {
    padding: 12px 30px;
    font-size: 1rem;
}

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

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
}


/* Product Page Styles */
.product-page {
    margin: 40px 0 60px;
}

.product-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (max-width: 992px) {
    .product-container {
        grid-template-columns: 1fr;
    }
}

/* Product Image Carousel */
.product-image-section {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.main-image-container {
    position: relative;
    height: 400px;
    overflow: hidden;
    background-color: var(--section-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
    z-index: 5;
}

.carousel-btn {
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--dark);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
}

.carousel-btn:hover {
    background-color: white;
    transform: scale(1.1);
}

.image-thumbnails {
    display: flex;
    padding: 15px;
    gap: 10px;
    overflow-x: auto;
    border-top: 1px solid #eee;
}

.thumbnail {
    width: 70px;
    height: 70px;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    flex-shrink: 0;
}

.thumbnail.active {
    border-color: var(--primary);
}

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

/* share product */

.share-product{
    overflow-x: auto;
}

/* Product Details */
.product-details {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: var(--shadow-light);
    position: relative;
}

.category-breadcrumb {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 10px;
}

.category-breadcrumb a {
    color: var(--primary);
}

.category-breadcrumb a:hover {
    text-decoration: underline;
}

.product-name {
    font-size: 2.2rem;
    color: var(--dark);
    margin-bottom: 15px;
    line-height: 1.2;
}

.product-rating {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.stars {
    color: #ffc107;
    margin-right: 10px;
}

.rating-count {
    color: var(--gray);
    font-size: 0.9rem;
}

.short-description {
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 25px;
    line-height: 1.5;
}

/* pricing wrapper */


.order-pricing-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin: 12px 0;
  }
  
  .order-pricing-card.enabled {
    background-color: rgba(0, 0, 0, 0.04);
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    padding: 14px;
    cursor: pointer;
    transition: border-color 0.5s, background-color 0.5s;
  }
  

  .order-pricing-card.disabled {
    opacity: 0.5;
    filter: blur(1.5px);
    pointer-events: none;
  }

  .order-pricing-card.selected {
    border-color: var(--primary);
    background-color: rgba(37, 99, 235, 0.08);
  }

  
  .shipping-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    margin-bottom: 10px;
  }
  
  .shipping-status i {
    color: var(--primary);
  }
  
  .price-container {
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fff;
    margin-bottom: 8px;
  }
  
  .current-price {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
  }
  
  .original-price {
    font-size: 1.1rem;
    color: var(--gray);
    text-decoration: line-through;
    margin-right: 10px;
  }
  
  .discount-badge {
    background-color: var(--danger);
    color: #fff;
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
    margin-left: 8px;
  }
  
  .product-shipping,
  .shipping-duration {
    font-size: 0.9rem;
    color: #374151;
    margin-top: 6px;
  }
  
/* Product Options */
.product-options {
    margin-bottom: 25px;
}

.option-title {
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark);
    display: flex;
    align-items: center;
}

.option-title i {
    margin-right: 8px;
    color: var(--primary);
}

.product-shipping{
    font-size: medium;
    color: gray;
    padding: 10px;
}

.shipping-duration{
    padding: 10px;
}

.color-options {
    position:relative;
    top: 0%;
    left: 0%;
    max-width: 400px;
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    padding: 6px;
  }
 

.color-option {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.color-option:hover {
    transform: scale(1.1);
}

.color-option.active {
    border-color: var(--primary);
}

.color-option.active:after {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.9rem;
}

.size-options {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.size-option {
    padding: 8px 15px;
    border: 2px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.size-option:hover {
    border-color: var(--primary-light);
}

.size-option.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.size-option.disabled {
    color: var(--gray);
    cursor: not-allowed;
    background-color: #f9f9f9;
}

/* Quantity Selector */
.quantity-selector {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.quantity-label {
    margin-right: 15px;
    font-weight: 600;
    color: var(--dark);
}

.quantity-controls {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    background-color: var(--gray-light);
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    background-color: #e9e9e9;
}

.quantity-input {
    width: 60px;
    height: 40px;
    border: none;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
}

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

.offer-tag{
    background-color: var(--gray);
    color: white;
    margin: 16px 0;
    padding: 14px 0;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.5px;
}


/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.btn-add-cart {
    flex: 1;
    background-color: var(--primary);
}

.btn-buy-now {
    flex: 1;
    background-color: var(--secondary);
}

.btn-wishlist {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-wishlist:hover {
    background-color: var(--primary);
    color: white;
}

/* Long Description */
.long-description-section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light);
    position: relative;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 2px;
    background-color: var(--primary);
}

.long-description {
    line-height: 1.6;
    color: #555;
    white-space: pre-line;
}

.long-description p {
    margin-bottom: 15px;
}

.features-list {
    list-style-type: none;
    margin: 20px 0;
}

.features-list li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.features-list li:before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--success);
    position: absolute;
    left: 0;
}

/* Recommended Products */
.recommended-section {
    margin-bottom: 60px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.section-header h2 {
    font-size: 1.8rem;
    color: var(--dark);
    position: relative;
    padding-bottom: 10px;
}

.section-header h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: var(--primary);
}

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

@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .order-pricing-wrapper {
        grid-template-columns: 1fr;
        }
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    .order-pricing-wrapper {
        grid-template-columns: 1fr;
        }
}

/* Product Card */
.product-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.product-img-container {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.add-cart-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 2;
}

.add-cart-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.add-cart-btn:hover {
    background-color: var(--primary-dark);
    transform: scale(1.1);
}

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

.product-info {
    padding: 15px;
}

.product-title {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--dark);
    height: 40px;
    overflow: hidden;
}

.product-price {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.original-price {
    color: var(--gray);
    text-decoration: line-through;
    font-size: 0.9rem;
    margin-right: 8px;
}

.discount-badge-small {
    background-color: var(--danger);
    color: white;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 600;
    margin-left: 5px;
}


/* Toast Notification */
.toast-notification {
    position: fixed;
    top: 140px;
    right: 20px;
    background-color: var(--primary);
    color: white;
    padding: 12px 20px;
    border-radius: 4px;
    box-shadow: var(--shadow);
    z-index: 10000;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .category-nav {
        top: 65px;
    }

    .action-buttons {
        flex-direction: column;
    }

    .btn-wishlist {
        width: 100%;
        border-radius: 4px;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .category-nav {
        top: 62px;
    }

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

    .current-price {
        font-size: 1.6rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}