
    :root {
      --bg: #fff8ef;
      --card: #ffffff;
      --text: #2b2d42;
      --muted: #6b7280;
      --pink: #ff5fa2;
      --orange: #ffb347;
      --blue: #55c7ff;
      --green: #7ed957;
      --purple: #8f7cff;
      --shadow: 0 18px 45px rgba(43, 45, 66, 0.12);
      --radius: 26px;
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    body {
      font-family: Arial, Helvetica, sans-serif;
      background:
        radial-gradient(circle at top left, rgba(255, 95, 162, 0.18), transparent 32%),
        radial-gradient(circle at 90% 10%, rgba(85, 199, 255, 0.22), transparent 30%),
        linear-gradient(180deg, #fff8ef 0%, #f7fbff 100%);
      color: var(--text);
      min-height: 100vh;
    }

    a {
      color: inherit;
      text-decoration: none;
    }

    .container {
      width: min(1180px, calc(100% - 32px));
      margin: 0 auto;
    }

    .topbar {
      background: #2b2d42;
      color: #fff;
      font-size: 14px;
      padding: 8px 0;
    }

    .topbar-inner {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      flex-wrap: wrap;
    }

    header {
      position: sticky;
      top: 0;
      z-index: 20;
      background: rgba(255, 255, 255, 0.82);
      backdrop-filter: blur(16px);
      border-bottom: 1px solid rgba(43, 45, 66, 0.08);
    }

    .nav {
      min-height: 78px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
    }

    .logo {
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: 26px;
      font-weight: 900;
      letter-spacing: -1px;
    }

    .logo-badge {
      width: 44px;
      height: 44px;
      border-radius: 16px;
      display: grid;
      place-items: center;
      background: linear-gradient(135deg, var(--pink), var(--orange));
      color: #fff;
      box-shadow: var(--shadow);
    }

    .menu {
      display: flex;
      align-items: center;
      gap: 18px;
      color: #374151;
      font-weight: 700;
    }

    .menu a:hover {
      color: var(--pink);
    }

    .nav-actions {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .search {
      width: 260px;
      display: flex;
      align-items: center;
      gap: 8px;
      background: #fff;
      border: 2px solid rgba(85, 199, 255, 0.28);
      border-radius: 999px;
      padding: 10px 14px;
      box-shadow: 0 10px 25px rgba(85, 199, 255, 0.12);
    }

    .search input {
      width: 100%;
      border: 0;
      outline: 0;
      font-size: 14px;
      background: transparent;
    }

    .icon-btn,
    .primary-btn,
    .soft-btn {
      border: 0;
      cursor: pointer;
      border-radius: 999px;
      font-weight: 800;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .icon-btn:hover,
    .primary-btn:hover,
    .soft-btn:hover {
      transform: translateY(-2px);
    }

    .icon-btn {
      width: 44px;
      height: 44px;
      background: #fff;
      box-shadow: 0 10px 25px rgba(43, 45, 66, 0.1);
      font-size: 18px;
      position: relative;
    }

    .cart-count {
      position: absolute;
      top: -5px;
      right: -5px;
      width: 20px;
      height: 20px;
      border-radius: 50%;
      background: var(--pink);
      color: #fff;
      display: grid;
      place-items: center;
      font-size: 12px;
      border: 2px solid #fff;
    }

    .primary-btn {
      padding: 13px 20px;
      background: linear-gradient(135deg, var(--pink), #ff8a3d);
      color: #fff;
      box-shadow: 0 16px 28px rgba(255, 95, 162, 0.25);
    }

    .soft-btn {
      padding: 12px 18px;
      background: #fff;
      color: var(--text);
      box-shadow: 0 10px 25px rgba(43, 45, 66, 0.08);
    }

    .breadcrumb {
      display: flex;
      align-items: center;
      gap: 8px;
      color: var(--muted);
      font-size: 14px;
      margin: 28px 0 18px;
      flex-wrap: wrap;
    }

    .breadcrumb a {
      color: #4b5563;
      font-weight: 700;
    }

    .product-detail {
      display: grid;
      grid-template-columns: 1fr 0.9fr;
      gap: 26px;
      align-items: start;
    }

    .gallery-card,
    .info-card,
    .panel-card {
      background: rgba(255, 255, 255, 0.82);
      border: 1px solid rgba(255, 255, 255, 0.9);
      border-radius: 38px;
      box-shadow: var(--shadow);
    }

    .gallery-card {
      padding: 18px;
      position: sticky;
      top: 100px;
    }

    .main-image {
      min-height: 520px;
      border-radius: 30px;
      background:
        radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.92), transparent 24%),
        linear-gradient(135deg, #e8f8ff, #fff3cc 54%, #ffc2df);
      display: grid;
      place-items: center;
      font-size: 170px;
      position: relative;
      overflow: hidden;
    }

    .main-image::after {
      content: "";
      position: absolute;
      width: 180px;
      height: 180px;
      border-radius: 50%;
      background: rgba(126, 217, 87, 0.22);
      right: -50px;
      bottom: -45px;
    }

    .floating-badge {
      position: absolute;
      left: 18px;
      top: 18px;
      background: var(--green);
      color: #124016;
      border-radius: 999px;
      padding: 9px 14px;
      font-weight: 900;
      font-size: 13px;
      z-index: 2;
    }

    .wishlist {
      position: absolute;
      right: 18px;
      top: 18px;
      width: 46px;
      height: 46px;
      border: 0;
      border-radius: 16px;
      background: #fff;
      font-size: 20px;
      box-shadow: 0 12px 28px rgba(43, 45, 66, 0.14);
      z-index: 2;
      cursor: pointer;
    }

    .thumbs {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 12px;
      margin-top: 14px;
    }

    .thumb {
      height: 96px;
      border: 3px solid transparent;
      border-radius: 22px;
      background: #fff;
      display: grid;
      place-items: center;
      font-size: 38px;
      box-shadow: 0 10px 22px rgba(43, 45, 66, 0.08);
      cursor: pointer;
    }

    .thumb.active {
      border-color: var(--pink);
    }

    .info-card {
      padding: 30px;
    }

    .status-row {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
      margin-bottom: 14px;
    }

    .status,
    .product-id,
    .rating {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 8px 12px;
      border-radius: 999px;
      background: #fff;
      color: #4b5563;
      font-weight: 800;
      font-size: 13px;
      box-shadow: 0 8px 18px rgba(43, 45, 66, 0.07);
    }

    .status {
      background: rgba(126, 217, 87, 0.18);
      color: #247334;
    }

    .info-card h1 {
      font-size: clamp(34px, 5vw, 56px);
      line-height: 0.98;
      letter-spacing: -2px;
      margin-bottom: 16px;
    }

    .short-desc {
      color: var(--muted);
      font-size: 17px;
      margin-bottom: 22px;
    }

    .price-box {
      display: flex;
      align-items: end;
      gap: 12px;
      margin: 18px 0 22px;
    }

    .price {
      font-size: 44px;
      line-height: 1;
      font-weight: 900;
      color: var(--pink);
    }

    .old-price {
      color: #9ca3af;
      text-decoration: line-through;
      font-weight: 800;
      margin-bottom: 6px;
    }

    .detail-list {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 12px;
      margin: 22px 0;
    }

    .detail-item {
      background: #fff;
      border-radius: 20px;
      padding: 14px;
      box-shadow: 0 8px 18px rgba(43, 45, 66, 0.06);
    }

    .detail-item span {
      display: block;
      color: var(--muted);
      font-size: 13px;
      margin-bottom: 4px;
    }

    .detail-item strong {
      font-size: 15px;
    }

    .order-box {
      padding: 18px;
      border-radius: 26px;
      background: linear-gradient(135deg, rgba(85, 199, 255, 0.14), rgba(255, 95, 162, 0.12));
      margin: 20px 0;
    }

    .quantity-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      flex-wrap: wrap;
      margin-bottom: 16px;
    }

    .qty-control {
      display: inline-flex;
      align-items: center;
      gap: 12px;
      background: #fff;
      border-radius: 999px;
      padding: 7px;
      box-shadow: 0 10px 25px rgba(43, 45, 66, 0.08);
    }

    .qty-control button {
      width: 36px;
      height: 36px;
      border: 0;
      border-radius: 50%;
      background: #2b2d42;
      color: #fff;
      font-size: 20px;
      cursor: pointer;
    }

    .qty-control span {
      min-width: 22px;
      text-align: center;
      font-weight: 900;
    }

    .cta-row {
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 12px;
    }

    .cta-row .primary-btn,
    .cta-row .soft-btn {
      text-align: center;
      font-size: 15px;
    }

    .shipping-note {
      margin-top: 14px;
      display: grid;
      gap: 8px;
      color: #4b5563;
      font-weight: 700;
      font-size: 14px;
    }

    .tags {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      margin-top: 20px;
    }

    .tag {
      display: inline-flex;
      background: #fff;
      color: #4b5563;
      border-radius: 999px;
      padding: 8px 12px;
      font-weight: 800;
      box-shadow: 0 8px 18px rgba(43, 45, 66, 0.06);
      font-size: 13px;
    }

    .content-grid {
      margin: 30px 0;
      display: grid;
      grid-template-columns: 1fr 0.85fr;
      gap: 24px;
    }

    .panel-card {
      padding: 26px;
    }

    .panel-card h2 {
      font-size: 28px;
      letter-spacing: -0.8px;
      margin-bottom: 12px;
    }

    .panel-card p {
      color: var(--muted);
      margin-bottom: 12px;
    }

    .description-list {
      display: grid;
      gap: 10px;
      margin-top: 18px;
    }

    .description-list li {
      list-style: none;
      padding: 13px 14px;
      background: #fff;
      border-radius: 18px;
      box-shadow: 0 8px 18px rgba(43, 45, 66, 0.05);
      color: #374151;
      font-weight: 700;
    }

    .comment {
      display: grid;
      gap: 10px;
      padding: 16px;
      border-radius: 22px;
      background: #fff;
      box-shadow: 0 8px 18px rgba(43, 45, 66, 0.05);
      margin-bottom: 12px;
    }

    .comment-head {
      display: flex;
      justify-content: space-between;
      gap: 10px;
      color: #4b5563;
      font-weight: 900;
    }

    .comment p {
      margin: 0;
    }

    .comment-form {
      display: grid;
      gap: 10px;
      margin-top: 16px;
    }

    textarea,
    input {
      font: inherit;
    }

    .comment-form textarea {
      width: 100%;
      min-height: 110px;
      border: 2px solid rgba(85, 199, 255, 0.22);
      border-radius: 22px;
      resize: vertical;
      padding: 14px;
      outline: 0;
      background: #fff;
    }

    .section-head {
      margin: 34px 0 18px;
      display: flex;
      align-items: end;
      justify-content: space-between;
      gap: 16px;
    }

    .section-head h2 {
      font-size: 34px;
      letter-spacing: -1px;
    }

    .section-head p {
      color: var(--muted);
      margin-top: 6px;
    }

    .products {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 20px;
      margin-bottom: 54px;
    }

    .product-card {
      background: var(--card);
      border-radius: 30px;
      overflow: hidden;
      box-shadow: 0 16px 34px rgba(43, 45, 66, 0.1);
      border: 1px solid rgba(43, 45, 66, 0.06);
      transition: transform 0.22s ease, box-shadow 0.22s ease;
    }

    .product-card:hover {
      transform: translateY(-8px);
      box-shadow: 0 24px 48px rgba(43, 45, 66, 0.14);
    }

    .product-img {
      height: 180px;
      display: grid;
      place-items: center;
      font-size: 76px;
      position: relative;
      background: linear-gradient(135deg, #e8f8ff, #fff3cc);
    }

    .product-body {
      padding: 18px;
    }

    .product-body h3 {
      font-size: 19px;
      margin-bottom: 8px;
    }

    .product-body p {
      color: var(--muted);
      font-size: 14px;
      margin-bottom: 14px;
    }

    .product-meta {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
    }

    .small-price {
      font-size: 22px;
      font-weight: 900;
      color: var(--pink);
    }

    .add-cart {
      width: 46px;
      height: 46px;
      border-radius: 16px;
      border: 0;
      background: #2b2d42;
      color: #fff;
      cursor: pointer;
      font-size: 20px;
    }

    footer {
      background: #fff;
      border-top: 1px solid rgba(43, 45, 66, 0.08);
      padding: 30px 0;
      color: var(--muted);
    }

    .footer-inner {
      display: flex;
      justify-content: space-between;
      gap: 20px;
      flex-wrap: wrap;
    }

    @media (max-width: 1024px) {
      .product-detail,
      .content-grid {
        grid-template-columns: 1fr;
      }

      .gallery-card {
        position: static;
      }

      .products {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    @media (max-width: 760px) {
      .nav {
        flex-wrap: wrap;
        padding: 14px 0;
      }

      .menu {
        width: 100%;
        order: 3;
        overflow-x: auto;
        padding-bottom: 6px;
      }

      .nav-actions {
        width: 100%;
        justify-content: space-between;
      }

      .search {
        width: 100%;
      }

      .main-image {
        min-height: 340px;
        font-size: 118px;
      }

      .thumbs {
        grid-template-columns: repeat(4, 1fr);
      }

      .thumb {
        height: 72px;
        font-size: 28px;
        border-radius: 18px;
      }

      .info-card,
      .panel-card {
        padding: 22px;
        border-radius: 28px;
      }

      .detail-list {
        grid-template-columns: 1fr;
      }

      .cta-row {
        grid-template-columns: 1fr;
      }

      .products {
        grid-template-columns: 1fr;
      }
    }
    
    .price-box {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.price {
    font-size: 34px;
    font-weight: 900;
    color: #ff4b4b;
}

.old-price {
    font-size: 20px;
    color: #999;
    text-decoration: line-through;
    font-weight: 700;
}

.discount-text {
    background: #ffe8e8;
    color: #e60023;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
}

.discount-badge {
    background: #ff4b4b;
    color: #fff;
}

.comment-form select,
.comment-form textarea {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 12px;
}

.alert.error {
    background: #ffe8e8;
    color: #c40000;
    padding: 10px 12px;
    border-radius: 10px;
    margin-bottom: 12px;
}

.delete-comment-btn{
    margin-top:10px;
    padding:8px 14px;
    border:none;
    border-radius:10px;
    background:#fff1f1;
    color:#dc2626;
    font-size:13px;
    font-weight:600;
    cursor:pointer;
    transition:all .2s ease;
}

.delete-comment-btn:hover{
    background:#dc2626;
    color:#fff;
    transform:translateY(-1px);
}

.delete-comment-btn:active{
    transform:translateY(0);
}

.main-image img {
    width: 100%;
    max-height: 480px;
    object-fit: contain;
    display: block;
}

.thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 14px;
}

.thumb {
    border: 2px solid transparent;
    background: #fff;
    border-radius: 14px;
    padding: 8px;
    cursor: pointer;
    transition: .2s ease;
}

.thumb img {
    width: 100%;
    height: 70px;
    object-fit: contain;
    display: block;
}

.thumb.active,
.thumb:hover {
    border-color: #ff6b6b;
    transform: translateY(-2px);
}

.price-box {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.price {
    font-size: 34px;
    font-weight: 900;
    color: #ff4b4b;
}

.old-price {
    font-size: 20px;
    color: #999;
    text-decoration: line-through;
    font-weight: 700;
}

.discount-text {
    background: #ffe8e8;
    color: #e60023;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
}

.discount-badge {
    background: #ff4b4b;
    color: #fff;
}

.comment-form select,
.comment-form textarea {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 12px;
}

.alert.error {
    background: #ffe8e8;
    color: #c40000;
    padding: 10px 12px;
    border-radius: 10px;
    margin-bottom: 12px;
}

.delete-comment-btn {
    margin-top: 10px;
    padding: 8px 14px;
    border: none;
    border-radius: 10px;
    background: #fff1f1;
    color: #dc2626;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s ease;
}

.delete-comment-btn:hover {
    background: #dc2626;
    color: #fff;
}

.product-img {
    position: relative;
}

.similar-discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ff4b4b;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    padding: 5px 9px;
    border-radius: 999px;
    z-index: 2;
}

.similar-price-box {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.similar-old-price {
    color: #999;
    font-size: 13px;
    font-weight: 700;
    text-decoration: line-through;
}

.similar-discount-text {
    background: #ffe8e8;
    color: #e60023;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 7px;
    border-radius: 999px;
}