/* ===== 2Y PRINTS - Clean Professional Style ===== */
:root {
  --primary: #1e3a8a;
  --primary-light: #3b82f6;
  --accent: #2563eb;
  --dark: #0f172a;
  --gray-800: #1e293b;
  --gray-600: #475569;
  --gray-400: #94a3b8;
  --gray-200: #e2e8f0;
  --gray-100: #f1f5f9;
  --gray-50: #f8fafc;
  --white: #ffffff;
  --success: #10b981;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --transition: all 0.25s ease;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--gray-50);
  color: var(--dark);
  line-height: 1.6;
  min-height: 100vh;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ===== ANNOUNCEMENT BAR ===== */
.announcement {
  background: var(--primary);
  color: white;
  text-align: center;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
}

/* ===== HEADER ===== */
.header {
  background: white;
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo img { height: 40px; width: auto; display: block; }
.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.logo span {
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  font-weight: 800;
}

.nav {
  display: flex;
  gap: 1.8rem;
  align-items: center;
}

.nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--gray-600);
  transition: var(--transition);
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cart-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--primary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}

.cart-btn:hover {
  background: var(--primary-light);
}

.cart-count {
  background: white;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  background: #0f172a;
  color: white;
  padding: 5rem 1.5rem;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30,58,138,0.7), rgba(15,23,42,0.85));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

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

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

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.5);
}

.btn-outline:hover {
  border-color: white;
  background: rgba(255,255,255,0.1);
}

/* ===== SECTIONS ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 0.4rem;
  color: var(--dark);
}

.section-subtitle {
  text-align: center;
  color: var(--gray-600);
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}

/* ===== CATEGORIES ===== */
.categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.2rem;
}

.category-card {
  background: white;
  border-radius: var(--radius);
  padding: 1.8rem 1rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--gray-200);
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.category-icon {
  font-size: 2.4rem;
  margin-bottom: 0.7rem;
}

.category-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
}

/* ===== PRODUCT GRID ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.product-image {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--gray-100);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--primary);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  text-transform: uppercase;
}

.badge.soldout {
  background: #64748b;
  color: #fff;
}
.product-card--unavailable .product-image img {
  opacity: 0.75;
  filter: grayscale(0.25);
}
.badge.new {
  background: var(--success);
}

.product-info {
  padding: 1.1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-category {
  font-size: 0.75rem;
  color: var(--primary-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 0.25rem;
}

.product-name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.3;
  color: var(--dark);
}

.product-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.add-to-cart {
  background: var(--primary);
  color: white;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: var(--transition);
}

.add-to-cart:hover {
  background: var(--primary-light);
  transform: scale(1.08);
}

/* ===== FILTERS ===== */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.filter-btn {
  padding: 0.45rem 1.1rem;
  border-radius: 50px;
  border: 1.5px solid var(--gray-200);
  background: white;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  color: var(--gray-600);
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
}

/* ===== PRODUCT DETAIL ===== */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  background: white;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
}

.detail-gallery img {
  width: 100%;
  border-radius: 10px;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--gray-100);
}

.detail-info h1 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.detail-category {
  color: var(--primary-light);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.detail-price {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 1.2rem;
}

.detail-description {
  color: var(--gray-600);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.size-selector { margin-bottom: 1.5rem; }

.size-selector label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.size-options {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.size-btn {
  min-width: 48px;
  height: 44px;
  padding: 0 0.8rem;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  background: white;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.size-btn:hover,
.size-btn.active {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
}

.qty-selector {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.qty-selector button {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1.5px solid var(--gray-200);
  background: white;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
}

.qty-selector button:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.qty-selector span {
  font-weight: 700;
  font-size: 1.1rem;
  min-width: 28px;
  text-align: center;
}

/* ===== CART ===== */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  align-items: start;
}

.cart-items {
  background: white;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
}

.cart-item {
  display: grid;
  grid-template-columns: 85px 1fr auto;
  gap: 1.1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--gray-100);
  align-items: center;
}

.cart-item:last-child { border-bottom: none; }

.cart-item img {
  width: 85px;
  height: 85px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--gray-100);
}

.cart-item-info h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.cart-item-meta {
  font-size: 0.85rem;
  color: var(--gray-600);
  margin-bottom: 0.4rem;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.cart-item-actions button {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: 1px solid var(--gray-200);
  background: white;
  cursor: pointer;
  font-weight: 600;
}

.cart-item-price {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--primary);
  text-align: right;
}

.remove-btn {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  font-size: 0.85rem;
  margin-top: 0.3rem;
}

.cart-summary {
  background: white;
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  position: sticky;
  top: 90px;
}

.cart-summary h2 {
  font-size: 1.2rem;
  margin-bottom: 1.1rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.7rem;
  color: var(--gray-600);
}

.summary-row.total {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dark);
  border-top: 2px solid var(--gray-100);
  padding-top: 0.9rem;
  margin-top: 0.4rem;
}

.empty-cart {
  text-align: center;
  padding: 4rem 2rem;
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
}

.empty-cart h2 { margin-bottom: 0.8rem; }

/* ===== CHECKOUT ===== */
.checkout-form {
  background: white;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  max-width: 580px;
  margin: 0 auto;
}

.form-group { margin-bottom: 1.2rem; }

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  font-size: 1rem;
  transition: var(--transition);
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* ===== ABOUT / INFO ===== */
.about-box {
  background: white;
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-box h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.about-box p {
  color: var(--gray-600);
  margin-bottom: 1rem;
  line-height: 1.7;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--dark);
  color: white;
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
}

.footer h3 {
  margin-bottom: 0.9rem;
  font-size: 1.05rem;
}

.footer p, .footer a {
  color: var(--gray-400);
  font-size: 0.95rem;
  line-height: 1.8;
}

.footer a:hover { color: white; }

.footer-bottom {
  text-align: center;
  padding-top: 1.8rem;
  margin-top: 1.8rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: var(--gray-400);
  font-size: 0.9rem;
}

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }

.success-message {
  background: linear-gradient(135deg, #059669, #10b981);
  color: white;
  padding: 2rem;
  border-radius: var(--radius);
  text-align: center;
  margin-bottom: 2rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .product-detail { grid-template-columns: 1fr; }
  .cart-layout { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .nav { gap: 1rem; }
}

@media (max-width: 600px) {
  .header-inner { flex-wrap: wrap; }
  .nav {
    order: 3;
    width: 100%;
    justify-content: center;
    padding-top: 0.5rem;
    gap: 1.2rem;
  }
  .form-row { grid-template-columns: 1fr; }
  .hero { padding: 3.5rem 1.2rem; }
}