/*
Theme Name: Kims Floris
Theme URI: https://kimsfloris.com/
Author: Kims Floris
Description: Luxury flower boutique WooCommerce WordPress theme for Kims Floris.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: kims-floris
*/

:root{
  --kf-green:#315442;
  --kf-green-dark:#203b2d;
  --kf-cream:#fbf8f2;
  --kf-pink:#e8c7c5;
  --kf-gold:#b28a58;
  --kf-text:#242424;
  --kf-muted:#6d6d6d;
  --kf-white:#fff;
  --kf-border:#e9e4dc;
  --kf-radius:18px;
  --kf-shadow:0 14px 40px rgba(32,59,45,.08);
  --kf-max:1180px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;color:var(--kf-text);background:#fff;font-family:"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif;line-height:1.65;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
body,button,input,textarea,select{font-family:"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif}
h1,h2,h3,h4,h5,h6,.kf-serif,.site-title{font-family:Georgia,"Times New Roman","DejaVu Serif",serif}

img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}
.container{width:min(var(--kf-max),calc(100% - 40px));margin:auto}
.kf-serif,h1,h2,h3,.site-title{font-family:Georgia,"Times New Roman","DejaVu Serif",serif}
.kf-topbar{background:var(--kf-green-dark);color:#fff;font-size:13px;padding:8px 0}
.kf-topbar .container{display:flex;justify-content:space-between;gap:15px}
.site-header{position:sticky;top:0;z-index:100;background:rgba(255,255,255,.97);border-bottom:1px solid var(--kf-border);backdrop-filter:blur(10px)}
.header-main{min-height:78px;display:flex;align-items:center;gap:28px}
.site-brand{display:flex;align-items:center;gap:10px;min-width:190px}
.brand-mark{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:var(--kf-green);color:#fff;font-family:Georgia,serif;font-size:20px}
.site-title{font-size:24px;font-weight:500;color:var(--kf-green-dark);white-space:nowrap}
.main-nav{flex:1}
.main-nav ul{display:flex;justify-content:center;align-items:center;gap:22px;list-style:none;margin:0;padding:0}
.main-nav a{font-size:14px;font-weight:600;color:#333;white-space:nowrap}
.main-nav a:hover{color:var(--kf-green)}
.header-actions{display:flex;align-items:center;gap:10px}
.icon-btn{width:42px;height:42px;border:1px solid var(--kf-border);border-radius:50%;display:grid;place-items:center;background:#fff}
.phone-btn,.kf-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:999px;padding:12px 20px;background:var(--kf-green);color:#fff;font-weight:700;cursor:pointer;transition:.2s}
.phone-btn:hover,.kf-btn:hover{background:var(--kf-green-dark);transform:translateY(-1px)}
.menu-toggle{display:none;background:none;border:0;font-size:25px}
.hero{position:relative;min-height:620px;display:flex;align-items:center;overflow:hidden;background:
linear-gradient(90deg,rgba(20,45,32,.78),rgba(20,45,32,.22)),
url('assets/hero.svg') center/cover no-repeat;color:#fff}
.hero-content{max-width:680px;padding:90px 0}
.hero-eyebrow{text-transform:uppercase;letter-spacing:3px;font-size:12px;margin-bottom:14px;color:#f4e8dc}
.hero h1{font-size:clamp(42px,6vw,72px);line-height:1.08;font-weight:500;margin:0 0 20px}
.hero p{font-size:18px;max-width:600px;color:#f7f3ed}
.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px}
.kf-btn.light{background:#fff;color:var(--kf-green)}
.kf-btn.outline{background:transparent;border:1px solid rgba(255,255,255,.7)}
.section{padding:82px 0}
.section.soft{background:var(--kf-cream)}
.section-head{text-align:center;max-width:700px;margin:0 auto 38px}
.section-head .eyebrow{color:var(--kf-gold);text-transform:uppercase;letter-spacing:2px;font-size:12px;font-weight:700}
.section-head h2{font-size:42px;line-height:1.2;font-weight:500;margin:8px 0 12px}
.section-head p{color:var(--kf-muted);margin:0}
.category-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:16px}
.category-card{position:relative;min-height:210px;border-radius:var(--kf-radius);overflow:hidden;background:#eee;box-shadow:var(--kf-shadow)}
.category-card img{width:100%;height:100%;object-fit:cover;transition:.4s}
.category-card:hover img{transform:scale(1.05)}
.category-overlay{position:absolute;inset:auto 0 0;padding:40px 16px 16px;background:linear-gradient(transparent,rgba(0,0,0,.7));color:#fff}
.category-overlay h3{font-size:20px;margin:0 0 5px}
.category-overlay span{font-size:12px}
.products-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:22px}
.product-card{border:1px solid var(--kf-border);border-radius:16px;overflow:hidden;background:#fff;transition:.25s}
.product-card:hover{box-shadow:var(--kf-shadow);transform:translateY(-3px)}
.product-image{aspect-ratio:1/1;overflow:hidden;background:#f2eee7;position:relative}
.product-image img{width:100%;height:100%;object-fit:cover}
.badge{position:absolute;left:12px;top:12px;background:#fff;padding:6px 10px;border-radius:999px;font-size:11px;font-weight:800;color:var(--kf-green)}
.product-info{padding:17px}
.product-info h3{font-size:20px;margin:0 0 7px;font-weight:500}
.price{font-weight:800;color:var(--kf-green);font-size:17px;margin-bottom:14px}
.product-actions{display:flex;gap:8px}
.product-actions .kf-btn{flex:1;padding:10px 12px;font-size:13px}
.product-actions .outline-dark{background:#fff;color:var(--kf-green);border:1px solid var(--kf-green)}
.split-banner{display:grid;grid-template-columns:1fr 1fr;border-radius:24px;overflow:hidden;background:var(--kf-green-dark);color:#fff}
.split-banner .copy{padding:70px}
.split-banner h2{font-size:46px;line-height:1.15;font-weight:500;margin:10px 0 15px}
.split-banner .visual{min-height:420px;background:url('assets/orchid.svg') center/cover}
.occasions{display:grid;grid-template-columns:repeat(7,1fr);gap:12px}
.occasion{padding:25px 10px;text-align:center;border:1px solid var(--kf-border);border-radius:16px;background:#fff}
.occasion .flower-icon{font-size:28px;margin-bottom:7px}
.occasion span{font-weight:700;font-size:13px}
.features{display:grid;grid-template-columns:repeat(5,1fr);gap:18px}
.feature{padding:28px 20px;border-radius:18px;background:#fff;text-align:center;box-shadow:var(--kf-shadow)}
.feature-icon{font-size:30px;margin-bottom:12px}
.feature h3{font-size:19px;margin:0 0 7px}
.feature p{font-size:13px;color:var(--kf-muted);margin:0}
.steps{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.step{position:relative;padding:30px 24px;background:#fff;border:1px solid var(--kf-border);border-radius:18px}
.step-number{font-family:Georgia,serif;font-size:44px;color:var(--kf-pink);line-height:1}
.step h3{margin:10px 0 6px;font-size:21px}
.step p{color:var(--kf-muted);font-size:14px;margin:0}
.reviews{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.review{padding:28px;background:#fff;border:1px solid var(--kf-border);border-radius:18px}
.stars{letter-spacing:3px;color:#c49350}
.review p{font-family:Georgia,serif;font-size:18px}
.reviewer{font-size:13px;font-weight:700}
.cta{padding:80px 20px;text-align:center;background:var(--kf-green-dark);color:#fff}
.cta h2{font-size:45px;font-weight:500;margin:0 0 10px}
.cta p{color:#e9eee9;margin:0 0 25px}
.site-footer{background:#172b21;color:#e7ece8;padding:60px 0 20px}
.footer-grid{display:grid;grid-template-columns:1.5fr 1fr 1fr 1.2fr;gap:35px}
.site-footer h3{font-size:20px;color:#fff;margin:0 0 15px}
.site-footer p,.site-footer li{font-size:14px;color:#bdc8c1}
.site-footer ul{list-style:none;padding:0;margin:0}
.site-footer li{margin:8px 0}
.footer-bottom{margin-top:40px;padding-top:18px;border-top:1px solid rgba(255,255,255,.12);font-size:12px;color:#9eaaa3;display:flex;justify-content:space-between}
.floating-actions{position:fixed;right:18px;bottom:18px;z-index:120;display:flex;flex-direction:column;gap:10px}
.float-btn{width:52px;height:52px;border-radius:50%;display:grid;place-items:center;color:#fff;font-weight:800;box-shadow:0 8px 24px rgba(0,0,0,.2)}
.float-phone{background:#2d7b4e}.float-zalo{background:#1677ff}
.page-hero{padding:75px 0;background:var(--kf-cream);text-align:center}
.page-hero h1{font-size:52px;font-weight:500;margin:0 0 10px}
.woocommerce .site-main{padding:60px 0}
.woocommerce ul.products{margin:0}
.woocommerce div.product .product_title{font-family:Georgia,serif;font-weight:500}
.woocommerce a.button,.woocommerce button.button,.woocommerce input.button{border-radius:999px;background:var(--kf-green);color:#fff}
.woocommerce a.button:hover,.woocommerce button.button:hover{background:var(--kf-green-dark);color:#fff}
.woocommerce-message,.woocommerce-info{border-top-color:var(--kf-green)}
.kf-empty{padding:80px 20px;text-align:center}
@media(max-width:1050px){
 .main-nav ul{gap:12px}.main-nav a{font-size:13px}.phone-btn{display:none}
 .category-grid{grid-template-columns:repeat(3,1fr)}.features{grid-template-columns:repeat(3,1fr)}
 .occasions{grid-template-columns:repeat(4,1fr)}.products-grid{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:780px){
 .container{width:min(var(--kf-max),calc(100% - 28px))}
 .kf-topbar .container{justify-content:center}
 .header-main{min-height:68px}.site-brand{min-width:0}.site-title{font-size:20px}.brand-mark{width:36px;height:36px}
 .menu-toggle{display:block;margin-left:auto}.main-nav{display:none;position:absolute;left:0;right:0;top:68px;background:#fff;border-bottom:1px solid var(--kf-border);padding:15px}
 .main-nav.open{display:block}.main-nav ul{flex-direction:column;align-items:stretch;gap:0}.main-nav li{border-bottom:1px solid #f1eee8}.main-nav a{display:block;padding:12px}
 .header-actions{display:none}
 .hero{min-height:570px}.hero-content{padding:65px 0}.hero h1{font-size:43px}
 .section{padding:58px 0}.section-head h2{font-size:34px}
 .category-grid,.products-grid,.features,.steps,.reviews{grid-template-columns:repeat(2,1fr)}
 .split-banner{grid-template-columns:1fr}.split-banner .copy{padding:45px 28px}.split-banner .visual{min-height:300px}
 .occasions{grid-template-columns:repeat(2,1fr)}
 .footer-grid{grid-template-columns:1fr 1fr}.footer-bottom{flex-direction:column;gap:8px}
}
@media(max-width:520px){
 .hero h1{font-size:38px}.hero p{font-size:16px}
 .category-grid,.products-grid,.features,.steps,.reviews{grid-template-columns:1fr 1fr;gap:12px}
 .product-info{padding:12px}.product-info h3{font-size:17px}.product-actions{flex-direction:column}
 .footer-grid{grid-template-columns:1fr}.page-hero h1{font-size:38px}
 .floating-actions{right:12px;bottom:12px}
}


/* Kims Floris - giảm chiều cao ảnh sản phẩm bán chạy */
.products-grid .product-card img,
.products-grid li.product img,
.products-grid .woocommerce-loop-product__link img {
    width: 100%;
    height: 220px !important;
    object-fit: cover;
    object-position: center;
    display: block;
}


/* KIMS FLORIS - FIX CHIEU CAO ANH HOA BAN CHAY */

/* Khung ảnh sản phẩm */
.products-grid .product-card a img,
.products-grid .product-card img,
.products-grid .product a img,
.products-grid li.product img,
.products-grid img.attachment-woocommerce_thumbnail,
.products-grid img.wp-post-image {
    height: 190px !important;
    max-height: 190px !important;
    width: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
}

/* Không để khung ảnh tự kéo cao */
.products-grid .product-card,
.products-grid li.product {
    min-height: 0 !important;
}

/* Điện thoại */
@media (max-width: 600px) {
    .products-grid .product-card a img,
    .products-grid .product-card img,
    .products-grid .product a img,
    .products-grid li.product img,
    .products-grid img.attachment-woocommerce_thumbnail,
    .products-grid img.wp-post-image {
        height: 155px !important;
        max-height: 155px !important;
    }
}



/* Kims Floris: ẩn tiêu đề Shop của WooCommerce */
body.woocommerce-shop .woocommerce-products-header,
body.woocommerce-shop .page-title,
body.woocommerce-shop h1.woocommerce-products-header__title,
body.post-type-archive-product .woocommerce-products-header {
    display: none !important;
}

/* Bỏ khoảng trống của banner tiêu đề Shop nếu theme có tạo riêng */
body.woocommerce-shop .archive-header,
body.woocommerce-shop .page-header {
    display: none !important;
}



/* Kims Floris: kiểu chữ tên sản phẩm */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce div.product .product_title {
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: 25px !important;
    font-weight: 500 !important;
    line-height: 1.35 !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
    color: #263f32 !important;
}

/* Tên sản phẩm trong trang danh sách */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    margin-top: 12px !important;
    margin-bottom: 8px !important;
}

/* Tên sản phẩm trên điện thoại */
@media (max-width: 600px) {
    .woocommerce ul.products li.product .woocommerce-loop-product__title,
    .woocommerce div.product .product_title {
        font-size: 21px !important;
    }
}



/* =========================================
   KIMS FLORIS - PRODUCT CARD
   ========================================= */

/* Khung hình sản phẩm */
.product-card .product-image {
    display: block;
    position: relative;
    overflow: hidden;
    height: 260px;
    border-radius: 12px;
}

.product-card .product-image img {
    display: block;
    width: 100%;
    height: 100% !important;
    max-height: 260px !important;
    object-fit: cover;
    object-position: center;
}

/* Tên hoa: thanh lịch, không giãn chữ */
.product-card .product-info h3 {
    margin: 14px 0 8px;
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: 23px !important;
    font-weight: 500 !important;
    line-height: 1.35 !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
}

.product-card .product-info h3 a {
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
    color: #263f32;
    text-decoration: none;
}

.product-card .product-info h3 a:hover {
    color: #b78a50;
}

/* Hiển thị trên điện thoại */
@media (max-width: 600px) {
    .product-card .product-image {
        height: 190px;
    }

    .product-card .product-image img {
        max-height: 190px !important;
    }

    .product-card .product-info h3 {
        font-size: 19px !important;
    }
}


