body{
    background: #ffffff;
}

.product-page {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
    font-family: "Inter", sans-serif;
    color: #111;
    background: #ffffff;
}

/* TOP */
.product-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

/* IMAGES */
.product-images .main-img {
    width: 100%;
    border-radius: 10px;
}

.thumbs {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.thumbs img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    cursor: pointer;
    border: 1px solid #ddd;
    border-radius: 10px;
}

/* INFO */
.breadcrumb {
    font-size: 14px;
    color: #888;
    text-transform: uppercase;
}

.product-info h1 {
    font-size: 28px;
    font-weight: 600;
}

.price {
    margin: 15px 0;
}

.price .old {
    text-decoration: line-through;
    color: #999;
    margin-right: 10px;
}

.price .new {
    color: #e60023;
    font-size: 22px;
    font-weight: 600;
}

.features {
    margin: 20px 0;
}

.features li {
    font-size: 14px;
    margin-bottom: 6px;
}

/* SIZE */
.sizes p {
    font-weight: 500;
}

.size-box {
    display: flex;
    gap: 10px;
    margin: 10px 0 20px;
}

.size-box button {
    width: 44px;
    height: 40px;
    border: 1px solid #ccc;
    background: white;
    cursor: pointer;
}

.size-box button.active {
    background: #000;
    color: #fff;
}

/* BUTTONS */
.cart-btn,
.wish-btn {
    width: 100%;
    padding: 14px;
    margin-bottom: 12px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.cart-btn {
    background: #000000;
    color: #fff;
    border: 2px solid black;
}

.wish-btn {
    background: #ffffff;
    color: #000000;
    border: 2px solid black;
}

/* META */
.meta p {
    font-size: 13px;
    color: #555;
    margin-top: 6px;
}

/* TABS */
.tabs {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 60px 0 20px;
    font-size: 14px;
}

.tabs span {
    cursor: pointer;
    color: #777;
}

.tabs span.active {
    color: #000;
    border-bottom: 2px solid #000;
    padding-bottom: 6px;
}

/* TABLE */
.size-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 60px;
}

.size-table th,
.size-table td {
    padding: 14px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

/* Related Products */
.related {
    margin-top: 100px;
}

.related h2 {
    text-align: center;
    font-size: 1.8em;
    margin-bottom: 30px;
}

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


.product-item {
  background-color: white;
  border: 1px solid #ddd;
  text-align: center;
  transition: transform 0.2s;
  overflow: hidden;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
}

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

.product-item img {
  width: 100%;
  height: auto;
  display: block;
} 


.product-price-base {
  color: #cc0000;
  font-weight: bold;
}

.product-price-normal {
  color: rgb(116, 116, 116);
  font-weight: 600;
  text-decoration: line-through;
}

.price-section{
  display: flex;
  justify-content: center;
  gap: 15px;
} 

.product-item {
  position: relative;
  background: #fff;
  border: 1px solid #e5e5e5;
  overflow: hidden;
}

.product-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
}

.product-actions button {
  width: 36px;
  height: 36px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.product-actions i {
  font-size: 14px;
  color: #000;
}

.product-actions button:hover {
  background: #000;
}

.product-actions button:hover i {
  color: #fff;
}

/* PRODUCT DETAILS */
.product-details {
  padding: 12px;
}

/* ADD TO CART BUTTON */
.add-to-cart-btn {
  margin-top: 12px;
  width: 100%;
  padding: 10px 0;
  background: #000;
  color: #fff;
  border: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.add-to-cart-btn i {
  font-size: 14px;
}

.add-to-cart-btn:hover {
  background: #222;
}

/* ===============================
   RESPONSIVE
================================ */

/* Tablets (<= 1024px) */
@media (max-width: 1024px) {
    .product-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .product-info h1 {
        font-size: 24px;
    }

    .thumbs img {
        width: 80px;
        height: 80px;
    }

    .tabs {
        gap: 25px;
    }
}

/* Mobile (<= 768px) */
@media (max-width: 768px) {
    .product-page {
        margin: 30px auto;
        padding: 0 15px;
    }

    .breadcrumb {
        font-size: 11px;
    }

    .product-info h1 {
        font-size: 20px;
        line-height: 1.3;
    }

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

    .features li {
        font-size: 13px;
    }

    /* Images */
    .thumbs {
        justify-content: center;
        flex-wrap: wrap;
    }

    .thumbs img {
        width: 70px;
        height: 70px;
    }

    /* Size selector */
    .size-box {
        flex-wrap: wrap;
    }

    .size-box button {
        width: 42px;
        height: 38px;
    }

    /* Tabs */
    .tabs {
        flex-wrap: wrap;
        gap: 20px;
    }

    .tabs span {
        font-size: 13px;
    }

    /* Table */
    .size-table th,
    .size-table td {
        padding: 12px;
        font-size: 13px;
    }

    /* Related Products */
    .related h2 {
        font-size: 1.5em;
    }
}

/* Small Mobile (<= 480px) */
@media (max-width: 480px) {
    .product-info h1 {
        font-size: 18px;
    }

    .price .old {
        font-size: 13px;
    }

    .price .new {
        font-size: 18px;
    }

    .cart-btn,
    .wish-btn {
        padding: 12px;
        font-size: 14px;
    }

    .meta p {
        font-size: 12px;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .product-card .name {
        font-size: 14px;
    }
}

/* ===============================
   Breadcrumb above image (mobile)
================================ */
@media (max-width: 768px) {

    /* Stack layout */
    .product-top {
        display: flex;
        flex-direction: column;
    }

    /* Flatten product-info so breadcrumb can escape */
    .product-info {
        display: contents;
    }

    /* Breadcrumb goes first */
    .breadcrumb {
        order: -1;
        margin-bottom: 0px;
        margin-top: 0px;
    }

    /* Images stay after breadcrumb */
    .product-images {
        order: 0;
    }

    /* Remaining product info stays below images */
    .product-info h1,
    .product-info .price,
    .product-info .features,
    .product-info .sizes,
    .product-info .cart-btn,
    .product-info .wish-btn,
    .product-info .meta {
        order: 1;
    }
}

.thumbs img {
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s, border 0.3s;
}

.thumbs img.active {
    opacity: 1;
    border: 2px solid #000;
}

.img-zoom-container {
    position: relative;
    overflow: hidden;
}

.main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform-origin: center;
    transition: transform 0.1s ease;
    cursor: zoom-in;
}

.size-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.quantity-box {
  display: inline-flex;
  align-items: center;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  height: 42px;
  margin-bottom: 15px;
}

.qty-btn {
  width: 42px;
  height: 42px;
  border: none;
  background: #f9fafb;
  font-size: 20px;
  cursor: pointer;
  transition: background 0.2s;
}

.qty-btn:hover {
  background: #e5e7eb;
}

.quantity-box input {
  width: 50px;
  height: 42px;
  border: none;
  text-align: center;
  font-size: 15px;
  outline: none;
}

/* Remove arrows in number input */
.quantity-box input::-webkit-inner-spin-button,
.quantity-box input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}


.offer-div {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
}

.offer-div span {
  min-width: 52px;
  height: 26px;
  padding: 0 10px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: #e53935;
  color: #fff;

  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;

  border-radius: 12px;
  cursor: default;

  box-shadow: 0 4px 10px rgba(229, 57, 53, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
