/*
Theme Name: SiniSulka Apple Edition
Template: storefront
Version: 1.0.0
*/

/* ============================================================
   GLOBAL TYPOGRAPHY + SPACING
============================================================ */
html {
    scroll-behavior: smooth;
    height: 100%;
}

body,
button,
input,
select,
textarea {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    color: #1d1d1f;
    background: #ffffff;
    line-height: 1.5;
    height: 100%;
}

.col-full {
    max-width: 100% !important;
    padding: 0 !important;
}

/* ============================================================
   STICKY FOOTER LAYOUT
============================================================ */
#page {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

#colophon {
    margin-top: auto;
}

/* ============================================================
   REMOVE PAGE TITLES
============================================================ */
.entry-title {
    display: none !important;
}

/* ============================================================
   APPLE HEADER (Glassmorphism)
============================================================ */
.site-header.apple-header {
    background: rgba(255,255,255,0.72) !important;
    backdrop-filter: saturate(180%) blur(20px) !important;
    border-bottom: 1px solid rgba(0,0,0,0.08) !important;
    padding: 12px 24px !important;
    position: sticky;
    top: 0;
    z-index: 999;
}

.apple-header-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.apple-logo img {
    height: 32px;
    width: auto;
}

/* ============================================================
   NAVIGATION
============================================================ */
.site-header .main-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-navigation ul.menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 28px;
}

.main-navigation ul.menu > li > a {
    text-decoration: none;
    color: #2fb5bb !important;
    font-weight: 600;
    padding: 12px 6px;
    display: inline-block;
    transition: color 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.main-navigation ul.menu > li > a:hover {
    color: #ffffff !important;
    background: #2fb5bb !important;
    border-radius: 6px;
}

/* Dropdown */
.main-navigation ul.menu li ul.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
    z-index: 999;
    padding: 8px 0;
}

.main-navigation ul.menu li:hover > ul.sub-menu,
.main-navigation ul.menu li:focus-within > ul.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-navigation ul.sub-menu li a {
    display: block;
    padding: 10px 16px;
    color: #2fb5bb !important;
    font-weight: 500;
}

.main-navigation ul.sub-menu li a:hover {
    background: #2fb5bb !important;
    color: #ffffff !important;
}

/* Mobile nav */
@media (max-width: 900px) {
    .apple-header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .main-navigation ul.menu {
        flex-direction: column;
        gap: 0;
    }

    .main-navigation ul.menu li ul.sub-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        padding-left: 16px;
    }

    .site-header.apple-header {
        padding: 16px !important;
    }
}

/* ============================================================
   BREADCRUMB FIX
============================================================ */
#page > div.storefront-breadcrumb,
#page > div.storefront-breadcrumb .col-full {
    text-align: center !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 12px 0 !important;
}

/* ============================================================
   HERO SECTION (Default)
============================================================ */
.apple-hero {
    text-align: center;
    padding: 120px 24px;
    background: #ffffff;
    margin-bottom: 60px;
}

.apple-hero h1,
.apple-hero p,
.apple-hero .apple-cta {
    color: #ffffff !important;
}

.apple-hero h1 {
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 12px;
}

.apple-hero p {
    font-size: 20px;
    opacity: 0.8;
    margin-bottom: 24px;
}

/* CTA Button */
.apple-cta {
    display: inline-block;
    padding: 12px 24px;
    background: #0066cc;
    color: #ffffff;
    border-radius: 12px;
    font-weight: 500;
    transition: opacity 0.3s ease, transform 0.2s ease;
}

.apple-cta:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

/* ============================================================
   ANIMATIONS
============================================================ */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   GLASS CARDS
============================================================ */
.glass-card {
    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(20px) saturate(180%);
    border-radius: 24px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: none !important;
}

.glass-card .apple-cta {
    background: #2fb5bb !important;
    color: #ffffff !important;
}

.glass-card .apple-cta:hover {
    opacity: 0.9;
}

/* Hide homepage cards */
.homepage-cards,
.homepage-products {
    display: none !important;
}

/* ============================================================
   PRODUCT GRID
============================================================ */
ul.products {
    list-style: none;
    margin: 0;
    padding: 0;
}

ul.products li.product {
    background: #ffffff;
    padding: 24px !important;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

ul.products li.product:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

ul.products li.product .woocommerce-loop-product__title {
    font-size: 20px;
    font-weight: 500;
    margin-top: 16px;
}

ul.products li.product .price {
    font-size: 18px;
    font-weight: 600;
    margin-top: 8px;
    color: #1d1d1f;
}

/* ============================================================
   PRODUCT DETAIL PAGE
============================================================ */
.single-product .product {
    max-width: 900px;
    margin: 0 auto;
    padding: 48px 24px;
}

.single-product .product .woocommerce-product-gallery {
    margin-bottom: 32px;
}

.single-product .product .product_title {
    font-size: 42px;
    font-weight: 600;
    margin-bottom: 12px;
}

.single-product .product .price {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 24px;
}

.single-product .product .woocommerce-product-details__short-description {
    font-size: 18px;
    opacity: 0.8;
    margin-bottom: 32px;
}

.single-product .product .cart .button {
    background: #0066cc !important;
    padding: 16px 32px !important;
    border-radius: 12px !important;
    font-size: 18px !important;
}

/* ============================================================
   GLOBAL BUTTONS
============================================================ */
button,
.button,
.add_to_cart_button,
.single_add_to_cart_button {
    border-radius: 12px !important;
    padding: 12px 24px !important;
    font-weight: 500 !important;
    transition: opacity 0.3s ease, transform 0.2s ease !important;
}

button:hover,
.button:hover,
.add_to_cart_button:hover,
.single_add_to_cart_button:hover {
    opacity: 0.85 !important;
    transform: translateY(-1px);
}

/* ============================================================
   FOOTER
============================================================ */
.site-footer {
    background: #2fb5bb !important;
    padding: 40px 0 !important;
    text-align: center;
    color: #ffffff !important;
    font-size: 14px;
}

.site-footer a {
    color: inherit !important;
    opacity: 0.8;
    text-decoration: none;
}

.site-footer a:hover {
    opacity: 1;
}

#colophon .site-info,
#colophon .footer-credit {
    text-align: center !important;
    margin: 0 auto !important;
    width: 100% !important;
    display: block !important;
    color: #ffffff !important;
}

/* ============================================================
   HIDE CART ICON
============================================================ */
#site-header-cart {
    display: none !important;
}

/* ============================================================
   NON-HOMEPAGE LAYOUT FIX
============================================================ */
body:not(.home) #primary,
body:not(.home) #primary .site-main,
body:not(.home) #primary .entry-content,
body:not(.home) #primary .wp-block-group,
body:not(.home) #primary .wp-block-columns,
body:not(.home) #primary .wp-block-media-text,
body:not(.home) #primary .wp-block-cover,
body:not(.home) #primary .wp-block-image,
body:not(.home) #primary .wp-block-table {
    max-width: 1100px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
    box-sizing: border-box !important;
}

body:not(.home) #primary .alignwide,
body:not(.home) #primary .alignfull {
    max-width: 1100px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* ============================================================
   REMOVE BLUE GUTENBERG BANNER
============================================================ */
.entry-content > .wp-block-cover.alignfull.has-background-dim-80 {
    display: none !important;
}

.entry-content {
    padding-top: 0 !important;
}

/* ============================================================
   HERO SLIDER (Lamb Meat Page)
============================================================ */

.lamb-hero-slider {
    position: relative;
    height: 500px;
    overflow: hidden;
}

/* Override default slider width */
.lamb-hero-slider .lamb-slider {
    max-width: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
}

.lamb-hero-slider .flexslider,
.lamb-hero-slider .slides,
.lamb-hero-slider .slides li,
.lamb-hero-slider img {
    height: 100%;
}

.lamb-hero-slider img {
    width: 100%;
    object-fit: cover;
}

.lamb-hero-overlay {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    padding: 32px 48px;
    border-radius: 20px;
    text-align: center;
    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(20px) saturate(180%);
}

.lamb-hero-overlay h1,
.lamb-hero-overlay p {
    color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

/* Full-width Flexslider */
.lamb-hero-slider .flexslider {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* Make images cover the entire slider area */
.lamb-hero-slider .flexslider .slides img {
    width: 100%;
    height: 100vh; /* full screen height hero */
    object-fit: cover; /* THIS is the magic */
    object-position: center;
    display: block;
}
.lamb-hero-slider .flexslider .slides li {
    margin: 0;
    padding: 0;
    height: 100vh;
}

/* Remove margin ONLY for the slider UL */
.lamb-hero-slider ul.slides,
.lamb-hero-slider ol.slides {
    margin: 0 !important;
    padding: 0 !important;
}

/* Button row layout */
.cta-row {
    display: flex;
    justify-content: center;
    gap: 16px; /* space between buttons */
    flex-wrap: wrap; /* keeps it responsive */
    margin-top: 20px;
}

/* Suvilammen button styling */
.suvilammen-btn {
    background: #1d1d1f !important; /* Apple black */
    color: #ffffff !important;
}

.suvilammen-btn:hover {
    opacity: 0.85 !important;
    transform: translateY(-1px);
}
