/* Modern Cart Styles */
.cart-container {
  max-width: 700px;
  margin: 2.5rem auto 2rem auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  padding: 2.2rem 1.5rem 1.5rem 1.5rem;
  box-sizing: border-box;
}

.cart-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #009688;
  margin-bottom: 1.2rem;
  text-align: center;
  letter-spacing: 0.01em;
}

.cart-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 0.5rem;
  margin-bottom: 1.5rem;
}
.cart-table th, .cart-table td {
  padding: 0.7rem 0.5rem;
  text-align: center;
}
.cart-table th {
  background: #f7f7f7;
  color: #009688;
  font-weight: 600;
  font-size: 1.05rem;
  border-radius: 8px 8px 0 0;
}
.cart-table td {
  background: #fafafa;
  border-radius: 8px;
  font-size: 1rem;
  color: #333;
  vertical-align: middle;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.cart-table img {
  max-width: 60px;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.cart-remove-btn {
  background: #ff5252;
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 0.5rem 1.1rem;
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.18s;
  box-shadow: 0 2px 8px rgba(255,82,82,0.08);
}
.cart-remove-btn:hover {
  background: #c62828;
}

.cart-summary {
  background: #f7f7f7;
  border-radius: 12px;
  padding: 1.1rem 1.2rem;
  margin-top: 1.2rem;
  margin-bottom: 1.2rem;
  text-align: right;
  font-size: 1.08rem;
  color: #222;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.cart-summary strong {
  color: #009688;
  font-size: 1.15rem;
}

.cart-action-btn {
  display: inline-block;
  background: linear-gradient(90deg, #009688 60%, #43e97b 100%);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 0.8rem 2.2rem;
  font-size: 1.08rem;
  font-weight: 700;
  margin-top: 0.7rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,150,136,0.08);
  transition: background 0.18s, box-shadow 0.18s;
  letter-spacing: 0.01em;
}
.cart-action-btn:hover {
  background: linear-gradient(90deg, #43e97b 0%, #009688 100%);
  box-shadow: 0 4px 16px rgba(0,150,136,0.18);
}

@media (max-width: 600px) {
  .cart-container {
    padding: 1.1rem 0.2rem 1.2rem 0.2rem;
  }
  .cart-table th, .cart-table td {
    font-size: 0.95rem;
    padding: 0.5rem 0.2rem;
  }
  .cart-summary {
    font-size: 0.98rem;
    padding: 0.7rem 0.5rem;
  }
  .cart-action-btn {
    padding: 0.7rem 1.2rem;
    font-size: 1rem;
  }
}
/* Modern Modal Styles */
#product-modal.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.45);
  justify-content: center;
  align-items: center;
  transition: background 0.3s;
}

/* Modal Content Responsive & Modern */
#product-modal .modal-content {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  padding: 2rem 1.2rem 1.7rem 1.2rem;
  min-width: 260px;
  max-width: 370px;
  width: 92vw;
  position: relative;
  animation: modalIn 0.25s cubic-bezier(.4,2,.6,1) both;
  box-sizing: border-box;
}

@media (max-width: 480px) {
  #product-modal .modal-content {
    max-width: 98vw;
    padding: 1.1rem 0.3rem 1.2rem 0.3rem;
  }
  #product-modal img {
    max-width: 120px;
  }
}

@keyframes modalIn {
  0% { transform: translateY(40px) scale(0.95); opacity: 0; }
  100% { transform: none; opacity: 1; }
}

#modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #f5f5f5;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 1.3rem;
  color: #888;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  z-index: 2;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}
#modal-close:hover {
  background: #ff5252;
  color: #fff;
}

#product-modal img {
  max-width: 150px;
  border-radius: 12px;
  margin-bottom: 1.1rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  display: block;
  margin-left: auto;
  margin-right: auto;
}

#modal-product-name {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: #222;
  text-align: center;
  letter-spacing: 0.01em;
}
#modal-product-price {
  font-size: 1.05rem;
  color: #009688;
  margin-bottom: 1.1rem;
  text-align: center;
  font-weight: 500;
}

.size-btn {
  display: inline-block;
  margin: 0 0.22rem 0.7rem 0.22rem;
  padding: 0.55rem 1.05rem;
  border: 2px solid #bbb;
  border-radius: 50px;
  background: #f7f7f7;
  color: #333;
  font-size: 0.98rem;
  cursor: pointer;
  transition: all 0.18s;
  outline: none;
  font-weight: 500;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.size-btn.selected-size,
.size-btn:hover {
  background: #009688;
  color: #fff;
  border-color: #009688;
  box-shadow: 0 2px 8px rgba(0,150,136,0.13);
}

#confirm-add-cart {
  display: block;
  width: 100%;
  margin-top: 1.1rem;
  padding: 0.78rem 0;
  background: linear-gradient(90deg, #009688 60%, #43e97b 100%);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 1.07rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,150,136,0.08);
  transition: background 0.18s, box-shadow 0.18s;
  letter-spacing: 0.01em;
}
#confirm-add-cart:disabled {
  background: #ccc;
  color: #888;
  cursor: not-allowed;
  box-shadow: none;
}
#confirm-add-cart:not(:disabled):hover {
  background: linear-gradient(90deg, #43e97b 0%, #009688 100%);
  box-shadow: 0 4px 16px rgba(0,150,136,0.18);
}

/* Modernize buy/add-cart buttons */
.buy-btn, .add-cart-btn {
  background: linear-gradient(90deg, #009688 60%, #43e97b 100%);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 0.7rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0.3rem 0.2rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,150,136,0.08);
  transition: background 0.18s, box-shadow 0.18s;
  letter-spacing: 0.01em;
}
.buy-btn:hover, .add-cart-btn:hover {
  background: linear-gradient(90deg, #43e97b 0%, #009688 100%);
  box-shadow: 0 4px 16px rgba(0,150,136,0.18);
}
/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Poppins", sans-serif;
    background-color: #ffffff;
    color: #333;
    line-height: 1.8;
    font-weight: 400;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Primary accent color */
:root {
    --primary-color: #007bff;
    --primary-color-hover: #0056b3;
    --secondary-color: #6c757d;
    --background-color: #ffffff;
    --text-color: #333333;
    --border-radius: 12px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
header {
    background-color: var(--primary-color);
    color: #fff;
    padding: 20px 0;
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

/* Logo */
.logo {
    height: 60px;
    transition: height 0.3s ease;
}

/* Search form */
.search-form {
    display: flex;
    align-items: center;
    flex-grow: 1;
    max-width: 500px;
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.search-form input[type="search"] {
    flex-grow: 1;
    padding: 10px 15px;
    border: none;
    font-size: 1rem;
    outline: none;
    color: var(--text-color);
}

.search-form input[type="search"]::placeholder {
    color: var(--secondary-color);
}

.search-form button {
    padding: 10px 20px;
    border: none;
    background-color: var(--primary-color);
    color: white;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-form button:hover {
    background-color: var(--primary-color-hover);
}

/* Navigation menu */
.nav-menu {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-menu li a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.nav-menu li a:hover {
    color: var(--secondary-color);
}

/* Sections */
.section {
    margin: 60px 0;
}

.section h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Filter bar */
.filter-bar {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.filter-btn {
    background-color: #f8f9fa;
    border: none;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    color: var(--secondary-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Slider */
.slider {
    position: relative;
    overflow: hidden;
    max-width: 100%;
    margin: 0 auto 60px auto;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    position: relative;
    display: none;
    flex-shrink: 0;
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
    box-sizing: border-box;
}

.slide.active {
    display: block;
}

.slide img {
    width: 100%;
    border-radius: var(--border-radius);
    max-height: 350px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.slide img:hover {
    transform: scale(1.05);
}

.slide-info {
    margin-top: 15px;
    text-align: center;
}

.slide-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--primary-color);
}

.slide-info p {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Buy button */
.buy-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 700;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
    box-shadow: var(--box-shadow);
    margin-left: 10px;
}

.buy-btn:hover {
    background-color: var(--primary-color-hover);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

/* Add to cart button */
.add-cart-btn {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 700;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
    box-shadow: var(--box-shadow);
}

.add-cart-btn:hover {
    background-color: #218838;
}

/* Slider buttons */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 123, 255, 0.8);
    color: white;
    border: none;
    font-size: 2.5rem;
    padding: 8px 14px;
    cursor: pointer;
    border-radius: 50%;
    user-select: none;
    transition: background-color 0.3s ease;
    box-shadow: var(--box-shadow);
}

.prev:hover, .next:hover {
    background-color: rgba(0, 86, 179, 0.9);
}

.prev {
    left: 15px;
}

.next {
    right: 15px;
}

/* Product grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
}

.product-card {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 123, 255, 0.3);
}

.product-card img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.product-card img:hover {
    transform: scale(1.05);
}

.product-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--primary-color);
}

.product-card p {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 15px;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: #fff;
    padding: 30px 0;
    text-align: center;
    font-size: 1rem;
    box-shadow: var(--box-shadow);
}

/* Responsive */
@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }

    .nav-menu {
        flex-direction: column;
        gap: 15px;
    }

    .product-card img {
        height: 150px;
    }

    /* Adjust product grid to 2 columns */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* Adjust font sizes for headings */
    .section h2 {
        font-size: 2rem;
    }

    /* Adjust buy button padding */
    .buy-btn {
        padding: 10px 20px;
        font-size: 1rem;
    }

    /* Adjust slider image max height */
    .slide img {
        max-height: 250px;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .section h2 {
        font-size: 1.5rem;
    }

    .buy-btn {
        padding: 8px 16px;
        font-size: 0.95rem;
    }

    .slide img {
        max-height: 180px;
    }

    .nav-menu li a {
        font-size: 1.1rem;
    }
}

/* HOT label */
.hot-label {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(45deg, #ff0000, #ff9900, #ff0000);
    background-size: 200% 200%;
    color: white;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 5px;
    animation: flame 1.5s infinite alternate;
    box-shadow: 0 0 8px #ff6600, 0 0 15px #ff3300;
    user-select: none;
    z-index: 10;
}

/* Modal Popup Styles */
.modal {
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease forwards;
}

.modal-content {
    background-color: #fff;
    padding: 20px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    max-width: 400px;
    width: 90%;
    position: relative;
    transform: scale(0.7);
    animation: zoomIn 0.3s ease forwards;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-button:hover {
    color: #000;
}

@keyframes fadeIn {
    from { background-color: rgba(0,0,0,0); }
    to { background-color: rgba(0,0,0,0.5); }
}

@keyframes zoomIn {
    from { transform: scale(0.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
header {
    background-color: #4a90e2; /* Changed to a modern blue color */
    color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* Logo */
.logo {
    height: 80px;
}

.logo {
    height: 50px;
}

/* Search form */
.search-form {
    display: flex;
    align-items: center;
    flex-grow: 1;
    max-width: 400px;
}

.search-form input[type="search"] {
    flex-grow: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 25px 0 0 25px;
    font-size: 1rem;
    outline: none;
}

.search-form button {
    padding: 8px 16px;
    border: none;
    background-color: #ff6f61;
    color: white;
    font-weight: 600;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-form button:hover {
    background-color: #e65b50;
}

/* Responsive adjustments for header and search */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .search-form {
        max-width: 100%;
    }
}


.nav-menu {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-menu li a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-menu li a:hover {
    color: #ff6f61;
}

/* Sections */
.section {
    margin: 40px 0;
}

.section h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 2rem;
    color: #222;
}

/* Filter bar */
.filter-bar {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.filter-btn {
    background-color: #eee;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
    background-color: #ff6f61;
    color: white;
}

/* Slider */
.slider {
    position: relative;
    overflow: hidden;
    max-width: 100%;
    margin: 0 auto;
}

.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    position: relative;
    display: none;
    flex-shrink: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 20px;
    box-sizing: border-box;
}

.slide.active {
    display: block;
}

.slide img {
    width: 100%;
    border-radius: 8px;
    max-height: 300px;
    object-fit: cover;
}

.slide-info {
    margin-top: 10px;
    text-align: center;
}

.slide-info h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.slide-info p {
    font-size: 1rem;
    color: #ff6f61;
    margin-bottom: 10px;
}

.buy-btn {
    background-color: #ff6f61;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.buy-btn:hover {
    background-color: #e65b50;
}

/* Slider buttons */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(34, 34, 34, 0.7);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 50%;
    user-select: none;
    transition: background-color 0.3s ease;
}

.prev:hover, .next:hover {
    background-color: rgba(255, 111, 97, 0.9);
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

/* Product grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.product-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 15px;
    text-align: center;
    transition: transform 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    width: 100%;
    height: 150px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 10px;
}

.product-card h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.product-card p {
    color: #ff6f61;
    font-weight: 600;
    margin-bottom: 10px;
}

/* Footer */
footer {
    background-color: #222;
    color: #fff;
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
}

.footer-container p {
    margin: 5px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 10px;
    }

    .nav-menu {
        flex-direction: column;
        gap: 10px;
    }

    .product-card img {
        height: 150px;
    }

    /* Adjust product grid to 2 columns */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    /* Adjust font sizes for headings */
    .section h2 {
        font-size: 1.5rem;
    }

    /* Adjust buy button padding */
    .buy-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    /* Adjust slider image max height */
    .slide img {
        max-height: 200px;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .section h2 {
        font-size: 1.2rem;
    }

    .buy-btn {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    .slide img {
        max-height: 150px;
    }

    .nav-menu li a {
        font-size: 1rem;
    }
}

/* HOT label */
.hot-label {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(45deg, #ff0000, #ff9900, #ff0000);
    background-size: 200% 200%;
    color: white;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 5px;
    animation: flame 1.5s infinite alternate;
    box-shadow: 0 0 8px #ff6600, 0 0 15px #ff3300;
    user-select: none;
    z-index: 10;
}

@keyframes flame {
    0% {
        background-position: 0% 50%;
        text-shadow: 0 0 5px #ff3300, 0 0 10px #ff6600;
    }
    100% {
        background-position: 100% 50%;
        text-shadow: 0 0 10px #ff6600, 0 0 20px #ff3300;
    }
}
