<style>
body {
  font-family: 'Poppins', sans-serif;
  background: #f5f5f7;
  color: #333;
  margin-top: 100px;
  padding: 0;
}

/* Layout */
.product-page {
  max-width: 1200px;
  margin: 60px auto;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.product-gallery, .product-details {
  flex: 1 1 50%;
  padding: 30px;
}

/* Gallery */
.product-main-img {
  width: 320px;
  height: 350px;
  overflow: hidden;
  position: relative;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 15px;
}

.product-main-img img {
  width: 100%;
  height: 80%;
  padding-top:30px;
  object-fit: contain;
  transition: transform 0.2s ease, transform-origin 0.2s ease;
  pointer-events: none; /* Important so mouse events go to container */
}

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

.product-thumbnails {
  margin-top: 20px;
  display: flex;
  gap: 12px;
  justify-content: center;
}

.thumb {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s;
}

.thumb:hover, .thumb.active {
  border-color: #6c63ff;
}

/* Details */
.badge-new {
  background: #6c63ff;
  color: white;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 15px;
}

.product-name {
  font-size: 28px;
  margin-bottom: 10px;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.rating-stars {
  font-size: 16px;
  color: #6c63ff;
}

.product-price {
  font-size: 26px;
  font-weight: bold;
  color: #ff4757;
}

.product-description {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.product-description li {
  margin-bottom: 8px;
}

/* Actions */
.product-actions {
  display: flex;
  gap: 15px;
  margin-top: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.quantity-control {
  display: flex;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
}

.quantity-control button {
  width: 40px;
  background: #eee;
  border: none;
  cursor: pointer;
  font-size: 20px;
}

.quantity-control input {
  width: 50px;
  text-align: center;
  border: none;
}

.btn-primary {
  background: #6c63ff;
  border: none;
  color: white;
  padding: 12px 20px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-primary:hover {
  background: #5848c2;
}

.btn-secondary {
  background: transparent;
  border: 1px solid #ccc;
  padding: 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-secondary:hover {
  background: #f0f0f0;
}

/* Reviews */
.reviews-section {
  margin-top: 40px;
}

.reviews-section h2 {
  font-size: 22px;
  margin-bottom: 20px;
}

.review {
  border-bottom: 1px solid #eee;
  padding: 15px 0;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.review-header .reviewer {
  font-weight: bold;
}

.review-header .review-stars {
  color: #FFD700;
}

.review-header .review-date {
  font-size: 12px;
  color: #999;
}

/* Form */
.review-form {
  margin-top: 30px;
}

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

.star-rating {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
}

.star-rating input {
  display: none;
}

.star-rating label {
  font-size: 25px;
  color: #ccc;
  cursor: pointer;
  transition: color 0.2s;
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
  color: #FFD700;
}

.review-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  resize: vertical;
}
.magnify-lens {
  position: absolute;
  width:250px;
  height:200px;
  border: 2px solid rgba(108, 99, 255, 0.8);
  pointer-events: none;
  display: none;
  z-index: 20;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  background-repeat: no-repeat;
  background-size: 300% 300%; /* Zoom level */
  background-position: center;
}

/* Modify only these specific properties without changing other styles */
.product-main-img {
  /* Keep your existing styles and add only these */
  cursor: zoom-in;
  position: relative;
}

/* Override this specific hover effect when using magnify */
.product-main-img.magnifying img:hover {
  transform: none;
}
/* Base styles you provided — unchanged */

/* --------- Responsive Enhancements --------- */
@media (max-width: 1024px) {
  .product-page {
    margin: 30px auto;
    flex-direction: column;
  }

  .product-gallery, .product-details {
    flex: 1 1 100%;
    padding: 20px;
  }

  .product-main-img {
    width: 100%;
    height: 320px;
  }

  .product-thumbnails {
    flex-wrap: wrap;
    gap: 8px;
  }

  .thumb {
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 768px) {
  .product-page {
    box-shadow: none;
    border-radius: 0;
  }

  .product-main-img {
    height: 250px;
  }

  .product-name {
    font-size: 24px;
  }

  .product-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .product-price {
    font-size: 22px;
  }

  .quantity-control button,
  .quantity-control input {
    width: 36px;
    font-size: 18px;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    text-align: center;
  }
  
  .product-actions {
    flex-direction: column;
  }

  .magnify-lens {
    display: none !important; /* Disable magnify on smaller devices */
  }
}

@media (max-width: 480px) {
  .product-main-img {
    height: 200px;
  }

  .thumb {
    width: 50px;
    height: 50px;
  }

  .product-name {
    font-size: 20px;
  }

  .product-price {
    font-size: 20px;
  }

  .badge-new {
    font-size: 10px;
    padding: 3px 8px;
  }

  .star-rating label {
    font-size: 20px;
  }

  .review-form textarea {
    padding: 8px;
  }
}

</style>
 <style>
        /* Base styles and reset */
        :root {
            --s: 100px;
            --c1: #EFEFEF;
            --c2: #ffffff;
            --_l: #0000 34%, var(--c1) 0 41%, #0000 0 59%, var(--c1) 0 66%, #0000 0;
            --primary-color: #e25822;
            --primary-hover: #d24812;
            --secondary-color: #1a472a;
            --text-color: #2c3e50;
            --text-light: #666;
            --text-lighter: #777;
            --success-color: #2ecc71;
            --success-hover: #27ae60;
            --danger-color: #e74c3c;
            --warning-color: #f39c12;
            --border-color: #eee;
            --border-light: #ddd;
            --bg-light: #f8f8f8;
        }

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

        body {
            font-family: Arial, sans-serif;
        }

        /* Container and layout */
        .container-store {
            max-width: 1200px;
            margin: 0 auto;
            position: relative;
            display: flex;
            gap: 20px;
            padding: 20px;
        }

        /* Background pattern */
        .background-pattern {
            width: 100%;
            height: 100%;
            background: linear-gradient(-45deg, var(--_l)), linear-gradient(45deg, var(--_l)) var(--c2);
            background-size: var(--s) var(--s);
            position: absolute;
            top: 0;
            left: 0;
            opacity: 0.1;
            z-index: 1;
        }

        /* Carousel */
        .carousel-container {
            position: relative;
            width: 100%;
            height: 400px;
            overflow: hidden;
            background-color: var(--bg-light);
        }

        .carousel-slide {
            position: absolute;
            display: flex;
            justify-content: space-between;
            align-items: center;
            width: 100%;
            height: 100%;
            padding: 40px;
            opacity: 0;
            transition: opacity 1s ease;
            z-index: 2;
        }

        .carousel-slide.active {
            opacity: 1;
        }

        .carousel-content {
            width: 40%;
            padding-left: 20px;
        }

        .carousel-title {
            font-size: 2.5rem;
            font-weight: bold;
            line-height: 1.2;
            margin-bottom: 15px;
        }

        .green-text {
            color: var(--secondary-color);
        }

        .orange-text {
            color: var(--primary-color);
        }

        .carousel-subtitle {
            color: var(--text-light);
            margin-bottom: 20px;
            font-size: 1rem;
        }

        .carousel-button,
        .add-to-cart-btn,
        .explore-btn {
            display: inline-block;
            background-color: var(--primary-color);
            color: white;
            padding: 10px 20px;
            border: none;
            border-radius: 4px;
            font-size: 0.9rem;
            cursor: pointer;
            transition: background-color 0.3s;
            text-decoration: none;
        }

        .carousel-button:hover,
        .add-to-cart-btn:hover,
        .explore-btn:hover {
            background-color: var(--primary-hover);
        }

        .carousel-dots {
            position: absolute;
            bottom: 20px;
            left: 0;
            right: 0;
            display: flex;
            justify-content: center;
            gap: 8px;
            z-index: 3;
        }

        .dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background-color: #ccc;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .dot.active {
            width: 24px;
            border-radius: 4px;
            background-color: var(--primary-color);
        }

        /* Books display */
        .books-container {
            width: 60%;
            position: relative;
            height: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .book {
            position: absolute;
            width: 150px;
            height: 220px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
            border-radius: 4px;
            overflow: hidden;
            transition: transform 0.5s ease;
        }

        .book:nth-child(1) {
            transform: translateX(-180px) rotate(-8deg);
            z-index: 4;
        }

        .book:nth-child(2) {
            transform: translateX(-60px) rotate(-3deg);
            z-index: 3;
        }

        .book:nth-child(3) {
            transform: translateX(60px) rotate(3deg);
            z-index: 2;
        }

        .book:nth-child(4) {
            transform: translateX(180px) rotate(8deg);
            z-index: 1;
        }

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

        /* Book information */
        .book-info {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background-color: rgba(255, 255, 255, 0.9);
            padding: 8px;
            border-radius: 0 0 4px 4px;
        }

        .book-title {
            font-weight: bold;
            font-size: 0.9rem;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            height: 40px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
        }

        .book-author {
            font-size: 0.8rem;
            color: var(--text-light);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        /* Section headers */
        .trending-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 15px;
            margin-bottom: 25px;
        }

        .trending-title {
            color: var(--text-color);
            font-size: 24px;
            font-weight: 600;
        }

        .view-all {
            color: #1a73e8;
            text-decoration: none;
            font-size: 14px;
            display: flex;
            align-items: center;
        }

        .view-all::after {
            content: '→';
            margin-left: 4px;
        }

        /* Book grid */
        .books-section {
            flex: 1;
        }

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

        .book-card {
            background: white;
            border-radius: 4px;
            overflow: hidden;
            position: relative;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease;
        }

        .book-card:hover {
            transform: translateY(-5px);
        }

        .book-image-container {
            position: relative;
            height: 240px;
            overflow: hidden;
        }

        .book-image {
            width: 100%;
            height: 100%;
        }

        /* Tags and labels */
        .wishlist-btn {
            position: absolute;
            top: 10px;
            right: 10px;
            background: white;
            border: none;
            border-radius: 50%;
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        }

        .discount-tag,
        .status-tag,
        .category-tag {
            position: absolute;
            padding: 3px 8px;
            border-radius: 3px;
            font-size: 12px;
            font-weight: bold;
            color: white;
        }

        .discount-tag {
            top: 10px;
            left: 10px;
            background: var(--danger-color);
        }

        .status-tag {
            bottom: 10px;
            left: 0;
            background: rgba(255, 107, 107, 0.9);
            border-radius: 0 3px 3px 0;
        }

        .category-tag {
            top: 10px;
            right: 10px;
            background: var(--warning-color);
        }

        /* Book details */
        .book-details {
            padding: 12px;
        }

        .rating {
            display: flex;
            margin-bottom: 5px;
        }

        .star {
            color: #ffc107;
            font-size: 14px;
        }

        .star-empty {
            color: #e0e0e0;
            font-size: 14px;
        }

        .rating-count {
            font-size: 12px;
            color: var(--text-lighter);
            margin-left: 5px;
        }

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

        .current-price {
            font-weight: bold;
            color: var(--danger-color);
        }

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

        .add-to-cart-btn {
            width: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 5px;
            font-weight: 500;
        }

        /* Shopping cart */
        .cart-container {
            width: 320px;
            background-color: white;
            border-radius: 8px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
            z-index: 987;
            max-height: 600px;
            overflow-y: auto;
            position: sticky;
            top: 20px;
            align-self: flex-start;
        }

        .cart-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px;
            border-bottom: 1px solid var(--border-color);
        }

        .cart-title {
            font-size: 18px;
            font-weight: 600;
            color: var(--text-color);
        }

        .cart-item {
            display: flex;
            align-items: center;
            padding: 10px 0;
            border-bottom: 1px solid #eee;
        }
        .cart-items {
    padding: 0 15px;
    height: 320px;
    overflow-y: auto;
}

        .cart-item {
            display: flex;
            align-items: center;
            padding: 10px 0;
            border-bottom: 1px solid var(--border-color);
        }

        .cart-item-img {
            width: 60px;
            height: 80px;
            object-fit: cover;
            border-radius: 4px;
            margin-right: 10px;
        }

        .cart-item-details {
            flex: 1;
        }

        .cart-item-title {
            font-size: 14px;
            font-weight: 500;
            margin-bottom: 5px;
        }

        .cart-item-price {
            font-size: 14px;
            color: #e74c3c;
            font-weight: bold;
        }

        .cart-item-quantity {
            display: flex;
            align-items: center;
            margin-top: 5px;
        }


        .qty-controls {
            display: flex;
            align-items: center;
            margin-top: 5px;
        }

        .qty-controls {
            gap: 5px;
            margin: 5px 0;
        }

        .quantity-btn,
        .qty-minus,
        .qty-plus {
            width: 24px;
            height: 24px;
            border: 1px solid var(--border-light);
            background: var(--bg-light);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 14px;
            color: #555;
            border-radius: 4px;
        }

        .item-quantity {
            width: 32px;
            height: 24px;
            border: 1px solid #ddd;
            text-align: center;
            margin: 0 5px;
            font-size: 14px;
        }

        .remove-item {
    color: #e74c3c;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    margin-left: 10px;
}

        .cart-summary {
            padding: 15px;
            border-top: 1px solid var(--border-color);
        }

        .cart-total {
            display: flex;
            justify-content: space-between;
            margin-bottom: 15px;
            font-size: 16px;
            font-weight: 600;
        }

        .checkout-btn {
            width: 100%;
            background-color: var(--success-color);
            color: white;
            border: none;
            border-radius: 4px;
            padding: 10px 0;
            font-size: 16px;
            font-weight: 500;
            cursor: pointer;
            transition: background-color 0.3s;
        }

        .checkout-btn:hover {
            background-color: var(--success-hover);
        }

        .cart-empty {
            padding: 30px 15px;
            text-align: center;
            color: var(--text-lighter);
        }

        /* Mobile cart */
        .cart-icon-container {
            display: none;
            position: fixed;
            bottom: 20px;
            right: 20px;
            z-index: 1001;
            cursor: pointer;
        }

        .cart-icon {
            width: 50px;
            height: 50px;
            background-color: var(--primary-color);
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
            color: white;
            font-size: 24px;
            position: relative;
        }

        .cart-count {
            position: absolute;
            top: -5px;
            right: -5px;
            background-color: var(--success-color);
            color: white;
            border-radius: 50%;
            width: 22px;
            height: 22px;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 12px;
            font-weight: bold;
        }

        .cart-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 999;
        }

        .close-cart {
            display: none;
            position: absolute;
            top: 15px;
            right: 15px;
            font-size: 20px;
            cursor: pointer;
            color: #555;
        }

        /* Cart Item Styling */
        .cart-item-info {
    padding: 0 15px;
    height: 320px;
    overflow-y: auto;
}

        .cart-item-info img {
            width: 70px;
            height: auto;
            object-fit: cover;
            border-radius: 4px;
            margin-right: 15px;
        }

        .cart-item-info div {
            flex: 1;
        }

        .cart-item-info p {
            font-weight: 500;
            font-size: 16px;
            margin: 0 0 5px 0;
            color: #333;
        }

        .cart-item-info span {
            display: block;
            color: #666;
            font-size: 14px;
            margin-bottom: 10px;
        }

        .qty-controls {
            display: flex;
            align-items: center;
            margin: 12px 0;
        }

        .qty-controls button {
            width: 25px;
            height: 25px;
            background-color: #f5f5f5;
            border: 1px solid #ddd;
            border-radius: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 16px;
            color: #333;
            transition: background-color 0.2s;
        }

        .qty-controls button:hover {
            background-color: #e9e9e9;
        }

        .qty-controls span {
            margin: 0 10px;
            font-size: 16px;
            min-width: 20px;
            text-align: center;
        }

       

        .remove-item:hover {
            color: #a71d2a;
            text-decoration: underline;
        }

        /* Responsive adjustments */
        @media (max-width: 576px) {
            .cart-item-info img {
                width: 60px;
            }

            .cart-item-info p {
                font-size: 14px;
            }

            .qty-controls button {
                width: 22px;
                height: 22px;
            }
        }

        /* Banner styling */
        .custom-caption {
            position: absolute;
            top: 21%;
            left: 20%;
            text-align: cneter;
            background:rgb(42 39 39 / 90%)
            padding: 20px;
            border-radius: 8px;
            max-width: 650px;
            z-index: 2;
            height: 200px;
        }

        .custom-caption h2 {
            font-size: 2rem;
            font-weight: 700;
            color: #1b4332;
            margin-bottom: 10px;
            line-height: 1.3;
        }

        .text-orange {
            color: #e8590c;
        }

        .custom-caption p {
            color: #555;
            font-size: 1rem;
            margin-bottom: 10px;
        }

        .explore-btn {
            font-weight: 600;
            border-radius: 6px;
            text-transform: uppercase;
        }

        .highlight {
            color:#fff;
            padding: 0 5px;
        }
        @media (min-width: 1920px) {
            .custom-caption {
        top: 9%;
        left: 7%;
        padding: 30px;
        max-width: 600px;
        height: 245px;
    }

    .custom-caption h2 {
        font-size: 2.5rem;
    }

    .custom-caption p {
        font-size: 1.2rem;
    }

    .explore-btn {
        font-size: 1rem;
        padding: 10px 20px;
    }
    .container-store {
        max-width: 1538px;
    }
    .cart-container {
        width: 430px;
    }
        }
        /* Responsive styles */
        @media (max-width: 1200px) {
            .custom-caption {
                max-width: 400px;
            }

            .custom-caption h2 {
                font-size: 1.8rem;
            }
        }

        @media (max-width: 1024px) {
            .book {
                width: 120px;
                height: 180px;
            }

            .book:nth-child(1) {
                transform: translateX(-140px) rotate(-8deg);
            }

            .book:nth-child(2) {
                transform: translateX(-50px) rotate(-3deg);
            }

            .book:nth-child(3) {
                transform: translateX(50px) rotate(3deg);
            }

            .book:nth-child(4) {
                transform: translateX(140px) rotate(8deg);
            }
        }

        @media (max-width: 992px) {
            .carousel-inner {
                height: 350px !important;
            }

            .carousel-item img {
                height: 350px;
            }

            .custom-caption {
                max-width: 350px;
                top: 20%;
            }

            .custom-caption h2 {
                font-size: 1.6rem;
            }
        }

        @media (max-width: 768px) {
            .carousel-slide {
                flex-direction: column;
                padding: 20px;
            }

            .carousel-content,
            .books-container {
                width: 100%;
            }

            .carousel-container {
                margin-top: 80px;
            }

            .carousel-content {
                padding-left: 0;
                margin-bottom: 20px;
            }

            .carousel-title {
                font-size: 1.8rem;
            }

            .book {
                width: 90px;
                height: 130px;
            }

            .book:nth-child(1) {
                transform: translateX(-120px) rotate(-8deg);
            }

            .book:nth-child(2) {
                transform: translateX(-40px) rotate(-3deg);
            }

            .book:nth-child(3) {
                transform: translateX(40px) rotate(3deg);
            }

            .book:nth-child(4) {
                transform: translateX(120px) rotate(8deg);
            }

            .book-title,
            .book-author {
                font-size: 0.7rem;
            }

            .container-store {
                flex-direction: column;
            }

            .cart-container {
                display: none;
                position: fixed;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%);
                width: 90%;
                max-width: 350px;
                max-height: 80vh;
                z-index: 1000;
                border-radius: 8px;
                box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
            }

            .cart-container.active {
                display: block;
            }

            .cart-icon-container {
                display: block;
            }

            .close-cart {
                display: block;
            }

            .cart-overlay.active {
                display: block;
            }

            .carousel-inner {
                height: 300px !important;
            }

            .carousel-item img {
                height: 300px;
            }

            .custom-caption {
                top: 10%;
                left: 5%;
                right: 5%;
                max-width: 90%;
                padding: 15px;
                min-height: auto;
                height: auto;
            }

            .custom-caption h2 {
                font-size: 1.4rem;
                margin-bottom: 8px;
            }

            .custom-caption p {
                font-size: 0.9rem;
                margin-bottom: 8px;
            }

            .custom-caption .explore-btn {
                padding: 8px 15px;
                font-size: 0.9rem;
            }
        }

        @media (max-width: 576px) {
            .carousel-inner {
                height: 250px !important;
                margin-top: 65px;
            }

            .carousel-item img {
                height: 250px;
            }

            .custom-caption {
                padding: 12px;
                height: 105px;
                width: 295px;
            }

            .book {
                width: 90px;
                height: 130px;
            }

            .book:nth-child(1) {
                transform: translateX(-120px) rotate(-8deg);
            }

            .book:nth-child(2) {
                transform: translateX(-40px) rotate(-3deg);
            }

            .book:nth-child(3) {
                transform: translateX(40px) rotate(3deg);
            }

            .book:nth-child(4) {
                transform: translateX(120px) rotate(8deg);
            }

            .book-title,
            .book-author {
                font-size: 0.7rem;
            }

            .container-store {
                flex-direction: column;
            }

            .cart-container {
                display: none;
                position: fixed;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%);
                width: 90%;
                max-width: 350px;
                max-height: 80vh;
                z-index: 1000;
                border-radius: 8px;
                box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
            }

            .cart-container.active {
                display: block;
            }

            .cart-icon-container {
                display: block;
            }

            .close-cart {
                display: block;
            }

            .cart-overlay.active {
                display: block;
            }

            .custom-caption h2 {
                font-size: 1.2rem;
                margin-bottom: 5px;
            }

            .custom-caption p {
                font-size: 0.8rem;
                margin-bottom: 5px;
                display: -webkit-box;
                -webkit-line-clamp: 3;
                -webkit-box-orient: vertical;
                overflow: hidden;
            }

            .custom-caption .explore-btn {
                padding: 6px 12px;
                font-size: 0.8rem;
                margin-top: 5px;
            }

            .carousel-control-prev-icon,
            .carousel-control-next-icon {
                width: 15px;
                height: 15px;
            }
        }

        @media (max-width: 400px) {
            .carousel-inner {
                height: 220px !important;
                margin-top: 70px;
            }

            .carousel-item img {
                height: 220px;
            }

            .book {
                width: 90px;
                height: 130px;
            }

            .book:nth-child(1) {
                transform: translateX(-120px) rotate(-8deg);
            }

            .book:nth-child(2) {
                transform: translateX(-40px) rotate(-3deg);
            }

            .book:nth-child(3) {
                transform: translateX(40px) rotate(3deg);
            }

            .book:nth-child(4) {
                transform: translateX(120px) rotate(8deg);
            }

            .book-title,
            .book-author {
                font-size: 0.7rem;
            }

            .container-store {
                flex-direction: column;
            }

            .cart-container {
                display: none;
                position: fixed;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%);
                width: 90%;
                max-width: 350px;
                max-height: 80vh;
                z-index: 1000;
                border-radius: 8px;
                box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
            }

            .cart-container.active {
                display: block;
            }

            .cart-icon-container {
                display: block;
            }

            .close-cart {
                display: block;
            }

            .cart-overlay.active {
                display: block;
            }

            .custom-caption {
                padding: 10px;
                height: 100px;
                width: 260px;
            }

            .custom-caption h2 {
                font-size: 1.1rem;
            }

            .custom-caption p {
                -webkit-line-clamp: 2;
                font-size: 0.75rem;
            }

            .custom-caption .explore-btn {
                padding: 5px 10px;
                font-size: 0.75rem;
            }
        }
        @media (min-width: 1920px) { 
            
         }
    </style>