/* ==========================================================================
   Giftly — WooCommerce pages
   Shop / category / sub-category / product / cart / checkout / account
   ========================================================================== */

/* ---------- Archive banner ---------- */
.gf-shop-banner{background:linear-gradient(115deg,var(--red) 0%,var(--red-dark) 60%,#9E0C18 100%);color:#fff;padding:38px 0 34px;position:relative;overflow:hidden}
.gf-shop-banner::before{content:'';position:absolute;width:380px;height:380px;border-radius:50%;background:rgba(255,184,0,.15);top:-200px;right:-90px}
.gf-shop-banner .wrap{position:relative;z-index:2}
.gf-shop-banner h1{font-size:36px;font-weight:800;letter-spacing:-1px;margin-bottom:8px}
.gf-shop-count{display:inline-block;background:var(--gold);color:var(--ink);font-size:12px;font-weight:800;letter-spacing:.8px;padding:5px 13px;border-radius:30px}
.gf-shop-desc{margin-top:14px;max-width:680px;opacity:.92;font-size:14.5px;font-family:'Hind Siliguri',Poppins,sans-serif}
.gf-shop-banner .woocommerce-breadcrumb{color:rgba(255,255,255,.8);font-size:13px;padding:0 0 12px}
.gf-shop-banner .woocommerce-breadcrumb a{color:var(--gold)}

/* ---------- Content wrapper ---------- */
.gf-wc{padding:34px 0 60px}
.gf-crumb .woocommerce-breadcrumb{font-size:13.5px;color:var(--muted);padding:18px 0 0}
.gf-crumb .woocommerce-breadcrumb a{color:var(--red);font-weight:600}

/* ---------- Sub-category grid ---------- */
.gf-subcats{margin-bottom:34px}
.gf-subcats-hd{font-size:19px;font-weight:700;margin-bottom:15px}
.gf-subcat-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:13px}
.gf-subcat{display:flex;flex-direction:column;align-items:center;gap:8px;padding:15px 10px;border:1px solid var(--line);border-radius:12px;text-align:center;transition:.2s;background:#fff}
.gf-subcat:hover{border-color:var(--red);box-shadow:0 6px 18px rgba(232,25,44,.1);transform:translateY(-3px)}
.gf-subcat-img{width:56px;height:56px;border-radius:50%;overflow:hidden;background:var(--soft);display:grid;place-items:center;font-size:24px}
.gf-subcat-img img{width:100%;height:100%;object-fit:cover}
.gf-subcat b{font-size:13px;font-weight:600;line-height:1.35}
.gf-subcat-ct{font-size:11px;color:var(--muted);background:var(--soft);padding:1px 8px;border-radius:20px}

/* ---------- Sort / result bar ---------- */
.woocommerce .woocommerce-result-count{color:var(--muted);font-size:13.5px;margin:0;padding:11px 0}
.woocommerce .woocommerce-ordering{margin-bottom:22px}
.woocommerce .woocommerce-ordering select{padding:10px 14px;border:1.6px solid var(--line);border-radius:9px;font:inherit;font-size:14px;background:#fff;cursor:pointer}
.woocommerce .woocommerce-ordering select:focus{border-color:var(--red);outline:none}

/* ---------- Pagination ---------- */
.woocommerce nav.woocommerce-pagination ul{border:0;margin-top:34px;display:flex;gap:7px;justify-content:center}
.woocommerce nav.woocommerce-pagination ul li{border:0;margin:0}
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span{border:1.6px solid var(--line);border-radius:9px;min-width:42px;height:42px;display:grid;place-items:center;font-weight:700;font-size:14px;padding:0 12px;color:var(--ink)}
.woocommerce nav.woocommerce-pagination ul li span.current{background:var(--red);border-color:var(--red);color:#fff}
.woocommerce nav.woocommerce-pagination ul li a:hover{border-color:var(--red);color:var(--red);background:#fff}

/* ---------- Single product ---------- */
.woocommerce div.product{padding-top:8px}
.woocommerce div.product div.images{width:46%}
.woocommerce div.product div.summary{width:50%;margin-bottom:0}
.woocommerce div.product div.images img{border-radius:var(--radius);border:1px solid var(--line)}
.woocommerce div.product .flex-control-thumbs{margin-top:12px;gap:9px;display:flex}
.woocommerce div.product .flex-control-thumbs li{width:76px;margin:0;float:none}
.woocommerce div.product .flex-control-thumbs img{border-radius:9px;border:2px solid var(--line);opacity:.7}
.woocommerce div.product .flex-control-thumbs img.flex-active,
.woocommerce div.product .flex-control-thumbs img:hover{opacity:1;border-color:var(--red)}

.woocommerce div.product .product_title{font-size:31px;font-weight:800;letter-spacing:-.8px;line-height:1.2;margin-bottom:12px}
.woocommerce div.product p.price,.woocommerce div.product span.price{font-size:31px;font-weight:800;color:var(--red);margin-bottom:6px}
.woocommerce div.product p.price del,.woocommerce div.product span.price del{font-size:19px;color:#AAA;font-weight:500;opacity:1}
.woocommerce div.product p.price ins{text-decoration:none}
.woocommerce div.product .woocommerce-product-rating{margin-bottom:16px}
.woocommerce .star-rating span::before{color:var(--gold)}
.woocommerce div.product .woocommerce-product-details__short-description{color:#444;font-size:14.5px;margin-bottom:20px;font-family:'Hind Siliguri',Poppins,sans-serif}

.woocommerce div.product form.cart{margin-bottom:20px;display:flex;gap:11px;flex-wrap:wrap;align-items:center}
.woocommerce div.product form.cart div.quantity{margin:0}
.woocommerce .quantity input.qty{width:78px;height:52px;border:1.6px solid var(--line);border-radius:10px;font:inherit;font-size:16px;font-weight:700;text-align:center}
.woocommerce div.product form.cart .button{height:52px;padding:0 40px;background:var(--red);color:#fff;border-radius:10px;font-size:15.5px;font-weight:700;letter-spacing:.3px}
.woocommerce div.product form.cart .button:hover{background:var(--red-dark)}
.woocommerce div.product form.cart .variations{margin-bottom:14px;width:100%}
.woocommerce div.product form.cart .variations td,.woocommerce div.product form.cart .variations th{padding:7px 0}
.woocommerce div.product form.cart .variations select{padding:11px 14px;border:1.6px solid var(--line);border-radius:9px;font:inherit;background:#fff}

/* Delivery / trust box */
.gf-delivery{border:1px solid var(--line);border-radius:var(--radius);padding:6px 18px;background:var(--soft);width:100%;margin-top:6px}
.gf-dl-row{display:flex;align-items:center;gap:13px;padding:12px 0;border-bottom:1px dashed #F0D8DB}
.gf-dl-row:last-child{border-bottom:none}
.gf-dl-ic{width:36px;height:36px;border-radius:10px;background:#fff;display:grid;place-items:center;font-size:17px;flex-shrink:0;border:1px solid var(--line)}
.gf-dl-row b{display:block;font-size:14px;font-weight:700}
.gf-dl-row em{font-style:normal;font-size:12.5px;color:var(--muted);font-family:'Hind Siliguri',Poppins,sans-serif}

.gf-call-order{background:var(--ink);color:#fff;border-radius:11px;padding:14px 18px;font-size:14.5px;margin:16px 0 0;font-family:'Hind Siliguri',Poppins,sans-serif}
.gf-call-order b{color:var(--gold);font-size:16px}

.woocommerce div.product .product_meta{font-size:13px;color:var(--muted);border-top:1px solid var(--line);padding-top:16px;margin-top:18px}
.woocommerce div.product .product_meta a{color:var(--red);font-weight:600}

/* Tabs */
.woocommerce div.product .woocommerce-tabs{margin-top:44px}
.woocommerce div.product .woocommerce-tabs ul.tabs{padding:0;margin:0 0 22px;border-bottom:2px solid var(--line);display:flex;gap:6px}
.woocommerce div.product .woocommerce-tabs ul.tabs::before{display:none}
.woocommerce div.product .woocommerce-tabs ul.tabs li{background:none;border:0;border-radius:0;margin:0;padding:0}
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after{display:none}
.woocommerce div.product .woocommerce-tabs ul.tabs li a{padding:13px 22px;font-weight:700;font-size:14.5px;color:var(--muted);border-bottom:3px solid transparent;margin-bottom:-2px;display:block}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a{color:var(--red);border-bottom-color:var(--red)}
.woocommerce div.product .woocommerce-tabs .panel{font-size:14.5px;color:#444;font-family:'Hind Siliguri',Poppins,sans-serif}
.woocommerce div.product .woocommerce-tabs .panel h2{font-size:22px;font-weight:700;margin-bottom:12px}

/* Related / upsells */
.woocommerce .related > h2,.woocommerce .upsells > h2,.woocommerce .cross-sells > h2{font-size:26px;font-weight:800;letter-spacing:-.7px;margin:44px 0 20px}

/* ---------- Cart ---------- */
.woocommerce table.shop_table{border:1px solid var(--line);border-radius:var(--radius);border-collapse:separate;overflow:hidden}
.woocommerce table.shop_table th{background:var(--soft);font-weight:700;font-size:13px;letter-spacing:.6px;text-transform:uppercase;padding:15px 12px;border:0}
.woocommerce table.shop_table td{padding:16px 12px;border-top:1px solid var(--line)}
.woocommerce table.shop_table_responsive tr td::before{font-weight:700}
.woocommerce a.remove{color:var(--red)!important;font-weight:700;line-height:1.2}
.woocommerce a.remove:hover{background:var(--red);color:#fff!important}
.woocommerce table.cart img{width:74px;border-radius:9px;border:1px solid var(--line)}
.woocommerce .product-name a{font-weight:600;font-size:14.5px}
.woocommerce .product-price,.woocommerce .product-subtotal{font-weight:700;color:var(--ink)}
.woocommerce .cart-collaterals .cart_totals > h2{font-size:22px;font-weight:800;margin-bottom:14px}
.woocommerce .cart-collaterals .cart_totals table.shop_table{border-radius:var(--radius)}
.woocommerce .cart-collaterals .cart_totals .order-total .amount{color:var(--red);font-size:22px}
.woocommerce .wc-proceed-to-checkout a.checkout-button{background:var(--red);color:#fff;border-radius:11px;font-size:16px;font-weight:700;padding:16px 24px;text-align:center}
.woocommerce .wc-proceed-to-checkout a.checkout-button:hover{background:var(--red-dark)}
.woocommerce .cart input.button,.woocommerce .cart button.button{border-radius:9px;font-weight:700}
.gf-cart-note{background:var(--soft);border:1px solid #F5D6DA;border-left:4px solid var(--gold);border-radius:10px;padding:14px 18px;font-size:14px;margin-bottom:18px;font-family:'Hind Siliguri',Poppins,sans-serif}
.woocommerce .cart-empty{font-size:20px;font-weight:700}

/* Coupon */
.woocommerce .coupon input#coupon_code{height:46px;padding:0 15px;border:1.6px solid var(--line);border-radius:9px;font:inherit;width:170px!important}

/* ---------- Checkout ---------- */
.woocommerce-checkout h3{font-size:21px;font-weight:800;letter-spacing:-.5px;margin-bottom:16px;padding-bottom:11px;border-bottom:2px solid var(--line)}
.woocommerce form .form-row{padding:0;margin-bottom:15px}
.woocommerce form .form-row label{font-weight:600;font-size:13.5px;margin-bottom:6px;display:block}
.woocommerce form .form-row .required{color:var(--red);text-decoration:none}
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce .select2-container .select2-selection--single{height:48px;padding:12px 15px;border:1.6px solid var(--line);border-radius:10px;font:inherit;font-size:14.5px;background:#fff;line-height:1.3}
.woocommerce form .form-row textarea{height:96px}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus{border-color:var(--red);outline:none}
.woocommerce .select2-container--default .select2-selection--single .select2-selection__rendered{line-height:24px;padding-left:0}
.woocommerce .select2-container--default .select2-selection--single .select2-selection__arrow{height:46px}

#order_review_heading{margin-top:34px}
.woocommerce-checkout #payment{background:var(--soft);border:1px solid #F5D6DA;border-radius:var(--radius)}
.woocommerce-checkout #payment ul.payment_methods{border-bottom:1px solid #F5D6DA;padding:18px}
.woocommerce-checkout #payment ul.payment_methods li{font-weight:600;font-size:14.5px}
.woocommerce-checkout #payment div.payment_box{background:#fff;border-radius:9px;font-size:13.5px;color:var(--muted)}
.woocommerce-checkout #payment div.payment_box::before{border-bottom-color:#fff}
.woocommerce-checkout #payment div.form-row.place-order{padding:18px}
.woocommerce #payment #place_order,.woocommerce-checkout button#place_order{background:var(--red);color:#fff;width:100%;border-radius:11px;font-size:17px;font-weight:800;padding:17px;letter-spacing:.3px}
.woocommerce #payment #place_order:hover{background:var(--red-dark)}
.woocommerce-checkout-review-order-table tfoot .order-total .amount{color:var(--red);font-size:21px}

/* ---------- Notices ---------- */
.woocommerce-message,.woocommerce-info,.woocommerce-error{border-top:0;border-left:4px solid var(--red);border-radius:10px;background:var(--soft);font-size:14.5px;padding:16px 18px 16px 46px}
.woocommerce-message{border-left-color:#16A34A;background:#F0FDF4}
.woocommerce-message::before{color:#16A34A}
.woocommerce-info{border-left-color:var(--gold);background:#FFFBEB}
.woocommerce-info::before{color:var(--gold)}
.woocommerce-error{border-left-color:var(--red);background:var(--soft)}
.woocommerce-error::before{color:var(--red)}
.woocommerce-message .button,.woocommerce-info .button{background:var(--ink);color:#fff;border-radius:8px;font-weight:700}

/* ---------- My account ---------- */
.woocommerce-account .woocommerce-MyAccount-navigation{width:23%}
.woocommerce-account .woocommerce-MyAccount-navigation ul{list-style:none;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}
.woocommerce-account .woocommerce-MyAccount-navigation li{border-bottom:1px solid var(--line)}
.woocommerce-account .woocommerce-MyAccount-navigation li:last-child{border-bottom:0}
.woocommerce-account .woocommerce-MyAccount-navigation li a{display:block;padding:14px 18px;font-weight:600;font-size:14.5px}
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation li a:hover{background:var(--soft);color:var(--red)}
.woocommerce-account .woocommerce-MyAccount-content{width:73%}
.woocommerce-account .col2-set .col-1,.woocommerce-account .col2-set .col-2{border:1px solid var(--line);border-radius:var(--radius);padding:24px}

/* ---------- Order received ---------- */
.woocommerce .woocommerce-order-overview{border:1px solid var(--line);border-radius:var(--radius);padding:22px;list-style:none;display:flex;flex-wrap:wrap;gap:22px;margin-bottom:26px}
.woocommerce ul.order_details li{border:0;padding:0;margin:0;font-size:12.5px;text-transform:uppercase;letter-spacing:.7px;color:var(--muted)}
.woocommerce ul.order_details li strong{display:block;font-size:16px;text-transform:none;letter-spacing:0;color:var(--ink);margin-top:5px}

/* ---------- Responsive ---------- */
@media(max-width:980px){
  .gf-subcat-grid{grid-template-columns:repeat(3,1fr)}
  .woocommerce div.product div.images,.woocommerce div.product div.summary{width:100%}
  .woocommerce div.product div.images{margin-bottom:24px}
  .gf-shop-banner h1{font-size:27px}
  .woocommerce-account .woocommerce-MyAccount-navigation,
  .woocommerce-account .woocommerce-MyAccount-content{width:100%}
  .woocommerce-account .woocommerce-MyAccount-navigation{margin-bottom:22px}
}
@media(max-width:560px){
  .gf-subcat-grid{grid-template-columns:repeat(2,1fr)}
  .woocommerce ul.products{grid-template-columns:repeat(2,1fr)!important;gap:13px!important}
  .woocommerce div.product .product_title{font-size:23px}
  .woocommerce div.product p.price,.woocommerce div.product span.price{font-size:25px}
  .woocommerce div.product form.cart{gap:9px}
  .woocommerce div.product form.cart .button{flex:1;padding:0 20px}
}
