/*
Theme Name: Pakkett Ferħ RC8
Theme URI: https://pakkettferh.com
Author: OpenAI
Description: Pakkett Ferħ production theme with clean WooCommerce pages and refined footer.
Version: 15.9
Text Domain: pakkettferh
*/
*{box-sizing:border-box}
html,body{margin:0;padding:0;overflow-x:hidden}
body{font-family:Arial,sans-serif;background:#fff;color:#18243a;line-height:1.5}
.top{background:#ec3d96;color:#fff;text-align:center;padding:10px 16px;font-weight:700;font-size:18px;line-height:1.35}
.site-header{display:flex;justify-content:flex-end;align-items:center;padding:18px 5%;border-bottom:1px solid #f1f1f1;background:#fff}
.site-header nav{display:flex;align-items:center;gap:28px}
.site-header nav a{margin:0;color:#24324a;text-decoration:none;font-weight:700;font-size:20px}
.site-header nav a:hover{color:#ec3d96}
.hero img{width:100%;display:block;height:auto}
.title{text-align:center;color:#173d8f;font-size:42px;font-weight:800;margin:34px 0 20px}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:22px;padding:0 5% 55px}
.card{border:1px solid #eee;border-radius:18px;overflow:hidden;box-shadow:0 6px 16px rgba(0,0,0,.08);background:#fff}
.card img{width:100%;display:block}
.info{padding:14px}.price{color:#ec3d96;font-weight:800}
.btn{display:block;background:#ec3d96;color:#fff;text-align:center;padding:10px;border-radius:999px;text-decoration:none;margin-top:8px}


/* Standard WordPress pages: keep content away from the browser edges.
   This applies to pages such as About Us and Contact, while the front page
   and WooCommerce templates retain their own layouts. */
.page-main{width:100%;margin:0 auto;padding:0 42px 55px}
.page-main > *:first-child{margin-top:0}

/* WooCommerce page layout */
.woocommerce-main{width:100%;max-width:1500px;margin:0 auto;padding:0 42px 55px}
.woocommerce-main .woocommerce{width:100%}
.woocommerce-breadcrumb{margin:22px 0 18px!important;color:#697586!important;font-size:16px!important}
.woocommerce .product{margin-top:8px}
.woocommerce div.product div.images{width:52%;margin-bottom:40px}
.woocommerce div.product div.summary{width:44%;margin-bottom:40px}
.woocommerce div.product .product_title{font-size:42px;line-height:1.12;color:#101010;margin:0 0 24px}
.woocommerce div.product p.price,.woocommerce div.product span.price{color:#a28a00;font-size:28px;font-weight:800}
.woocommerce div.product .woocommerce-product-details__short-description{font-size:18px}
.woocommerce div.product form.cart{margin-top:25px}
.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,.woocommerce #respond input#submit{background:#ec3d96;color:#fff;border-radius:999px;padding:12px 24px;font-weight:700;border:0}
.woocommerce a.button:hover,.woocommerce button.button:hover,.woocommerce input.button:hover{background:#d92f86;color:#fff}
.woocommerce div.product div.images img{border-radius:16px}
.woocommerce-tabs,.related.products,.upsells.products{margin-top:30px}

/* Remove the raw default WordPress sidebar/widgets that were appearing above content. */
.widget-area,.sidebar,.site-sidebar,#secondary{display:none!important}
body:not(.home) .entry-content,body:not(.home) main{max-width:none}

/* Refined footer */
.site-footer{margin-top:25px;background:#eef7ff;border-top:1px solid #dcecf8;padding:34px 24px 22px;text-align:center}
.footer-inner{max-width:1180px;margin:0 auto}
.footer-brand img{display:block;width:auto;height:auto;max-width:155px;max-height:82px;margin:0 auto 10px}
.footer-brand p{margin:0;color:#24324a;font-size:17px;font-weight:700}
.footer-links{display:flex;justify-content:center;flex-wrap:wrap;gap:24px;margin:22px 0 16px}
.footer-links a{color:#24324a;text-decoration:none;font-weight:700;font-size:15px}
.footer-links a:hover{color:#ec3d96}
.footer-copy{padding-top:16px;border-top:1px solid #d7e8f4;color:#697586;font-size:13px}

/* Keep WooCommerce notices, cart and checkout comfortably inside the page. */
.woocommerce-message,.woocommerce-info,.woocommerce-error{border-radius:12px}
.woocommerce table.shop_table{border-radius:12px;overflow:hidden}

@media(max-width:800px){
  .top{font-size:15px}
  .site-header{justify-content:center;padding:15px 4%}
  .site-header nav{gap:15px;flex-wrap:wrap;justify-content:center}
  .site-header nav a{font-size:16px}
  .title{font-size:32px}
  .page-main{padding:0 18px 40px}
  .woocommerce-main{padding:0 18px 40px}
  .woocommerce div.product div.images,.woocommerce div.product div.summary{width:100%;float:none}
  .woocommerce div.product .product_title{font-size:34px}
  .footer-links{gap:14px}
}

/* Branded category filters on Shop/category archives */
.pf-category-filter{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin:8px 0 26px;clear:both}
.pf-category-button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 20px;border:2px solid #ec3d96;border-radius:999px;background:#fff;color:#24324a;text-decoration:none;font-weight:800;line-height:1.2;transition:.18s ease}
.pf-category-button:hover,.pf-category-button:focus,.pf-category-button.is-active{background:#ec3d96;color:#fff}
.pf-quantity-offer{clear:both;margin:0 0 24px;padding:14px 18px;border-radius:14px;background:#eef7ff;border:1px solid #d7e8f4;color:#24324a;font-size:16px}
.woocommerce div.product div.images .flex-control-thumbs img.pf-active-thumb{opacity:1;outline:3px solid #ec3d96;outline-offset:2px;border-radius:8px}

/* RC8 product gallery: WooCommerce default stacked gallery is replaced by the
   theme template. Every image is contained inside a fixed frame; nothing is cropped. */
.woocommerce div.product div.images.pf-product-gallery{width:52%;margin-bottom:40px;float:left}
.woocommerce div.product div.images.pf-product-gallery .pf-main-image-frame{
  width:100%;
  aspect-ratio:1 / 1;
  min-height:0;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  padding:10px;
  border:1px solid #ececec;
  border-radius:16px;
  background:#fff;
}
.woocommerce div.product div.images.pf-product-gallery .pf-main-product-image{
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
  object-position:center center!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:10px!important;
  box-shadow:none!important;
  transform:none!important;
}
.woocommerce div.product div.images.pf-product-gallery .pf-product-thumbs{
  display:flex!important;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  width:100%;
  margin:12px 0 0!important;
  padding:0!important;
  list-style:none!important;
}
.woocommerce div.product div.images.pf-product-gallery .pf-product-thumb{
  box-sizing:border-box!important;
  width:80px!important;
  height:60px!important;
  min-width:80px!important;
  max-width:80px!important;
  min-height:60px!important;
  max-height:60px!important;
  flex:0 0 80px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  overflow:hidden!important;
  margin:0!important;
  padding:3px!important;
  border:1px solid #d9d9d9!important;
  border-radius:8px!important;
  background:#fff!important;
  box-shadow:none!important;
  cursor:pointer;
  appearance:none;
  -webkit-appearance:none;
}
.woocommerce div.product div.images.pf-product-gallery .pf-product-thumb:hover,
.woocommerce div.product div.images.pf-product-gallery .pf-product-thumb:focus{
  border-color:#ec3d96!important;
  outline:none!important;
}
.woocommerce div.product div.images.pf-product-gallery .pf-product-thumb.is-active{
  border:2px solid #ec3d96!important;
  padding:2px!important;
}
.woocommerce div.product div.images.pf-product-gallery .pf-product-thumb img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
  object-position:center center!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:4px!important;
  box-shadow:none!important;
  transform:none!important;
}

@media(max-width:800px){
  .pf-category-filter{gap:8px;margin-bottom:20px}
  .pf-category-button{min-height:40px;padding:8px 14px;font-size:14px}
  .woocommerce div.product div.images.pf-product-gallery{width:100%;float:none}
  .woocommerce div.product div.images.pf-product-gallery .pf-main-image-frame{aspect-ratio:1 / 1;padding:7px}
  .woocommerce div.product div.images.pf-product-gallery .pf-product-thumbs{gap:6px}
  .woocommerce div.product div.images.pf-product-gallery .pf-product-thumb{
    width:68px!important;height:52px!important;min-width:68px!important;max-width:68px!important;
    min-height:52px!important;max-height:52px!important;flex-basis:68px!important;
  }
}

/* English / Maltese language switcher */
.site-header{justify-content:space-between;gap:24px}
.pf-language-switcher{display:inline-flex;align-items:center;gap:9px;flex:0 0 auto;padding:7px 11px;border:1px solid #e1e6ec;border-radius:999px;background:#f8fbff;font-size:14px;line-height:1}
.pf-language-switcher a{color:#526274;text-decoration:none;font-weight:700;padding:5px 7px;border-radius:999px;transition:.18s ease}
.pf-language-switcher a:hover{color:#ec3d96}
.pf-language-switcher a.is-active{background:#ec3d96;color:#fff}
.pf-language-switcher span{color:#b8c1cc}
@media(max-width:800px){
  .site-header{flex-direction:column;gap:12px}
  .pf-language-switcher{order:-1}
}


/* v15.7 — Random mixed homepage products */
.pf-random-products{grid-template-columns:repeat(4,minmax(0,1fr));max-width:1700px;margin:0 auto}
.pf-home-product-card{display:flex;flex-direction:column;min-width:0}
.pf-home-product-image{display:block;aspect-ratio:1 / 1;overflow:hidden;background:#fff}
.pf-home-product-image img{width:100%;height:100%;object-fit:cover;object-position:center;display:block;transition:transform .2s ease}
.pf-home-product-card:hover .pf-home-product-image img{transform:scale(1.02)}
.pf-home-product-card .info{display:flex;flex-direction:column;flex:1;padding:16px 18px 18px}
.pf-home-product-card h3{margin:0 0 12px;font-size:20px;line-height:1.25}
.pf-home-product-card h3 a{color:#18243a;text-decoration:none}
.pf-home-product-card h3 a:hover{color:#ec3d96}
.pf-home-product-card .price{margin-top:auto;margin-bottom:10px;font-size:18px}
.pf-home-product-card .price del{opacity:.55;font-weight:600}
.pf-home-product-card .price ins{text-decoration:none}
.pf-home-product-card .btn{margin-top:0;font-weight:700}
.pf-random-products-noscript,.pf-random-products-empty{text-align:center;padding:10px 24px 45px;color:#526274}
@media(max-width:1100px){.pf-random-products{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.pf-random-products{grid-template-columns:1fr;padding-left:18px;padding-right:18px}.pf-home-product-card h3{font-size:18px}}


/* v15.8 — homepage performance refinements */
.hero picture{display:block;width:100%}
.hero img{aspect-ratio:1981 / 794;object-fit:cover}
.pf-product-skeleton{pointer-events:none}
.pf-skeleton-image{aspect-ratio:1/1;background:linear-gradient(90deg,#f3f5f8 25%,#fafbfc 37%,#f3f5f8 63%);background-size:400% 100%;animation:pfSkeleton 1.4s ease infinite}
.pf-skeleton-line,.pf-skeleton-button{border-radius:8px;background:linear-gradient(90deg,#f3f5f8 25%,#fafbfc 37%,#f3f5f8 63%);background-size:400% 100%;animation:pfSkeleton 1.4s ease infinite}
.pf-skeleton-title{height:24px;width:72%;margin-bottom:16px}
.pf-skeleton-price{height:20px;width:32%;margin-bottom:12px}
.pf-skeleton-button{height:42px;width:100%;border-radius:999px}
@keyframes pfSkeleton{0%{background-position:100% 50%}100%{background-position:0 50%}}
@media (prefers-reduced-motion:reduce){.pf-skeleton-image,.pf-skeleton-line,.pf-skeleton-button{animation:none}}
