
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap');

/* ========================================
   SHREE BEDS & TEX - COMPLETE STYLESHEET
   Tagline: Sleep Comfortable
======================================== */

:root {
  --primary: #173d35;
  --primary-dark: #102b25;
  --accent: #c69b60;
  --cream: #faf7f1;
  --white: #ffffff;
  --text: #252a27;
  --muted: #707872;
  --border: #e7e3dc;
  --danger: #b42318;
  --success: #16794b;
  --shadow: 0 10px 30px rgba(25, 40, 32, 0.08);
  --radius: 10px;
  --container: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  line-height: 1.7;
}

body, input, button, textarea, select {
  font-family: 'DM Sans', sans-serif;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font-size: inherit;
}

button,
.button {
  cursor: pointer;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

[hidden] {
  display: none !important;
}

.container {
  width: min(var(--container), 92%);
  margin: 0 auto;
}

/* Announcement bar */

.topbar {
  padding: 8px 4%;
  background: var(--primary-dark);
  color: white;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.5px;
}

/* Navigation */

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.navbar {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.brand-name {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 21px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.3;
}

.brand-tagline {
  display: block;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}

.nav-links a {
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--accent);
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 19px;
  background: var(--primary);
  color: white;
  border: 1px solid var(--primary);
  border-radius: 5px;
  font-weight: 600;
  text-align: center;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.button:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
}

.button-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.button-outline:hover {
  background: var(--primary);
  color: white;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(198, 155, 96, 0.6);
  outline-offset: 3px;
}

/* Homepage hero */

.hero {
  padding: 78px 0;
  background: linear-gradient(110deg, #f7f2e9, #e9eee6);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 55px;
}

.eyebrow {
  display: inline-block;
  color: #926c3c;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.hero h1 {
  margin: 15px 0;
  font-family: 'Playfair Display', serif;
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 600;
  line-height: 1.13;
  letter-spacing: -1px;
  color: var(--primary-dark);
}

.hero p {
  max-width: 540px;
  margin-bottom: 25px;
  color: #626c65;
  font-size: 17px;
  line-height: 1.8;
}

.hero .button {
  margin: 5px 7px 5px 0;
}

.hero-image {
  min-height: 340px;
  overflow: hidden;
  background: #e6e0d6;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.hero-image img {
  display: block;
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* Sections */

.section {
  padding: 68px 0;
}

.section-cream {
  background: var(--cream);
}

.section-heading {
  margin-bottom: 34px;
  text-align: center;
}

.section-heading h2,
.page-heading h1 {
  margin: 9px 0;
  font-family: 'Playfair Display', serif;
  font-size: clamp(30px, 4vw, 43px);
  font-weight: 600;
  line-height: 1.25;
  color: var(--primary-dark);
}

.section-heading p,
.page-heading p {
  color: var(--muted);
}

/* Product categories */

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.category-card {
  display: block;
  padding: 28px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: white;
  text-align: center;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.category-icon {
  font-size: 36px;
  line-height: 1.5;
}

.category-card h3 {
  margin: 10px 0 4px;
  color: var(--primary);
  font-size: 18px;
}

.category-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

/* Product catalogue */

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.product-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: white;
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.product-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.product-card img {
  display: block;
  width: 100%;
  height: 230px;
  object-fit: cover;
  background: var(--cream);
}

.product-info {
  padding: 18px;
}

.product-category {
  display: inline-block;
  color: #997343;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.product-card h3 {
  margin: 7px 0;
  color: var(--primary-dark);
  font-size: 18px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.product-card p {
  color: var(--muted);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.product-card .product-price {
  margin: 12px 0;
  color: var(--primary) !important;
  font-size: 21px;
  font-weight: 700;
}

.product-info .button {
  width: 100%;
  margin-top: 10px;
}

#products-status {
  margin-top: 20px;
}

/* Page title banner */

.page-heading {
  padding: 48px 0;
  background: var(--cream);
  text-align: center;
}

.page-heading h1 {
  margin-top: 10px;
}

.page-heading p {
  margin-bottom: 0;
}

/* Content and information cards */

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 32px;
}

.info-card,
.form-card,
.admin-card {
  min-width: 0;
  padding: 26px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.info-card h2,
.form-card h2,
.admin-card h2 {
  margin-top: 0;
  font-family: 'Playfair Display', serif;
  color: var(--primary);
}

.info-card p {
  overflow-wrap: anywhere;
}

.info-card a:not(.button) {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Forms */

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 18px;
}

.field label {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.field input,
.field textarea,
.field select {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 12px 13px;
  color: var(--text);
  background: white;
  border: 1px solid #d7d8d3;
  border-radius: 5px;
  transition: border-color 0.2s ease;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: 2px solid rgba(198, 155, 96, 0.3);
  border-color: var(--accent);
}

.field textarea {
  min-height: 100px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #9a9e99;
}

.form-card button,
.admin-card button {
  margin-top: 4px;
}

/* Status and notifications */

.status {
  margin: 14px 0;
  padding: 12px 14px;
  color: var(--text);
  background: #f3f4f1;
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.status:empty {
  display: none;
}

.status.error {
  color: var(--danger);
  background: #fff2f0;
  border-color: #f0c5c0;
}

/* Admin dashboard */

#dashboard {
  width: 100%;
}

#dashboard > .section-heading {
  margin-bottom: 30px;
}

#dashboard > .section-heading h1 {
  margin-bottom: 8px;
}

#signed-in-user {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.admin-card {
  margin-top: 24px;
  box-shadow: var(--shadow);
}

#product-form {
  max-width: 760px;
}

#admin-products {
  margin-top: 22px;
}

#admin-products .product-card {
  display: flex;
  flex-direction: column;
}

#admin-products .product-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

#admin-products .product-info .button {
  width: auto;
  margin-right: 6px;
}

#cancel-edit {
  margin-left: 5px;
}

/* Footer */

.footer {
  margin-top: 0;
  padding: 36px 0;
  background: var(--primary-dark);
  color: white;
  text-align: center;
}

.footer h3 {
  margin: 0 0 8px;
  font-family: 'Playfair Display', serif;
  font-size: 24px;
}

.footer p {
  margin: 5px 0;
  color: #e0e8e2;
  font-size: 13px;
}

.footer a {
  color: white;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Utility classes */

.text-center {
  text-align: center;
}

.text-muted {
  color: var(--muted);
}

.mt-20 {
  margin-top: 20px;
}

.mb-20 {
  margin-bottom: 20px;
}

/* Tablet and mobile */

@media (max-width: 900px) {
  .navbar {
    gap: 16px;
  }

  .nav-links {
    gap: 15px;
  }

  .hero-grid {
    gap: 28px;
  }

  .hero-image img {
    height: 340px;
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .container {
    width: 92%;
  }

  .navbar {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .brand img {
    width: 43px;
    height: 43px;
  }

  .brand-name {
    font-size: 19px;
  }

  .nav-links {
    display: flex;
    width: 100%;
    justify-content: flex-start;
    gap: 17px;
    padding-bottom: 2px;
  }

  .nav-links a {
    font-size: 13px;
  }

  .hero {
    padding: 48px 0;
  }

  .hero-grid,
  .content-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .hero h1 {
    font-size: clamp(36px, 9vw, 49px);
  }

  .hero p {
    font-size: 15px;
  }

  .hero-image {
    min-height: 240px;
  }

  .hero-image img {
    height: 290px;
  }

  .section {
    padding: 46px 0;
  }

  .section-heading {
    margin-bottom: 25px;
  }

  .page-heading {
    padding: 38px 0;
  }

  .info-card,
  .form-card,
  .admin-card {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  .topbar {
    font-size: 11px;
  }

  .brand-name {
    font-size: 17px;
  }

  .brand-tagline {
    font-size: 9px;
    letter-spacing: 1.5px;
  }

  .nav-links {
    gap: 13px;
  }

  .nav-links a {
    font-size: 12px;
  }

  .hero {
    padding: 38px 0;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero-image img {
    height: 245px;
  }

  .hero .button {
    width: 100%;
    margin: 5px 0;
  }

  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .category-card {
    padding: 22px 10px;
  }

  .category-card h3 {
    font-size: 16px;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 17px;
  }

  .product-card img {
    height: 230px;
  }

  .product-info {
    padding: 15px;
  }

  .product-card h3 {
    font-size: 17px;
  }

  .product-card .product-price {
    font-size: 20px;
  }

  .page-heading h1,
  .section-heading h2 {
    font-size: 31px;
  }

  .info-card,
  .form-card,
  .admin-card {
    padding: 17px;
  }

  #admin-products .product-info .button {
    min-height: 42px;
    padding: 9px 13px;
  }

  #cancel-edit {
    margin-left: 0;
  }

  .footer {
    padding: 28px 0;
  }
}

/* Reduced animation for accessibility */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

.products-section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 24px;
}

.products-section h2 {
  text-align: center;
  margin-bottom: 12px;
}

.products-section > p {
  text-align: center;
  color: #666;
  margin-bottom: 28px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.product-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
  transition: transform 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
}

.product-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: #f5f5f5;
}

.product-details {
  padding: 16px;
}

.product-details h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.product-category {
  color: #777;
  font-size: 13px;
}

.product-price {
  color: #8b5e34;
  font-weight: bold;
  font-size: 20px;
  margin-top: 14px;
}

@media (max-width: 480px) {
  .products-section {
    padding: 14px;
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .product-image {
    height: 150px;
  }

  .product-details {
    padding: 11px;
  }
}

img[alt="Shree Beds & Tex logo"] {
    width: 170px !important;
    height: 170px !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain !important;
    display: block;
    flex-shrink: 0;
}

/* SHREE BEDS & TEX — CONSISTENT LOGO SIZE */
img[alt="Shree Beds & Tex logo"] {
    display: block !important;
    width: 110px !important;
    height: 110px !important;
    min-width: 110px !important;
    max-width: 110px !important;
    min-height: 110px !important;
    max-height: 110px !important;
    object-fit: contain !important;
    flex-shrink: 0 !important;
}

/* Keep the logo from being compressed */
header img[alt="Shree Beds & Tex logo"] {
    margin: 0 !important;
}

/* Mobile screen size */
@media (max-width: 600px) {
    img[alt="Shree Beds & Tex logo"] {
        width: 80px !important;
        height: 80px !important;
        min-width: 80px !important;
        max-width: 80px !important;
        min-height: 80px !important;
        max-height: 80px !important;
    }
}

img[alt="Shree Beds & Tex logo"] {
    width: 110px !important;
    height: 110px !important;
    max-width: 110px !important;
    max-height: 110px !important;
    object-fit: contain !important;
    flex-shrink: 0 !important;
}

@media (max-width: 600px) {
    img[alt="Shree Beds & Tex logo"] {
        width: 80px !important;
        height: 80px !important;
        max-width: 80px !important;
        max-height: 80px !important;
    }
}

