/* ===== Little Tail SA - Retail Store ===== */
/* Color Theme: Pink & Yellow */

:root {
  --pink-primary: #FF6B8A;
  --pink-dark: #E85577;
  --pink-light: #FFE4EC;
  --pink-bg: #FFF5F8;
  --yellow-primary: #FFD93D;
  --yellow-dark: #F5C518;
  --yellow-light: #FFF9E6;
  --text-dark: #2D2D2D;
  --text-medium: #555555;
  --text-light: #888888;
  --white: #FFFFFF;
  --gray-bg: #F8F8F8;
  --border: #EEEEEE;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-hover: 0 4px 20px rgba(255,107,138,0.2);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Header ===== */
.header-top {
  background: linear-gradient(135deg, var(--pink-primary), var(--yellow-primary));
  color: white;
  text-align: center;
  padding: 8px 0;
  font-size: 13px;
  font-weight: 500;
}

.header-main {
  background: var(--white);
  padding: 15px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.logo {
  font-size: 28px;
  font-weight: 800;
  color: var(--pink-primary);
  letter-spacing: -0.5px;
}

.logo span {
  color: var(--yellow-dark);
}

.search-bar {
  flex: 1;
  max-width: 500px;
  margin: 0 30px;
  position: relative;
}

.search-bar input {
  width: 100%;
  padding: 10px 40px 10px 16px;
  border: 2px solid var(--pink-light);
  border-radius: 25px;
  font-size: 14px;
  outline: none;
  transition: var(--transition);
}

.search-bar input:focus {
  border-color: var(--pink-primary);
}

.search-bar button {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--pink-primary);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-icons {
  display: flex;
  gap: 20px;
  align-items: center;
}

.header-icons a {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 12px;
  color: var(--text-medium);
  gap: 2px;
  transition: var(--transition);
}

.header-icons a:hover {
  color: var(--pink-primary);
}

.header-icons .icon {
  font-size: 22px;
}

.cart-count {
  background: var(--pink-primary);
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -5px;
  right: -5px;
}

/* ===== Navigation ===== */
.nav {
  background: var(--pink-bg);
  padding: 12px 0;
}

.nav .container {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
}

.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  padding: 6px 16px;
  border-radius: 20px;
  transition: var(--transition);
}

.nav a:hover, .nav a.active {
  background: var(--pink-primary);
  color: white;
}

/* ===== Hero Banner ===== */
.hero {
  background: linear-gradient(135deg, var(--pink-light) 0%, var(--yellow-light) 100%);
  padding: 60px 0;
  overflow: hidden;
}

.hero .container {
  display: flex;
  align-items: center;
  gap: 40px;
}

.hero-text {
  flex: 1;
}

.hero-text h1 {
  font-size: 42px;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.hero-text h1 span {
  color: var(--pink-primary);
}

.hero-text p {
  font-size: 17px;
  color: var(--text-medium);
  margin-bottom: 28px;
}

.hero-btns {
  display: flex;
  gap: 15px;
}

.btn {
  padding: 12px 32px;
  border-radius: 25px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  display: inline-block;
  text-align: center;
}

.btn-primary {
  background: var(--pink-primary);
  color: white;
}

.btn-primary:hover {
  background: var(--pink-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-yellow {
  background: var(--yellow-primary);
  color: var(--text-dark);
}

.btn-yellow:hover {
  background: var(--yellow-dark);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--pink-primary);
  color: var(--pink-primary);
}

.btn-outline:hover {
  background: var(--pink-primary);
  color: white;
}

.hero-image {
  flex: 1;
  text-align: center;
}

.hero-image .placeholder {
  width: 100%;
  max-width: 450px;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--pink-primary), var(--yellow-primary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  margin: 0 auto;
  box-shadow: 0 8px 32px rgba(255,107,138,0.3);
}

/* ===== Features Bar ===== */
.features {
  background: white;
  padding: 25px 0;
  border-bottom: 1px solid var(--border);
}

.features .container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.feature-item .icon {
  font-size: 28px;
}

.feature-item strong {
  display: block;
  color: var(--text-dark);
}

.feature-item span {
  color: var(--text-light);
  font-size: 12px;
}

/* ===== Section Title ===== */
.section-title {
  text-align: center;
  margin: 50px 0 30px;
}

.section-title h2 {
  font-size: 30px;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.section-title h2 span {
  color: var(--pink-primary);
}

.section-title p {
  color: var(--text-light);
  font-size: 15px;
}

/* ===== Product Grid ===== */
.products-section {
  padding: 20px 0 60px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 30px;
}

.product-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.product-card .badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--pink-primary);
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  z-index: 2;
}

.product-card .badge.bestseller {
  background: var(--yellow-dark);
  color: var(--text-dark);
}

.product-card .badge.new {
  background: #4CAF50;
}

.product-image {
  width: 100%;
  aspect-ratio: 1;
  background: var(--gray-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 50px;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info {
  padding: 16px;
}

.product-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-dark);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--text-light);
}

.stars {
  color: var(--yellow-dark);
  font-size: 14px;
}

.product-price {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.price-now {
  font-size: 20px;
  font-weight: 700;
  color: var(--pink-primary);
}

.price-old {
  font-size: 14px;
  color: var(--text-light);
  text-decoration: line-through;
}

.product-actions {
  display: flex;
  gap: 8px;
}

.btn-add-cart {
  flex: 1;
  background: var(--pink-primary);
  color: white;
  border: none;
  padding: 9px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-add-cart:hover {
  background: var(--pink-dark);
}

.btn-wishlist {
  background: var(--pink-light);
  border: none;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 16px;
  transition: var(--transition);
}

.btn-wishlist:hover {
  background: var(--pink-primary);
  color: white;
}

/* ===== Product List View ===== */
.product-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.product-list .product-card {
  display: flex;
  flex-direction: row;
  overflow: hidden;
}

.product-list .product-image {
  width: 200px;
  min-width: 200px;
  aspect-ratio: 1;
}

.product-list .product-info {
  flex: 1;
  padding: 20px;
}

.product-list .product-name {
  font-size: 17px;
  -webkit-line-clamp: 1;
}

.product-list .product-desc {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* View Toggle */
.view-toggle {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 20px;
}

.view-toggle button {
  background: var(--gray-bg);
  border: none;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 18px;
  transition: var(--transition);
}

.view-toggle button.active {
  background: var(--pink-primary);
  color: white;
}

.view-toggle span {
  font-size: 14px;
  color: var(--text-light);
  margin-left: auto;
}

/* ===== Best Sellers Section ===== */
.bestsellers {
  background: var(--yellow-light);
  padding: 50px 0;
}

.bestsellers .product-grid {
  grid-template-columns: repeat(4, 1fr);
}

/* Rank badge */
.rank-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: white;
  z-index: 2;
}

.rank-1 { background: #FFD700; }
.rank-2 { background: #C0C0C0; }
.rank-3 { background: #CD7F32; }
.rank-4, .rank-5 { background: var(--pink-primary); }

/* ===== Reviews Section ===== */
.reviews-section {
  padding: 50px 0;
  background: var(--pink-bg);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 30px;
}

.review-card {
  background: white;
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink-primary), var(--yellow-primary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 18px;
}

.review-name {
  font-weight: 600;
  font-size: 14px;
}

.review-date {
  font-size: 12px;
  color: var(--text-light);
}

.review-stars {
  color: var(--yellow-dark);
  margin-bottom: 8px;
  font-size: 15px;
}

.review-text {
  font-size: 14px;
  color: var(--text-medium);
  line-height: 1.6;
}

/* ===== Newsletter ===== */
.newsletter {
  background: linear-gradient(135deg, var(--pink-primary), var(--yellow-primary));
  padding: 50px 0;
  text-align: center;
  color: white;
}

.newsletter h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.newsletter p {
  margin-bottom: 24px;
  opacity: 0.9;
}

.newsletter-form {
  display: flex;
  max-width: 450px;
  margin: 0 auto;
  gap: 10px;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 20px;
  border: none;
  border-radius: 25px;
  font-size: 14px;
  outline: none;
}

.newsletter-form button {
  background: var(--text-dark);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.newsletter-form button:hover {
  background: #1a1a1a;
}

/* ===== Footer ===== */
.footer {
  background: var(--text-dark);
  color: #aaa;
  padding: 50px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
}

.footer-col h3 {
  color: white;
  font-size: 16px;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  font-size: 14px;
  color: #aaa;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--pink-primary);
}

.footer-col p {
  font-size: 14px;
  line-height: 1.8;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--pink-primary);
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
}

/* ===== Cart Page ===== */
.cart-page {
  padding: 40px 0 60px;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
}

.cart-table th {
  background: var(--pink-bg);
  padding: 14px;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
}

.cart-table td {
  padding: 16px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.cart-product {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-product img, .cart-product .cart-thumb {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-sm);
  background: var(--gray-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 0;
}

.qty-control button {
  width: 30px;
  height: 30px;
  border: 1px solid var(--border);
  background: white;
  cursor: pointer;
  font-size: 16px;
  transition: var(--transition);
}

.qty-control button:hover {
  background: var(--pink-light);
}

.qty-control input {
  width: 45px;
  height: 30px;
  text-align: center;
  border: 1px solid var(--border);
  border-left: none;
  border-right: none;
  font-size: 14px;
  outline: none;
}

.cart-summary {
  background: var(--pink-bg);
  padding: 24px;
  border-radius: var(--radius);
}

.cart-summary h3 {
  font-size: 18px;
  margin-bottom: 16px;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 14px;
}

.cart-summary-row.total {
  border-top: 2px solid var(--pink-primary);
  padding-top: 12px;
  font-size: 20px;
  font-weight: 700;
}

.cart-summary .btn {
  width: 100%;
  margin-top: 16px;
}

/* ===== Product Detail Page ===== */
.product-detail {
  padding: 30px 0 60px;
}

.breadcrumb {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 20px;
}

.breadcrumb a:hover {
  color: var(--pink-primary);
}

.product-detail-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.product-detail-image {
  background: var(--gray-bg);
  border-radius: var(--radius);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 100px;
  overflow: hidden;
}

.product-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-detail-info h1 {
  font-size: 28px;
  margin-bottom: 12px;
}

.product-detail-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--text-light);
}

.product-detail-price {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.product-detail-price .price-now {
  font-size: 32px;
}

.product-detail-desc {
  font-size: 14px;
  color: var(--text-medium);
  margin-bottom: 20px;
  line-height: 1.8;
}

.product-detail-options {
  margin-bottom: 20px;
}

.product-detail-options label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 14px;
}

.option-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.option-btn {
  padding: 8px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: white;
  cursor: pointer;
  font-size: 14px;
  transition: var(--transition);
}

.option-btn.active, .option-btn:hover {
  border-color: var(--pink-primary);
  background: var(--pink-light);
  color: var(--pink-primary);
}

.color-option {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
}

.color-option.active, .color-option:hover {
  border-color: var(--pink-primary);
  transform: scale(1.1);
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.qty-row label {
  font-weight: 600;
  font-size: 14px;
}

.detail-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.detail-actions .btn {
  flex: 1;
  padding: 14px;
  font-size: 16px;
}

.product-meta {
  font-size: 13px;
  color: var(--text-light);
  line-height: 2;
}

.product-meta span {
  color: var(--text-dark);
}

/* Tabs */
.product-tabs {
  margin-top: 50px;
}

.tab-headers {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 24px;
}

.tab-header {
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
  color: var(--text-light);
}

.tab-header.active {
  color: var(--pink-primary);
  border-bottom-color: var(--pink-primary);
}

.tab-content {
  display: none;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-medium);
}

.tab-content.active {
  display: block;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hero .container {
    flex-direction: column;
    text-align: center;
  }
  .hero-text h1 {
    font-size: 30px;
  }
  .search-bar {
    display: none;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .reviews-grid {
    grid-template-columns: 1fr;
  }
  .product-detail-main {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .nav .container {
    gap: 5px;
  }
  .nav a {
    font-size: 13px;
    padding: 6px 10px;
  }
  .features .container {
    flex-direction: column;
    align-items: center;
  }
  .product-list .product-card {
    flex-direction: column;
  }
  .product-list .product-image {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
  .hero-btns {
    flex-direction: column;
  }
}
