:root {
  --color-primary: #F3A0AC; 
  --color-primary-light: #F8C3CA;
  --color-text-main: #E7949E; 
  --color-text-dark: #333333;
  --color-bg-main: #FFFFFF;
  --color-bg-banner: #F3A0AC;
  --font-primary: 'Outfit', sans-serif;
  --font-secondary: 'Playfair Display', serif; 
}

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

body {
  font-family: var(--font-primary);
  background-color: var(--color-bg-main);
  color: var(--color-text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 70px; 
}

a { text-decoration: none; color: inherit; }
button { background: none; border: none; cursor: pointer; font-family: inherit; }

/* Header & Nav */
.header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 1.5rem; background-color: var(--color-bg-main);
  position: relative; z-index: 100;
  border-bottom: 1px solid rgba(243, 160, 172, 0.2);
}

.header-icon {
  width: 24px; height: 24px; stroke: var(--color-text-main); fill: none; stroke-width: 1.5;
}

.header-right { display: flex; gap: 1.5rem; }
.logo-text { font-size: 2.2rem; font-weight: 300; letter-spacing: 2px; color: var(--color-text-main); text-transform: uppercase; }

.cart-count {
  position: absolute; top: -5px; right: -8px;
  background-color: var(--color-text-main); color: white;
  font-size: 10px; font-weight: bold; padding: 2px 6px; border-radius: 10px;
}

.main-nav {
  display: flex; justify-content: center; gap: 2rem;
  padding: 1rem; background-color: #fafafa;
  font-size: 0.9rem; font-weight: 500; text-transform: uppercase;
  color: var(--color-text-dark);
}
.main-nav a:hover { color: var(--color-primary); }

/* Hero Section */
.animated-bg {
    background: linear-gradient(-45deg, #F8C3CA, #F3A0AC, #ffffff, #ffe4e8);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero {
  position: relative;
  width: 100%;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 2rem;
}

.hero-container {
    max-width: 1200px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.hero-images {
    flex: 1;
    position: relative;
    min-width: 300px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-img {
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: absolute;
    transition: transform 0.3s;
}

.hero-img:hover {
    transform: scale(1.05) translateY(-10px);
    z-index: 10;
}

.img-main {
    width: 250px;
    height: 300px;
    object-fit: cover;
    z-index: 2;
    left: 10%;
    transform: rotate(-5deg);
}

.img-secondary {
    width: 200px;
    height: 250px;
    object-fit: cover;
    z-index: 1;
    right: 10%;
    top: 20%;
    transform: rotate(10deg);
}

.hero-content {
  position: relative; z-index: 1;
  animation: floatUp 2s ease-in-out infinite alternate;
}

.hero-title {
  font-family: var(--font-secondary);
  font-size: 3rem; color: var(--color-text-dark);
  margin-bottom: 1rem; text-shadow: 2px 2px 4px rgba(255,255,255,0.8);
}

.btn {
  display: inline-block; padding: 12px 24px;
  background-color: var(--color-primary); color: white;
  border-radius: 24px; font-weight: 600; text-transform: uppercase;
  transition: transform 0.2s, background 0.2s;
  border: none;
}
.btn:hover { transform: scale(1.05); background-color: var(--color-text-main); }
.btn-outline { background: transparent; border: 2px solid var(--color-primary); color: var(--color-text-main); }
.btn-outline:hover { background: var(--color-primary); color: white; }

@keyframes floatUp {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-15px); }
}

/* Product Grid */
.section-title { text-align: center; margin: 3rem 0 2rem 0; font-size: 2rem; font-weight: 300; }

.product-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; padding: 0 1.5rem 2rem 1.5rem; }
@media (min-width: 480px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }

.product-card { display: flex; flex-direction: column; gap: 0.5rem; }
.product-image-container { position: relative; width: 100%; aspect-ratio: 1 / 1; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.product-image { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.product-card:hover .product-image { transform: scale(1.05); }
.product-badge {
  position: absolute; top: 8px; left: 8px; background: rgba(255, 255, 255, 0.7); backdrop-filter: blur(4px);
  color: var(--color-text-main); padding: 4px 8px; border-radius: 4px; font-size: 0.7rem; font-weight: 600;
}
.product-title { font-size: 0.95rem; font-weight: 400; margin-top: 0.5rem; color: var(--color-text-main); }
.product-price { font-size: 1.1rem; font-weight: 400; }
.add-to-cart-form { margin-top: auto; }
.btn-small { padding: 8px 12px; font-size: 0.8rem; width: 100%; }

/* Forms & Pages */
.container { max-width: 800px; margin: 2rem auto; padding: 0 1.5rem; }
.page-title { font-size: 2rem; font-weight: 300; margin-bottom: 2rem; text-align: center; }

.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; color: var(--color-text-dark); font-weight: 500;}
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 8px;
  font-family: inherit; font-size: 1rem;
}
.form-group input:focus { outline: none; border-color: var(--color-primary); }

/* Cart */
.cart-item { display: flex; align-items: center; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid #eee; }
.cart-item-title { flex: 1; color: var(--color-text-dark); font-weight: 500; }
.cart-item-price { font-weight: bold; }
.cart-total { text-align: right; font-size: 1.5rem; margin-top: 2rem; font-weight: bold; color: var(--color-text-dark); }
.checkout-btn { display: block; text-align: center; margin-top: 1rem; width: 100%; }

/* Tracking */
.tracking-result { margin-top: 2rem; padding: 2rem; background: #fffafb; border-radius: 12px; text-align: center; border: 1px dashed var(--color-primary); }
.tracking-status { font-size: 1.5rem; font-weight: 600; color: var(--color-text-main); margin: 1rem 0; }

/* Admin */
.admin-container { max-width: 1200px; margin: 0 auto; padding: 2rem; display: flex; gap: 2rem; }
.admin-sidebar { width: 250px; background: #fffafb; padding: 1rem; border-radius: 12px; }
.admin-sidebar a { display: block; padding: 10px; margin-bottom: 5px; color: var(--color-text-dark); border-radius: 6px; }
.admin-sidebar a:hover, .admin-sidebar a.active { background: var(--color-primary); color: white; }
.admin-content { flex: 1; }
table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
th, td { padding: 12px; text-align: left; border-bottom: 1px solid #eee; color: var(--color-text-dark); }
th { background: #f9f9f9; }

/* About Section */
.about-section { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 3rem 2rem; max-width: 600px; margin: 0 auto; }
.floral-logo { width: 120px; height: auto; margin-bottom: 2rem; opacity: 0.8; }
.about-heading { font-size: 1.3rem; font-weight: 400; margin-bottom: 1.5rem; line-height: 1.4; }
.about-text { font-size: 0.95rem; font-weight: 300; line-height: 1.8; margin-bottom: 2rem; opacity: 0.85; }
.social-icons { display: flex; gap: 1.5rem; }
.social-icon { width: 24px; height: 24px; stroke: var(--color-text-main); fill: none; stroke-width: 1.5; cursor: pointer; transition: opacity 0.2s; }
.social-icon:hover { opacity: 0.7; }

/* Sticky Banner */
.sticky-banner { position: fixed; bottom: 0; left: 0; width: 100%; background-color: var(--color-bg-banner); color: white; text-align: center; padding: 1rem; font-size: 0.85rem; font-weight: 400; z-index: 1000; line-height: 1.4; box-shadow: 0 -2px 10px rgba(0,0,0,0.05); }

/* Alerts */
.alert { padding: 1rem; border-radius: 8px; margin-bottom: 1rem; text-align: center; font-weight: 500; }
.alert-success { background: #d4edda; color: #155724; }
.alert-error { background: #f8d7da; color: #721c24; }

/* Mobile Responsiveness Updates */
@media (max-width: 768px) {
    .header { padding: 0.5rem 1rem; }
    .header-right { justify-content: flex-end; }
    .logo-text { font-size: 1.8rem; }
    .main-nav { flex-direction: row; flex-wrap: wrap; gap: 1rem; padding: 0.8rem; justify-content: center; font-size: 0.8rem; }
    
    .hero-container { flex-direction: column; text-align: center; }
    .hero-images { min-height: 300px; }
    .img-main { width: 200px; height: 240px; left: 0; right: 0; margin: 0 auto; top: 10%; }
    .img-secondary { width: 150px; height: 180px; right: 5%; top: 40%; }
    
    .admin-container { flex-direction: column; padding: 1rem; }
    .admin-sidebar { width: 100%; display: flex; flex-wrap: wrap; gap: 0.5rem; }
    .admin-sidebar a { flex: 1; min-width: 120px; text-align: center; margin-bottom: 0; }
    
    .container { padding: 0 1rem; }
    
    .cart-item { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .cart-item > div:last-child { text-align: left; margin-top: 0.5rem; }
    
    .grid-2-col { grid-template-columns: 1fr !important; }
}

/* Utility Classes */
.grid-2-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
