@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Outfit", serif;
}

body {
    color: #333;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 9%;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo{
    font-size: 22px;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 2px;
}

nav .cart-icon {
    position: relative;
    font-size: 30px;
    color: #333;
    display: flex;
}

nav .cart-icon .cart-item-count {
    position: absolute;
    top: 0;
    right: -6px;
    width: 20px;
    height: 20px;
    background: #2ecf64;
    border-radius: 50%;
    font-size: 12px;
    color: #fff;
    line-height: 20px;
    text-align: center;
    display: none;
}




/* ================================
   PRODUCT COLLECTION SECTION
================================= */
.product-collection {
    padding: 100px 9% 40px;
}

.product-collection h1 {
    font-size: 38px;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    background: linear-gradient(45deg, blue, red);
    -webkit-background-clip: text;
    color: transparent;
}

/* GRID LAYOUT */
.product-collection .product-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
}

/* PRODUCT CARD */
.product-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 12px;
    box-shadow: 0 8px 10px rgba(0,0,0,0.1);
    transition: 0.4s ease;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

/* CARD HOVER EFFECT */
.product-card:hover {
    transform: translateY(-8px);
}

/* IMAGE BOX */
.img-box {
    width: 100%;
    height: 100%;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.img-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: 0.6s ease;
}

.product-card:hover .img-box img {
    transform: scale(1.1);
}

.wishlist-icon {
    position: absolute;
    top: 5px;
    right: auto;
    left: 8px;
    font-size: 25px;
    padding: 5px;
    color: #d80707;
    transition: 0.35s ease;
    cursor: pointer;
    opacity: 0;
    transform: translateY(-10px);
}

.product-card:hover .wishlist-icon,
.product-card:hover .add-cart-icon {
    opacity: 1;
    transform: translateY(0);
}

/* ICON HOVER */
.wishlist-icon:hover i,
.add-cart-icon:hover i {
    transform: scale(1.2);
    transition: 0.3s;
}

.product-card .title {
    font-size: 18px;
    font-weight: 600;
    margin-top: 15px;
    color: #1b1b1b;
}

.price-btn-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

/* PRICE STYLE */
.product-card .price {
    font-size: 18px;
    font-weight: 700;
    color: #1b8a37;
    margin: 0;
}

/* ADD TO CART BUTTON */
.addCartBtn {
    border: none;
    padding: 8px 20px;
    background: linear-gradient(135deg, #4687d1, #e03887);
    color: white;
    border-radius: 20px;
    cursor: pointer;
    transition: 0.3s ease;
    font-size: 14px;
}

.addCartBtn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}








/* ============================
      PRODUCT DETAIL MAIN
============================= */
.product-detail {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 45px;
    padding: 130px 9% 60px;
    align-items: start;
}

/* LEFT SIDE: IMAGE SECTION */
.product-detail .product-img {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 15px;
    height: 540px;
}

/* THUMBNAILS */
.thumbnail-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.thumbnail-list img {
    width: 100%;
    height: calc(100% / 4 - 10px);
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s ease;
    border: 2px solid transparent;
}

.thumbnail-list img:hover {
    transform: scale(1.05);
    border-color: #c050ff;
}

/* MAIN IMAGE */
.main-img img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    transition: 0.4s ease;
}

/* Hover zoom effect */
.main-img:hover img {
    transform: scale(1.03);
}

/* ============================
      PRODUCT INFORMATION
============================= */
.product-info {
    padding-right: 20px;
}

.product-info .title {
    font-size: 34px;
    font-weight: 700;
    line-height: 1.2;
    color: rgb(27, 27, 27);
}

/* RATING */
.rating i {
    color: #ff9100;
    font-size: 20px;
}

.rating span {
    margin-left: 8px;
    font-size: 15px;
    color: #333;
}

/* PRICE */
.price {
    display: block;
    font-size: 28px;
    font-weight: 700;
    margin: 10px 0;
    color: red;
}

/* DESCRIPTION */
.description {
    line-height: 1.3;
    font-size: 15px;
    color: #555;
    margin-bottom: 15px;
}

/* ============================
      SIZE OPTIONS
============================= */
.size-selection p,
.color-selection p {
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 16px;
}

.size-options,
.color-options {
    display: flex;
    gap: 12px;
}

.size-options button {
    width: 48px;
    height: 48px;
    background: #f3f3f3;
    border-radius: 12px;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 16px;
    transition: 0.25s ease;
}

.size-options button:hover {
    background: #e8d4ff;
}

.size-options .selected {
    border-color: #9a4aff;
    background: #f0dcff;
}

/* ============================
      COLOR OPTIONS
============================= */
.color-options img {
    width: 75px;
    height: 75px;
    border-radius: 12px;
    cursor: pointer;
    border: 2px solid transparent;
    object-fit: cover;
    box-shadow: 0 3px 12px rgba(0,0,0,0.12);
    transition: 0.3s ease;
}

.color-options img:hover {
    transform: scale(1.07);
}

.color-options .selected {
    border-color: #9a4aff;
}

/* ============================
      ADD TO CART BUTTON
============================= */
.btn {
    padding: 14px 50px;
    margin: 20px 0;
    border: none;
    border-radius: 50px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    background: linear-gradient(135deg, #4687d1, #e03887);
    color: #fff;
    box-shadow: 0 8px 20px rgba(155, 0, 255, 0.25);
    transition: 0.3s ease;
}

.btn i{
    margin-right: 10px;
}
.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(155, 0, 255, 0.35);
}

/* ============================
      POLICY
============================= */
.product-policy {
    border-top: 1px solid #ddd;
    padding-top: 12px;
    margin-top: 15px;
}

.product-policy p {
    margin: 5px 0;
    color: #666;
    font-size: 14px;
}





/* =============== CART PAGE BEAUTIFUL UI =============== */

.cart {
    padding: 120px 8% 50px;
    font-family: 'Poppins', sans-serif;
}

/* Gradient Title */
.cart-header {
    display: flex;
    padding: 15px 10px;
    font-weight: 600;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, #4687d1, #e03887);
    color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(200, 100, 255, 0.4);
}

.cart-header span {
    flex: 1;
    text-align: center;
}

.cart-header span:first-child {
    flex: 2;
    text-align: left;
}

/* Cart Items */
.cart-item {
    display: flex;
    align-items: center;
    padding: 18px 12px;
    border-radius: 12px;
    margin: 15px 0;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.08);
    transition: 0.3s ease-in-out;
}

.cart-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

.cart-item .product {
    display: flex;
    align-items: center;
    flex: 2;
}

.cart-item img {
    width: 85px;
    height: 85px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 15px;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.15);
}

/* Color + Size Box */
.size-colo-box {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
}

.size-colo-box span {
    background: #eae9ff;
    padding: 5px 8px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
}

/* Price, Qty, Total */
.cart-item :is(.price, .quantity, .total-price) {
    flex: 1;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
}

/* Qty Input */
.cart-item .quantity input {
    width: 55px;
    padding: 6px;
    border: 2px solid #d0c3ff;
    border-radius: 6px;
    outline: none;
    text-align: center;
    transition: 0.3s;
}

.cart-item .quantity input:focus {
    border-color: #b48aff;
    box-shadow: 0 0 8px rgba(180, 138, 255, 0.5);
}

/* Remove Button */
.cart-item .remove {
    background: transparent;
    border: none;
    flex: 1;
    text-align: center;
}

.cart-item .remove i {
    font-size: 22px;
    color: #ff5b5b;
    cursor: pointer;
    transition: 0.3s;
}

.cart-item .remove i:hover {
    color: #ff0000;
    transform: rotate(90deg);
}

/* =============== CART TOTAL SECTION =============== */
.cart-total {
    width: 380px;
    margin: 50px 0 0 auto;
    padding: 25px;
    border-radius: 15px;
    background: linear-gradient(135deg, #f9e2ff, #e6ddff);
    box-shadow: 0 10px 25px rgba(150, 100, 255, 0.3);
}

.cart-total h3 {
    margin-bottom: 20px;
    font-size: 22px;
    color: #4d2c73;
}

.cart-total p {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 15px;
}

.cart-total p:not(:last-of-type) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
    margin-bottom: 10px;
}

.cart-total p:last-of-type {
    font-weight: 700;
    font-size: 17px;
}

/* Checkout Button */
.cart-total .btn {
    display: block;
    width: 100%;
    padding: 12px 30px;
    margin-top: 25px;
    border: none;
    background: linear-gradient(90deg, #a45bff, #ff74d2);
    color: #fff;
    font-size: 16px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 8px 18px rgba(255, 90, 200, 0.4);
    transition: 0.3s ease-in-out;
}

.cart-total .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(255, 80, 190, 0.6);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cart-header {
        display: none;
    }

    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
    }

    .cart-item > * {
        margin-bottom: 10px;
        text-align: left !important;
    }

    .cart-total {
        width: 100%;
    }
}
