 :root {
     --border-color: #e0e0e0;
     --highlight-color: #f5f5f5;
     --section-gap: 30px;
 }

 * {
     box-sizing: border-box;
     margin: 0;
     padding: 0;

 }

 body {
     background-color: #979E7A;
     padding: 2px;
 }

 .cart-container {

     opacity: 0.8;
     width: 90%;
     margin: 0 auto;
     background-color: var(--accent3);
     /* creamier background */
     border-radius: 10px;
     padding: 25px;
     box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
 }

 .breadcrumb {
     margin-bottom: 25px;
     font-size: 0.9rem;
 }

 .breadcrumb a {
     color: #1b1b1b !important;
     ;
     text-decoration: none;
 }

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

 .breadcrumb span {
     color: #333;
 }

 .cart-item {
     display: flex;
     flex-wrap: wrap;
     padding: 20px 15px;
     border-bottom: 1px solid #e0e0e0;
     margin: 0 auto;
     max-width: 95%;
     color: #1b1b1b !important;
 }

 .product-image {
     flex: 1 1 40%;
     /* increased image width */
     max-width: 50%;
     margin: 0 15px;
     max-height: 400px
 }

 .product-image img {
     width: 100%;
     height: 100%;
     border-radius: 5px;
     object-fit: fill;
 }

 .product-details {
     flex: 2 1 300px;
     display: flex;
     flex-direction: column;
     margin: 0 15px;
     margin-left: 150px;
 }

 .product-title {
     font-size: 1.2rem;
     margin-bottom: 10px;
     font-weight: 400;
 }

 .product-description {
     color: #1b1b1b !important;
     ;
     margin-bottom: 15px;
     font-size: 0.9rem;
 }

 .price-quantity-row {
     display: flex;
     flex-wrap: wrap;
     align-items: center;
     margin-bottom: 10px;
 }

 .product-price {
     font-size: 1.1rem;
     font-weight: bold;
     margin-right: 20px;
 }

 .quantity-controls {
     display: flex;
     align-items: center;
 }

 .quantity-btn {
     width: 30px;
     height: 30px;
     background-color: #f0f0f0;
     border: none;
     border-radius: 4px;
     font-size: 1rem;
     cursor: pointer;
 }

 .quantity-input {
     width: 50px;
     height: 30px;
     text-align: center;
     margin: 0 5px;
     border: 1px solid #ddd;
     border-radius: 4px;
 }

 .action-row {
     display: flex;
     flex-wrap: wrap;
     justify-content: space-between;
     align-items: center;
     margin-top: 10px;
 }

 .save-remove-btns {
     display: flex;
     gap: 10px;
 }

 .btn {
     padding: 8px 15px;
     border: none;
     border-radius: 4px;
     cursor: pointer;
     font-size: 0.9rem;
 }

 .btn-outline {
     background: transparent;
     border: 1px solid #ddd;
 }

 .btn-outline:hover {
     background-color: #f5f5f5;
 }

 .cart-summary {
     margin-top: 30px;
     text-align: right;
     padding-right: 15px;
 }

 .checkout-btn {
     background-color: #6B7755;
     color: white;
     padding: 12px 25px;
     font-size: 1rem;
     margin-top: 15px;
 }

 .checkout-btn:hover {
     background-color: #5a6347;
 }

 .image-thumbnails {
     display: flex;
     gap: 10px;
 }

 .thumbnail {
     width: 80px;
     height: 80px;
     background-color: white;
     border-radius: 4px;
     overflow: hidden;
     cursor: pointer;
     border: 2px solid transparent;
     transition: border-color 0.3s;
 }

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

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

 .stars {
     display: flex;
     color: #f6c616;
     margin-right: 10px;
 }

 .review-count {
     color: #1b1b1b;
 }

 .review-link {
     margin-left: 15px;
     color: var(--gold);
     text-decoration: none;
     font-weight: bold;
     cursor: pointer;
     display: flex;
     align-items: center;
     gap: 5px;
 }

 .review-link:hover {
     text-decoration: underline;
 }


 /* Reviews Section */
 .reviews-section {
     max-width: 1200px;
     margin: 60px auto;
     padding: 0 20px;
 }

 .section-title {
     font-size: 1.8rem;
     margin-bottom: 30px;
     text-align: center;
     color: #1b1b1b;
 }

 .reviews-summary {
     display: flex;
     justify-content: space-between;
     align-items: center;
     margin-bottom: 30px;
     flex-wrap: wrap;
     gap: 20px;
 }

 .reviews-average {
     display: flex;
     flex-direction: column;
     align-items: center;
 }

 .average-rating {
     font-size: 3rem;
     font-weight: bold;
     color: var(--gold);
 }

 .total-reviews {
     color: #1b1b1b;
 }

 .rating-bars {
     flex: 1;
     min-width: 300px;
 }

 .rating-bar {
     display: flex;
     align-items: center;
     margin-bottom: 8px;
 }

 .rating-label {
     width: 60px;
     display: flex;
     align-items: center;
 }

 .rating-label i {
     color: var(--gold);
     margin-right: 5px;
 }

 .rating-progress {
     flex: 1;
     height: 8px;
     background-color: #eee;
     border-radius: 4px;
     overflow: hidden;
     margin: 0 10px;
 }

 .rating-progress-fill {
     height: 100%;
     background-color: #f6c616;
 }

 .rating-count {
     width: 40px;
     text-align: right;
     color: #1b1b1b;
 }

 .write-review-btn {
     background-color: var(--gold);
     color: white;
     border: none;
     padding: 12px 25px;
     border-radius: 4px;
     font-weight: bold;
     cursor: pointer;
     transition: background-color 0.3s;
     display: flex;
     align-items: center;
     gap: 8px;
     margin: 0 auto;
 }

 .write-review-btn:hover {
     background-color: #6a5d3e;
 }

 .reviews-list {
     margin-top: 40px;
 }

 .review-card {
     width: 80%;
     margin: auto;
     background-color: var(--accent1);
     border-radius: 8px;
     padding: 20px;
     box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
     margin-bottom: 20px;
 }

 .review-header {
     display: flex;
     /* justify-content: space-between; */
     margin-bottom: 15px;
     flex-wrap: wrap;
     gap: 50px;
 }

 .reviewer-info {
     display: flex;
     flex-direction: column;
     align-items: center;
     gap: 10px;
 }

 .reviewer-avatar {
     width: 40px;
     height: 40px;
     border-radius: 50%;
     background-color: #f0f0f0;
     display: flex;
     align-items: center;
     justify-content: center;
     font-size: 1.2rem;
     color: #666;
 }

 .reviewer-name {
     font-weight: bold;
 }

 .review-date {
     color: #d1d1d1;
     font-size: 0.9rem;
 }

 .review-rating {
     display: flex;
     color: var(--gold);
 }

 .review-title {
     font-weight: bold;
     margin-bottom: 10px;
     font-size: 1.1rem;
 }

 .review-content {
     margin-bottom: 15px;
     line-height: 1.6;
 }

 .review-photos {
     display: flex;
     gap: 10px;
     flex-wrap: wrap;
 }

 .review-photo {
     width: 80px;
     height: 80px;
     border-radius: 4px;
     overflow: hidden;
 }

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

 /* Related Products */
 .related-products {
     max-width: 1200px;
     margin: 60px auto;
     padding: 0 20px;
 }

 .products-row {
     display: grid;
     grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
     gap: 20px;
 }

 .product-card {
     background-color: white;
     border-radius: 8px;
     overflow: hidden;
     box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
     transition: transform 0.3s, box-shadow 0.3s;
 }

 .product-card:hover {
     transform: translateY(-5px);
     box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
 }

 .product-card-image {
     height: 200px;
     background-color: #f0f0f0;
     display: flex;
     align-items: center;
     justify-content: center;
     overflow: hidden;
 }

 .product-card-image img {
     width: 100%;
     height: 100%;
     object-fit: cover;
 }

 .product-card-info {
     padding: 15px;
 }

 .product-title {
     font-weight: bold;
     margin-bottom: 5px;
     color: #333;
 }

 .product-price {
     color: var(--primary);
     font-weight: bold;
     margin-bottom: 10px;
     font-size: 20px;

 }

 .product-description {
     color: var(--primary);
     font-weight: 400;
     margin-bottom: 10px;
     font-size: 18px;
 }

 .product-card-action {
     display: flex;
     justify-content: space-between;
 }

 .product-card-action button {
     background-color: #000;
     color: white;
     border: none;
     padding: 5px 10px;
     border-radius: 4px;
     cursor: pointer;
     font-size: 0.8rem;
 }



 /* Review Modal */
 .modal-overlay {
     position: fixed;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background-color: rgba(0, 0, 0, 0.5);
     display: flex;
     align-items: center;
     justify-content: center;
     z-index: 2000;
     opacity: 0;
     visibility: hidden;
     transition: opacity 0.3s, visibility 0.3s;
 }

 .modal-overlay.active {
     opacity: 1;
     visibility: visible;
 }

 .modal {
     background-color: white;
     border-radius: 8px;
     width: 90%;
     max-width: 600px;
     max-height: 90vh;
     overflow-y: auto;
     position: relative;
     box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
     transform: translateY(20px);
     transition: transform 0.3s;
 }

 .modal-overlay.active .modal {
     transform: translateY(0);
 }

 .modal-header {
     padding: 20px;
     border-bottom: 1px solid #eee;
     display: flex;
     justify-content: space-between;
     align-items: center;
 }

 .modal-title {
     font-size: 1.5rem;
     font-weight: bold;
 }

 .modal-close {
     background: none;
     border: none;
     font-size: 1.5rem;
     cursor: pointer;
     color: #666;
     transition: color 0.3s;
 }

 .modal-close:hover {
     color: #000;
 }

 .modal-body {
     padding: 20px;
 }

 .form-group {
     margin-bottom: 20px;
 }

 .form-label {
     display: block;
     margin-bottom: 8px;
     font-weight: bold;
 }

 .form-input,
 .form-textarea {
     width: 100%;
     padding: 12px 15px;
     border: 1px solid #ddd;
     border-radius: 4px;
     font-size: 1rem;
 }

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

 .rating-input {
     display: flex;
     flex-direction: row-reverse;
     justify-content: flex-end;
     gap: 5px;
 }

 .rating-input input {
     display: none;
 }

 .rating-input label {
     cursor: pointer;
     font-size: 1.5rem;
     color: #ccc;
     transition: color 0.3s;
 }

 .rating-input label:hover,
 .rating-input label:hover~label,
 .rating-input input:checked~label {
     color: var(--gold);
 }

 .file-input-container {
     position: relative;
     overflow: hidden;
     display: inline-block;
 }

 .file-input {
     position: absolute;
     left: 0;
     top: 0;
     opacity: 0;
     cursor: pointer;
     width: 100%;
     height: 100%;
 }

 .file-input-label {
     display: inline-block;
     padding: 10px 15px;
     background-color: #f0f0f0;
     color: #333;
     border-radius: 4px;
     cursor: pointer;
     transition: background-color 0.3s;
 }

 .file-input-label:hover {
     background-color: #e0e0e0;
 }

 .modal-footer {
     padding: 20px;
     border-top: 1px solid #eee;
     display: flex;
     justify-content: flex-end;
     gap: 10px;
 }

 .btn {
     padding: 12px 25px;
     border: none;
     border-radius: 4px;
     font-weight: bold;
     cursor: pointer;
     transition: background-color 0.3s;
 }

 .btn-secondary {
     background-color: #f0f0f0;
     color: #333;
 }

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

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

 .btn-primary:hover {
     background-color: #6a5d3e;
 }

 /* Details Grid  */
 .divider {
     height: 1px;
     background-color: var(--border-color);
     margin: 25px 0;
 }

 .highlight-box {
     background-color: var(--highlight-color);
     padding: 15px;
     border-radius: 5px;
     margin: 20px 0;
 }

 .info-item {
     margin-bottom: 10px;
     display: flex;
     align-items: flex-start;
 }

 .info-item strong {
     min-width: 160px;
     display: inline-block;
 }

 .checkbox-list {
     list-style: none;
     margin: 15px 0;
 }

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

 .checkbox-list li:before {
     content: "";
     position: absolute;
     left: 0;
     top: 4px;
     width: 16px;
     height: 16px;
     border: 1px solid var(--secondary-color);
     border-radius: 2px;
 }

 .checkbox-list li[data-checked="true"]:before {
     background-color: var(--primary-color);
     border-color: var(--primary-color);
 }

 .checkbox-list li[data-checked="true"]:after {
     content: "✓";
     position: absolute;
     left: 3px;
     top: 2px;
     color: white;
     font-size: 12px;
 }

 .nested-list {
     margin-left: 20px;
     margin-top: 5px;
 }

 .conditions {
     margin-top: 20px;
     font-size: 14px;
 }

 .details-grid {
     grid-template-columns: repeat(auto-fill, minmax(auto, 1fr));
     gap: 20px;
     align-items: center;
 }

 .details-grid * {
     color: #1b1b1b;
 }

 .related-products * {
     color: #1b1b1b;
     font-weight: 400;
 }

 .product-card-title {
     color: var(--primary);
     font-size: 1.4em;
     font-weight: 600 !important;
 }

 .product-card-action a {
     color: var(--accent3);
 }

 .details-section {
     /* background: white; */
     padding: 20px;
     border-radius: 8px;
     box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
 }



 @media (max-width: 768px) {
     .cart-container {
         width: 95%;
     }

     .product-image {
         flex: 1 1 100%;
         max-width: 100%;
         margin: 0 0 15px 0;
     }

     .product-details {
         margin: 0;
     }

     .action-row {
         flex-direction: column;
         align-items: flex-start;
         gap: 10px;
     }

     .save-remove-btns {
         width: 100%;
         justify-content: space-between;
     }
 }


 @media (max-width: 768px) {



     .product-actions {
         flex-direction: column;
     }

     .reviews-summary {
         flex-direction: column;
         align-items: center;
     }

     .rating-bars {
         width: 100%;
     }
 }

 @media (max-width: 480px) {
     .products-row {
         grid-template-columns: 1fr;
     }



     .image-thumbnails {
         justify-content: center;
     }

     .review-header {
         flex-direction: column;
         align-items: flex-start;
     }

     .modal {
         width: 95%;
     }
 }

 /* Base color option style */
 .color-option {
     display: inline-block;
     width: 30px;
     height: 30px;
     border-radius: 50%;
     margin-right: 10px;
     cursor: pointer;
     border: 2px solid transparent;
     transition: all 0.3s ease;
 }

 /* Active state */
 .color-option.active {
     border-color: #333;
     transform: scale(1.1);
 }

 /* Dynamic color classes - add these based on your choices.py */
 .color-red {
     background-color: #ff0000;
 }

 .color-blue {
     background-color: #0000ff;
 }

 .color-green {
     background-color: #00ff00;
 }

 .color-black {
     background-color: #000000;
 }

 .color-white {
     background-color: #ffffff;
     border: 1px solid #ddd;
 }

 /* Add more colors as needed */