/*
Theme Name: Saykat Fabrics
Theme URI: https://saykatfabrics.store
Author: Saykat Fabrics
Author URI: https://saykatfabrics.store
Description: Custom WordPress theme for Saykat Fabrics Sylhet - an elegant, modern, responsive e-commerce theme for fabric and textile businesses. WooCommerce ready.
Version: 1.0
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: saykat-fabrics
Tags: e-commerce, custom-menu, featured-images, threaded-comments, translation-ready, responsive
*/

/* ==========================================================================
   Design tokens
   ========================================================================== */
:root {
  --sf-navy: #1b365d;
  --sf-navy-dark: #12233c;
  --sf-navy-light: #2a4d80;
  --sf-green: #4a7c59;
  --sf-green-dark: #3a6246;
  --sf-bg: #fbfaf7;
  --sf-slate: #f1f4f8;
  --sf-surface: #ffffff;
  --sf-text: #1f2733;
  --sf-muted: #5c6878;
  --sf-border: #e2e7ee;
  --sf-radius: 14px;
  --sf-radius-sm: 8px;
  --sf-shadow: 0 4px 18px rgba(27, 54, 93, 0.08);
  --sf-shadow-lg: 0 18px 44px rgba(27, 54, 93, 0.16);
  --sf-max: 1200px;
  --sf-font: "Inter", "Poppins", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sf-font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--sf-text);
  background: var(--sf-bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--sf-font);
  color: var(--sf-navy);
  line-height: 1.25;
  margin: 0 0 0.6em;
  font-weight: 700;
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(2rem, 4.2vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

p { margin: 0 0 1.1em; }

a { color: var(--sf-green); text-decoration: none; transition: color .2s ease; }
a:hover, a:focus { color: var(--sf-navy); }

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

:focus-visible { outline: 3px solid var(--sf-green); outline-offset: 2px; }

.sf-container {
  width: 100%;
  max-width: var(--sf-max);
  margin: 0 auto;
  padding: 0 20px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.skip-link:focus {
  position: fixed; top: 12px; left: 12px; z-index: 999;
  width: auto; height: auto; clip: auto;
  background: var(--sf-navy); color: #fff; padding: 10px 18px;
  border-radius: var(--sf-radius-sm);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.sf-btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.sf-btn:hover { transform: translateY(-2px); }
.sf-btn-primary { background: var(--sf-green); color: #fff; }
.sf-btn-primary:hover { background: var(--sf-green-dark); color: #fff; }
.sf-btn-navy { background: var(--sf-navy); color: #fff; }
.sf-btn-navy:hover { background: var(--sf-navy-dark); color: #fff; }
.sf-btn-outline { border-color: rgba(255,255,255,.7); color: #fff; }
.sf-btn-outline:hover { background: #fff; color: var(--sf-navy); border-color: #fff; }

/* ==========================================================================
   Header
   ========================================================================== */
.sf-topbar {
  background: var(--sf-navy);
  color: #dfe6f1;
  font-size: 0.85rem;
}
.sf-topbar .sf-container {
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  align-items: center; justify-content: space-between;
  padding-top: 9px; padding-bottom: 9px;
}
.sf-topbar-info { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.sf-topbar a { color: #dfe6f1; }
.sf-topbar a:hover { color: #fff; }
.sf-topbar-tag { color: #a9c3a9; font-weight: 600; }

.sf-header {
  background: var(--sf-surface);
  border-bottom: 1px solid var(--sf-border);
  position: sticky; top: 0; z-index: 90;
}
.sf-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding-top: 16px; padding-bottom: 16px;
}
.sf-brand { display: flex; align-items: center; gap: 12px; }
.sf-brand-mark {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--sf-navy), var(--sf-green));
  color: #fff; font-weight: 800; font-size: 1.05rem;
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}
.sf-brand-title { font-size: 1.25rem; font-weight: 800; color: var(--sf-navy); margin: 0; line-height: 1.1; }
.sf-brand-title a { color: inherit; }
.sf-brand-tagline { font-size: 0.78rem; color: var(--sf-muted); margin: 0; letter-spacing: .04em; text-transform: uppercase; }

.sf-nav ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.sf-nav li { position: relative; }
.sf-nav a {
  display: block; padding: 10px 14px; border-radius: var(--sf-radius-sm);
  color: var(--sf-navy); font-weight: 600; font-size: 0.95rem;
}
.sf-nav a:hover, .sf-nav .current-menu-item > a {
  background: var(--sf-slate); color: var(--sf-green);
}
.sf-nav ul ul {
  position: absolute; left: 0; top: 100%; display: none;
  min-width: 210px; flex-direction: column; gap: 0;
  background: #fff; border: 1px solid var(--sf-border);
  border-radius: var(--sf-radius-sm); box-shadow: var(--sf-shadow); padding: 6px;
}
.sf-nav li:hover > ul, .sf-nav li:focus-within > ul { display: flex; }

.sf-header-actions { display: flex; align-items: center; gap: 10px; }

.sf-menu-toggle {
  display: none; background: var(--sf-navy); color: #fff; border: 0;
  border-radius: var(--sf-radius-sm); padding: 10px 14px; font-size: 0.9rem;
  font-weight: 600; cursor: pointer;
}

@media (max-width: 900px) {
  .sf-menu-toggle { display: inline-block; }
  .sf-nav {
    display: none; width: 100%; order: 3;
    border-top: 1px solid var(--sf-border); padding-top: 10px; margin-top: 4px;
  }
  .sf-nav.is-open { display: block; }
  .sf-nav ul { flex-direction: column; gap: 2px; }
  .sf-nav ul ul { position: static; display: flex; box-shadow: none; border: 0; padding-left: 14px; }
  .sf-header-inner { flex-wrap: wrap; }
  .sf-header-actions .sf-btn { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.sf-hero {
  position: relative;
  background:
    linear-gradient(120deg, rgba(27,54,93,.94) 0%, rgba(27,54,93,.78) 45%, rgba(74,124,89,.82) 100%);
  color: #fff;
  overflow: hidden;
}
.sf-hero::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,.05) 0 2px, transparent 2px 10px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,.04) 0 2px, transparent 2px 10px);
  pointer-events: none;
}
.sf-hero-inner { position: relative; z-index: 1; padding: clamp(60px, 9vw, 118px) 20px; max-width: 760px; }
.sf-hero h1 { color: #fff; margin-bottom: 18px; }
.sf-hero p { font-size: 1.08rem; color: #e6ecf5; max-width: 620px; }
.sf-hero-eyebrow {
  display: inline-block; padding: 6px 16px; border-radius: 999px;
  background: rgba(255,255,255,.16); font-size: .8rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; margin-bottom: 18px;
}
.sf-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* Stats strip */
.sf-stats { background: var(--sf-surface); border-bottom: 1px solid var(--sf-border); }
.sf-stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px; padding: 34px 20px; text-align: center;
}
.sf-stat-value { font-size: 1.9rem; font-weight: 800; color: var(--sf-navy); line-height: 1; }
.sf-stat-label { font-size: .85rem; color: var(--sf-muted); text-transform: uppercase; letter-spacing: .08em; }

/* ==========================================================================
   Sections
   ========================================================================== */
.sf-section { padding: clamp(48px, 7vw, 84px) 0; }
.sf-section-alt { background: var(--sf-slate); }
.sf-section-head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.sf-section-head p { color: var(--sf-muted); margin-bottom: 0; }
.sf-eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--sf-green); margin-bottom: 10px;
}

/* Cards / grid */
.sf-grid { display: grid; gap: 26px; }
.sf-grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.sf-grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.sf-card {
  background: var(--sf-surface);
  border: 1px solid var(--sf-border);
  border-radius: var(--sf-radius);
  overflow: hidden;
  box-shadow: var(--sf-shadow);
  transition: transform .22s ease, box-shadow .22s ease;
  display: flex; flex-direction: column;
}
.sf-card:hover { transform: translateY(-5px); box-shadow: var(--sf-shadow-lg); }
.sf-card-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--sf-slate); }
.sf-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.sf-card:hover .sf-card-media img { transform: scale(1.05); }
.sf-card-swatch {
  width: 100%; height: 100%;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,.14) 0 6px, transparent 6px 14px);
}
.sf-card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.sf-card-body h3 { margin-bottom: 8px; }
.sf-card-body p { color: var(--sf-muted); font-size: .95rem; }
.sf-card-meta { font-size: .82rem; color: var(--sf-muted); margin-bottom: 8px; }
.sf-card-link { margin-top: auto; font-weight: 700; font-size: .9rem; }

/* About */
.sf-about { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 44px; align-items: center; }
.sf-about-visual {
  border-radius: var(--sf-radius); min-height: 320px;
  background: linear-gradient(135deg, var(--sf-navy) 0%, var(--sf-green) 100%);
  box-shadow: var(--sf-shadow-lg);
  display: flex; align-items: center; justify-content: center; color: #fff; text-align: center; padding: 32px;
}
.sf-about-visual span { font-size: 1.1rem; font-weight: 600; opacity: .95; }
.sf-list { list-style: none; padding: 0; margin: 0 0 24px; }
.sf-list li { position: relative; padding-left: 30px; margin-bottom: 10px; color: var(--sf-muted); }
.sf-list li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--sf-green); box-shadow: 0 0 0 4px rgba(74,124,89,.18);
}

/* Contact banner */
.sf-contact-banner {
  background: linear-gradient(120deg, var(--sf-navy) 0%, var(--sf-green) 130%);
  color: #fff; border-radius: var(--sf-radius); padding: clamp(34px, 5vw, 56px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px; align-items: center; box-shadow: var(--sf-shadow-lg);
}
.sf-contact-banner h2 { color: #fff; }
.sf-contact-banner p { color: #e6ecf5; margin-bottom: 0; }
.sf-contact-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
@media (max-width: 720px) { .sf-contact-actions { justify-content: flex-start; } }

/* ==========================================================================
   Page / posts
   ========================================================================== */
.sf-page-hero {
  background: var(--sf-navy); color: #fff;
  padding: clamp(40px, 6vw, 70px) 0;
}
.sf-page-hero h1 { color: #fff; margin-bottom: 6px; }
.sf-page-hero p { color: #cdd8e8; margin: 0; }
.sf-breadcrumb { font-size: .85rem; color: #a9bcd6; margin-bottom: 10px; }
.sf-breadcrumb a { color: #cfe0cf; }

.sf-content-area { padding: clamp(40px, 6vw, 72px) 0; }
.sf-article {
  background: var(--sf-surface); border: 1px solid var(--sf-border);
  border-radius: var(--sf-radius); padding: clamp(22px, 4vw, 46px); box-shadow: var(--sf-shadow);
}
.sf-entry-meta { font-size: .87rem; color: var(--sf-muted); margin-bottom: 18px; }
.sf-entry-content > *:last-child { margin-bottom: 0; }
.sf-entry-content ul, .sf-entry-content ol { padding-left: 22px; }
.sf-entry-content blockquote {
  margin: 24px 0; padding: 14px 22px; border-left: 4px solid var(--sf-green);
  background: var(--sf-slate); border-radius: 0 var(--sf-radius-sm) var(--sf-radius-sm) 0;
  color: var(--sf-muted); font-style: italic;
}
.sf-entry-content table { width: 100%; border-collapse: collapse; }
.sf-entry-content th, .sf-entry-content td { border: 1px solid var(--sf-border); padding: 10px; }
.sf-featured-image { margin-bottom: 26px; border-radius: var(--sf-radius); overflow: hidden; }

.sf-pagination { margin-top: 36px; display: flex; justify-content: center; }
.sf-pagination .page-numbers {
  display: inline-block; padding: 9px 15px; margin: 0 4px;
  border: 1px solid var(--sf-border); border-radius: var(--sf-radius-sm);
  background: #fff; color: var(--sf-navy); font-weight: 600;
}
.sf-pagination .page-numbers.current,
.sf-pagination .page-numbers:hover { background: var(--sf-navy); color: #fff; border-color: var(--sf-navy); }

.sf-post-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 30px; font-weight: 600; }

/* Comments */
.sf-comments { margin-top: 36px; }
.sf-comments .comment-list { list-style: none; padding: 0; }
.sf-comments .comment-body {
  background: #fff; border: 1px solid var(--sf-border);
  border-radius: var(--sf-radius-sm); padding: 18px; margin-bottom: 14px;
}
.sf-comments input[type="text"], .sf-comments input[type="email"],
.sf-comments input[type="url"], .sf-comments textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--sf-border);
  border-radius: var(--sf-radius-sm); font-family: inherit; font-size: 1rem; background: #fff;
}
.sf-comments .submit {
  background: var(--sf-green); color: #fff; border: 0; padding: 12px 26px;
  border-radius: 999px; font-weight: 600; cursor: pointer;
}

/* 404 */
.sf-404 { text-align: center; padding: clamp(60px, 10vw, 120px) 0; }
.sf-404-code {
  font-size: clamp(5rem, 16vw, 9rem); font-weight: 800; line-height: 1;
  background: linear-gradient(120deg, var(--sf-navy), var(--sf-green));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sf-404-links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 26px; }
.sf-search-form { display: flex; gap: 8px; max-width: 420px; margin: 26px auto 0; }
.sf-search-form input[type="search"] {
  flex: 1; padding: 12px 16px; border: 1px solid var(--sf-border);
  border-radius: 999px; font-size: 1rem; font-family: inherit;
}
.sf-search-form button {
  background: var(--sf-navy); color: #fff; border: 0;
  padding: 12px 24px; border-radius: 999px; font-weight: 600; cursor: pointer;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.sf-footer { background: var(--sf-navy-dark); color: #c9d4e3; margin-top: 0; }
.sf-footer a { color: #c9d4e3; }
.sf-footer a:hover { color: #fff; }
.sf-footer h3, .sf-footer h4, .sf-footer .widget-title {
  color: #fff; font-size: 1.02rem; margin-bottom: 16px; letter-spacing: .02em;
}
.sf-footer-widgets {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 34px; padding: clamp(40px, 6vw, 66px) 0 40px;
}
.sf-footer-widgets ul { list-style: none; padding: 0; margin: 0; }
.sf-footer-widgets li { margin-bottom: 9px; }
.sf-footer-legal-list li { display: flex; gap: 8px; }
.sf-footer-legal-list strong { color: #fff; font-weight: 600; }
.sf-footer-brand-name { color: #fff; font-weight: 700; font-size: 1.1rem; }

.sf-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14);
  padding: 24px 0 34px; font-size: .9rem; line-height: 1.9; text-align: center;
}
.sf-footer-bottom .sf-legal-line { margin: 0; color: #d7e0ec; }
.sf-footer-bottom .sf-legal-line strong { color: #fff; }

/* ==========================================================================
   WooCommerce touch-ups
   ========================================================================== */
.woocommerce ul.products li.product a img { border-radius: var(--sf-radius-sm); }
.woocommerce ul.products li.product .price { color: var(--sf-green); font-weight: 700; }
.woocommerce #respond input#submit,
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button {
  background: var(--sf-navy); color: #fff; border-radius: 999px; font-weight: 600; padding: 11px 24px;
}
.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover {
  background: var(--sf-green); color: #fff;
}
.woocommerce span.onsale { background: var(--sf-green); border-radius: 999px; }

/* Alignment helpers (WP core) */
.alignleft { float: left; margin: 0 22px 18px 0; }
.alignright { float: right; margin: 0 0 18px 22px; }
.aligncenter { margin: 0 auto 18px; display: block; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .85rem; color: var(--sf-muted); text-align: center; }
.sticky, .gallery-caption, .bypostauthor { display: block; }
