/*
Theme Name: Gramatura
Theme URI: https://gramatura.com
Author: Gramatura Team
Author URI: https://gramatura.com
Description: Custom theme for Gramatura restaurant and board game café featuring cube page transitions
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: gramatura
Tags: restaurant, board-games, woocommerce, custom

*/

:root {
    --primary-brown: #833A27;
    --primary-beige: #F0E6C3;
    --accent-cream: #F5EBD8;
    --dark-text: #2D1810;
    --white: #FFFFFF;
    --transition-duration: 1s;
    
    /* Light mode (default) */
    --bg-primary: #F0E6C3;
    --bg-secondary: #F5EBD8;
    --bg-card: #FFFFFF;
    --text-primary: #2D1810;
    --text-secondary: #833A27;
    --border-color: #D4C4A8;
    --shadow-color: rgba(92, 58, 46, 0.15);
}

[data-theme="dark"] {
    --primary-brown: #F0E6C3;
    --primary-beige: #833A27;
    --accent-cream: #2D1810;
    --dark-text: #F0E6C3;
    --white: #2D1810;
    
    --bg-primary: #833A27;
    --bg-secondary: #3D2A1F;
    --bg-card: #833A27;
    --text-primary: #F5EBD8;
    --text-secondary: #F5EBD8;
    --border-color: #5C4A3E;
    --shadow-color: rgba(0, 0, 0, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #833A27;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

[data-theme="light"] .preloader {
    background-color: #F0E6C3;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    position: relative;
    width: 100%;
    padding: 0 20px;
    display: flex;
    justify-content: center;
}

/* Ribbon Styles */
.preloader-ribbon {
    --s: 2.5em;  /* the ribbon side width */
    --d: 1em;    /* the depth/top margin */
    --c: 1em;    /* the cutout part */
    
    position: relative;
    width: 0%;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--d) var(--s) calc(var(--d) * 2);
    background-color: #F0E6C3;
    transition: width 2s ease-in-out, opacity 0.3s ease;
    background:
        conic-gradient(at left var(--s) bottom var(--d),
            #0000 25%, #0008 0 37.5%, #0004 0) 0 / 50% 100% no-repeat,
        conic-gradient(at right var(--s) bottom var(--d),
            #0004 62.5%, #0008 0 75%, #0000 0) 100% / 50% 100% no-repeat;
    clip-path: polygon(
        0 var(--d),
        var(--s) var(--d),
        var(--s) 0,
        calc(100% - var(--s)) 0,
        calc(100% - var(--s)) var(--d),
        100% var(--d),
        calc(100% - var(--c)) calc(50% + var(--d)/2),
        100% 100%,
        calc(100% - var(--s) - var(--d)) 100%,
        calc(100% - var(--s) - var(--d)) calc(100% - var(--d)),
        calc(var(--s) + var(--d)) calc(100% - var(--d)),
        calc(var(--s) + var(--d)) 100%,
        0 100%,
        var(--c) calc(50% + var(--d)/2)
    );
    background-color: #F0E6C3;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    opacity: 1;
}

.preloader-ribbon.loaded {
    width: 100%;
}

[data-theme="light"] .preloader-ribbon {
    background-color: #833A27;
    background:
        conic-gradient(at left var(--s) bottom var(--d),
            #0000 25%, #0003 0 37.5%, #0001 0) 0 / 50% 100% no-repeat,
        conic-gradient(at right var(--s) bottom var(--d),
            #0001 62.5%, #0003 0 75%, #0000 0) 100% / 50% 100% no-repeat;
    clip-path: polygon(
        0 var(--d),
        var(--s) var(--d),
        var(--s) 0,
        calc(100% - var(--s)) 0,
        calc(100% - var(--s)) var(--d),
        100% var(--d),
        calc(100% - var(--c)) calc(50% + var(--d)/2),
        100% 100%,
        calc(100% - var(--s) - var(--d)) 100%,
        calc(100% - var(--s) - var(--d)) calc(100% - var(--d)),
        calc(var(--s) + var(--d)) calc(100% - var(--d)),
        calc(var(--s) + var(--d)) 100%,
        0 100%,
        var(--c) calc(50% + var(--d)/2)
    );
    background-color: #833A27;
}

.ribbon-logo {
    position: absolute;
    width: 100%;
    max-width: 253px;
    height: auto;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    opacity: 0;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.ribbon-logo.visible {
    opacity: 1;
}

.ribbon-logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Show/hide logos based on theme */
.preloader .logo-dark {
    display: block;
}

.preloader .logo-light {
    display: none;
}

[data-theme="light"] .preloader .logo-dark {
    display: none;
}

[data-theme="light"] .preloader .logo-light {
    display: block;
}

@media (max-width: 768px) {
    .preloader-ribbon {
        --s: 1.8em;
        --d: 0.8em;
        --c: 0.8em;
        min-height: 100px;
    }
    
    .ribbon-logo {
        max-width: 180px;
    }
}

/* Cube Container */
.cube-container {
    width: 100%;
    min-height: 100vh;
    perspective-origin: 50% 50%;
    position: relative;
    overflow: visible;
    background: var(--bg-primary);
}

.cube {
    width: 100%;
    min-height: 100vh;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.75s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-transform-style: preserve-3d;
    will-change: transform;
}

/* Dice-style zoom animation */
.cube.rotating {
    animation: diceZoom 0.75s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes diceZoom {
    0% {
        scale: 1;
    }
    25% {
        scale: 0.4;
    }
    75% {
        scale: 0.4;
    }
    100% {
        scale: 1;
    }
}

.cube-face {
    position: absolute;
    width: 100%;
    min-height: 100vh;
    background-color: var(--bg-primary);
    overflow: visible;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    opacity: 1;
    pointer-events: none;
    transition: opacity 0s linear 0.75s;
    border: 5px solid var(--primary-brown);
}

/* Show active face */
.cube--show-front .cube-face--front,
.cube--show-back .cube-face--back,
.cube--show-right .cube-face--right,
.cube--show-left .cube-face--left,
.cube--show-top .cube-face--top,
.cube--show-bottom .cube-face--bottom {
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0s linear 0s;
}

/* Hide inactive faces after animation */
.cube--show-front .cube-face:not(.cube-face--front),
.cube--show-back .cube-face:not(.cube-face--back),
.cube--show-right .cube-face:not(.cube-face--right),
.cube--show-left .cube-face:not(.cube-face--left),
.cube--show-top .cube-face:not(.cube-face--top),
.cube--show-bottom .cube-face:not(.cube-face--bottom) {
    opacity: 0;
    pointer-events: none;
}

/* Cube Face Positions - Proper die dimensions (equal width and height) */
.cube-face--front {
    transform: translateZ(50vw);
}

.cube-face--back {
    transform: rotateY(180deg) translateZ(50vw);
}

.cube-face--right {
    transform: rotateY(90deg) translateZ(50vw);
}

.cube-face--left {
    transform: rotateY(-90deg) translateZ(50vw);
    border-bottom: 0;
}

.cube-face--top {
    transform: rotateX(90deg) translateZ(26vw) translateY(-50vh);
    transform-origin: center top;
}

.cube-face--bottom {
    transform: rotateX(-90deg) translateZ(50vw) translateY(-50vh);
    transform-origin: center top;
}


/* Cube Rotations */
.cube--show-front {
    transform: translateZ(-50vh);
}

.cube--show-back {
    transform: translateZ(-50vh) rotateY(-180deg);
}

.cube--show-right {
    transform: translateZ(-50vh) rotateY(-90deg);
}

.cube--show-left {
    transform: translateZ(-50vh) rotateY(90deg);
}

.cube--show-top {
    transform: translateZ(-50vh) rotateX(-90deg);
}

.cube--show-bottom {
    transform: translateZ(-50vh) rotateX(90deg);
}

/* Header */
.site-header {
    background-color: var(--primary-brown);
    color: var(--white);
    padding: 20px 0;
    position: relative;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.site-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.site-logo img,
.site-logo .custom-logo {
    height: 60px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.site-logo .logo-svg {
    color: var(--white);
    height: 60px;
    width: 60px;
}

.site-logo h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    color: var(--white);
}

.site-tagline {
    font-size: 14px;
    opacity: 0.9;
    color: var(--white);
}

/* Navigation */
.site-navigation {
    display: flex;
    gap: 20px;
    align-items: center;
}

/* Theme Toggle */
.theme-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 5px;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px;
    border-radius: 20px;
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--white);
    padding: 6px 12px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s;
    opacity: 0.7;
}

.lang-btn:hover,
.lang-btn.active {
    background: rgba(255, 255, 255, 0.2);
    opacity: 1;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s, cursor 0.3s;
    cursor: pointer;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    cursor: default;
    pointer-events: none;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: calc(100vh - 200px);
}

/* Section Styles */
.section-title {
    font-size: 36px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    text-align: center;
}

.section-subtitle {
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 20px;
}

/* Menu Items Grid */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.menu-item {
    background: var(--bg-card);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px var(--shadow-color);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border-color);
}

.menu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.menu-item-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 15px;
}

.menu-item-title {
    font-size: 22px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.menu-item-description {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 15px;
    line-height: 1.6;
}

.menu-item-price {
    font-size: 20px;
    color: var(--text-secondary);
    font-weight: 700;
    margin-bottom: 15px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-brown);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #4a2f24;
}

.btn-secondary {
    background-color: var(--primary-beige);
    color: var(--primary-brown);
    border: 2px solid var(--primary-brown);
}

.btn-secondary:hover {
    background-color: var(--primary-brown);
    color: var(--white);
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
    background: var(--bg-card);
    color: var(--text-primary);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-brown);
}

/* Board Games Grid */
.board-games-filters {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px var(--shadow-color);
    border: 1px solid var(--border-color);
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.board-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.board-game-card {
    background: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px var(--shadow-color);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border-color);
}

.board-game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.board-game-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.board-game-content {
    padding: 20px;
}

.board-game-title {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.board-game-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.meta-badge {
    padding: 5px 12px;
    background-color: var(--bg-secondary);
    border-radius: 15px;
    font-size: 12px;
    color: var(--text-primary);
}

.board-game-description {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    color: var(--text-primary);
}

/* Cart */
.cart-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary-brown);
    color: var(--white);
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.cart-widget:hover {
    transform: scale(1.05);
}

.cart-widget svg * {
    fill: var(--white);
}

.cart-count {
    background-color: var(--white);
    color: var(--primary-brown);
    padding: 5px 10px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 14px;
}

/* Cart Preview */
.cart-preview {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 10px;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    width: 350px;
    max-height: 500px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.cart-preview.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.cart-preview-header {
    background-color: var(--primary-brown);
    color: var(--white);
    padding: 15px 20px;
    font-weight: 600;
    font-size: 16px;
}

.cart-preview-items {
    max-height: 350px;
    overflow-y: auto;
    padding: 10px;
}

.cart-preview-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.2s;
}

.cart-preview-item:hover {
    background-color: var(--primary-beige);
}

.cart-preview-item:last-child {
    border-bottom: none;
}

.cart-preview-item-image {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
}

.cart-preview-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.cart-preview-item-details {
    flex: 1;
}

.cart-preview-item-name {
    font-weight: 600;
    color: var(--primary-brown);
    margin-bottom: 5px;
}

.cart-preview-item-quantity {
    font-size: 14px;
    color: #666;
}

.cart-preview-empty {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.cart-preview-footer {
    padding: 15px 20px;
    border-top: 1px solid #e0e0e0;
}

.cart-preview-link {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-brown);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.cart-preview-link:hover {
    background-color: #4a2820;
}

/* Loading Spinner */
.loading-spinner {
    border: 4px solid var(--primary-beige);
    border-top: 4px solid var(--primary-brown);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* WooCommerce Cart */
.woocommerce-cart .container {
    max-width: 1200px;
    margin: 0 auto;
}

.shop_table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.shop_table thead {
    background-color: var(--primary-brown);
    color: var(--white);
}

.shop_table thead th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.shop_table tbody tr {
    border-bottom: 1px solid #e0e0e0;
}

.shop_table tbody td {
    padding: 20px 15px;
    vertical-align: middle;
}

.shop_table .product-thumbnail img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.shop_table .product-name a {
    color: var(--primary-brown);
    text-decoration: none;
    font-weight: 600;
}

.shop_table .product-name a:hover {
    text-decoration: underline;
}

.shop_table .product-price,
.shop_table .product-subtotal {
    font-weight: 600;
    color: var(--primary-brown);
}

.shop_table .product-quantity input {
    width: 60px;
    padding: 8px;
    border: 1px solid var(--primary-beige);
    border-radius: 4px;
    text-align: center;
}

.shop_table .product-remove a {
    color: #d32f2f;
    font-size: 24px;
    text-decoration: none;
    font-weight: bold;
    line-height: 1;
}

.shop_table .product-remove a:hover {
    color: #b71c1c;
}

.shop_table .actions {
    background-color: var(--primary-beige);
    padding: 20px;
}

.shop_table .coupon {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    margin-right: 20px;
}

.shop_table .coupon input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.cart_totals {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-top: 30px;
    max-width: 500px;
    margin-left: auto;
}

.cart_totals h2 {
    color: var(--primary-brown);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary-beige);
    padding-bottom: 10px;
}

.cart_totals table {
    width: 100%;
}

.cart_totals th,
.cart_totals td {
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

.cart_totals th {
    text-align: left;
    font-weight: 600;
}


.cart_totals .order-total th,
.cart_totals .order-total td {
    font-size: 1.2em;
    font-weight: bold;
    color: var(--primary-brown);
    border-top: 2px solid var(--primary-brown);
    padding-top: 15px;
}

.wc-proceed-to-checkout {
    margin-top: 20px;
}

.wc-proceed-to-checkout .checkout-button {
    width: 100%;
    padding: 15px;
    background-color: var(--primary-brown);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.wc-proceed-to-checkout .checkout-button:hover {
    background-color: #4a2820;
}

/* Empty Cart */
.cart-empty,
.woocommerce-info {
    text-align: center;
    padding: 40px 20px;
    background-color: var(--primary-beige);
    border-radius: 8px;
    margin: 30px 0;
}

.return-to-shop {
    margin-top: 20px;
}

/* Responsive Cart */
@media (max-width: 768px) {
    .shop_table thead {
        display: none;
    }
    
    .shop_table tbody tr {
        display: block;
        margin-bottom: 20px;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        padding: 15px;
    }
    
    .shop_table tbody td {
        display: block;
        text-align: right;
        padding: 10px 0;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .shop_table tbody td:before {
        content: attr(data-title);
        float: left;
        font-weight: 600;
    }
    
    .shop_table .product-thumbnail {
        text-align: center;
    }
    
    .shop_table .product-thumbnail:before {
        display: none;
    }
    
    .shop_table .actions {
        display: block;
    }
    
    .shop_table .coupon {
        display: flex;
        flex-direction: column;
        margin-bottom: 15px;
    }
    
    .cart_totals {
        max-width: 100%;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .site-navigation {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .nav-link {
        font-size: 14px;
        padding: 8px 12px;
    }
    
    .language-switcher {
        order: 10;
        width: 100%;
        justify-content: center;
    }
    
    .theme-toggle {
        order: 11;
    }
    
    .menu-grid,
    .board-games-grid {
        grid-template-columns: 1fr;
    }
    
    .filters-grid {
        grid-template-columns: 1fr;
    }
    
    .cube-face {
        box-shadow: 
            inset 10px 0 20px -10px var(--shadow-color),
            inset -10px 0 20px -10px var(--shadow-color),
            inset 0 10px 20px -10px var(--shadow-color),
            inset 0 -10px 20px -10px var(--shadow-color);
    }
}

/* Footer */
.site-footer {
    background-color: var(--primary-brown);
    color: var(--white);
    padding: 40px 20px;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

.footer-link {
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-link:hover {
    opacity: 0.8;
}

/* Cart and Checkout Pages */
.cart-page-content,
.checkout-page-content {
    min-height: calc(100vh - 200px);
    padding: 40px 20px;
    background-color: var(--bg-primary);
}

.cart-page-content .container,
.checkout-page-content .container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Breadcrumb Navigation */
.woocommerce-breadcrumb {
    margin-bottom: 30px;
    padding: 15px 20px;
    background-color: var(--bg-card);
    border-radius: 5px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    color: var(--text-primary);
}

.woocommerce-breadcrumb a {
    color: var(--primary-brown);
    text-decoration: none;
    transition: opacity 0.3s;
    font-weight: 600;
}

.woocommerce-breadcrumb a:hover {
    opacity: 0.7;
}

.woocommerce-breadcrumb .breadcrumb-separator {
    margin: 0 10px;
    color: var(--text-secondary);
}

.woocommerce-breadcrumb span:not(.breadcrumb-separator) {
    color: var(--text-secondary);
    font-weight: 600;
}

.cart-page-content .page-title,
.checkout-page-content .page-title {
    font-size: 2.5em;
    color: var(--text-secondary);
    margin-bottom: 30px;
    text-align: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Ensure WooCommerce styles work with our theme */
.cart-page-content .woocommerce,
.checkout-page-content .woocommerce {
    background-color: var(--bg-card);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px var(--shadow-color);
}

/* WooCommerce Form Styling */
.woocommerce form .form-row {
    margin-bottom: 20px;
}

.woocommerce form .form-row label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-secondary);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
    background: var(--bg-card);
    color: var(--text-primary);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
    outline: none;
    border-color: var(--primary-brown);
}

/* WooCommerce Buttons */
.woocommerce button.button,
.woocommerce a.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    text-align: center;
    background-color: var(--primary-brown);
    color: var(--white);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.woocommerce button.button:hover,
.woocommerce a.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
    background-color: #4a2f24;
}

.woocommerce button.button.alt,
.woocommerce a.button.alt {
    background-color: var(--primary-brown);
    color: var(--white);
}

.woocommerce button.button.alt:hover,
.woocommerce a.button.alt:hover {
    background-color: #4a2f24;
}

/* WooCommerce Tables */
.woocommerce table.shop_table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.woocommerce table.shop_table th, .woocommerce table.shop_table .order-total td {
    background-color: var(--primary-brown);
    color: var(--white);
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.woocommerce table.shop_table .cart-subtotal th,
.woocommerce table.shop_table .cart-subtotal td {
    background-color: var(--bg-secondary);
    color: var(--text-secondary);
}

.woocommerce table.shop_table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.woocommerce table.shop_table tr:last-child td {
    border-bottom: none;
}

.woocommerce table.shop_table .product-thumbnail img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
}

.woocommerce table.shop_table .product-name a {
    color: var(--primary-brown);
    text-decoration: none;
    font-weight: 600;
}

.woocommerce table.shop_table .product-name a:hover {
    opacity: 0.7;
}

.woocommerce table.shop_table .product-remove a {
    color: #e74c3c;
    text-decoration: none;
    font-weight: bold;
    font-size: 20px;
}

.woocommerce table.shop_table .product-remove a:hover {
    color: #c0392b;
}

/* Cart Quantity Input */
.woocommerce .quantity .qty {
    width: 70px;
    padding: 8px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    text-align: center;
    font-size: 16px;
    background: var(--bg-card);
    color: var(--text-primary);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Cart Totals */
.woocommerce .cart_totals {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 10px;
    border: 2px solid var(--border-color);
}

.woocommerce .cart_totals table {
    width: 100%;
}

.woocommerce .cart_totals table th,
.woocommerce .cart_totals table td {
    padding: 12px;
    color: var(--text-primary);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.woocommerce .cart_totals .order-total th,
.woocommerce .cart_totals .order-total td {
    font-size: 1.2em;
    font-weight: bold;
    border-top: 2px solid var(--primary-brown);
}

/* Coupon Form */
.woocommerce .coupon {
    margin-bottom: 20px;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 5px;
    border: 2px solid var(--border-color);
}

.woocommerce .coupon label {
    display: inline-block;
    margin-right: 10px;
    font-weight: 600;
    color: var(--text-secondary);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.woocommerce .coupon input.input-text {
    width: 200px;
    margin-right: 10px;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    background: var(--bg-card);
    color: var(--text-primary);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.woocommerce .coupon input.input-text:focus {
    outline: none;
    border-color: var(--primary-brown);
}

/* Checkout Form Layout */
.woocommerce-checkout #customer_details {
    margin-bottom: 30px;
}

.woocommerce-checkout .col2-set {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.woocommerce-checkout h3 {
    color: var(--text-secondary);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary-brown);
    padding-bottom: 10px;
}

/* Order Review */
.woocommerce-checkout #order_review_heading {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.woocommerce-checkout #order_review {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 10px;
    border: 2px solid var(--border-color);
}

/* Payment Methods */
.woocommerce-checkout #payment {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}

.woocommerce-checkout #payment .payment_methods {
    list-style: none;
    padding: 0;
}

.woocommerce-checkout #payment .payment_methods li {
    margin-bottom: 15px;
}

.woocommerce-checkout #payment .payment_methods label {
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.woocommerce-checkout #payment .payment_box {
    background: var(--bg-secondary);
    padding: 15px;
    border-radius: 5px;
    margin-top: 10px;
    color: var(--text-primary);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Place Order Button */
.woocommerce-checkout #place_order {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    margin-top: 20px;
}

/* WooCommerce Links */
.woocommerce a {
    color: var(--primary-brown);
    text-decoration: none;
}

.woocommerce a:hover {
    opacity: 0.7;
}

/* WooCommerce Messages */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-primary);
}

.woocommerce-message {
    background-color: var(--bg-secondary);
    border-left: 4px solid var(--primary-brown);
}

/* Responsive Cart/Checkout */
@media (max-width: 768px) {
    .woocommerce-checkout .col2-set {
        grid-template-columns: 1fr;
    }
    
    .woocommerce table.shop_table {
        font-size: 14px;
    }
    
    .woocommerce table.shop_table th,
    .woocommerce table.shop_table td {
        padding: 10px;
    }
    
    .woocommerce table.shop_table .product-thumbnail img {
        width: 60px;
        height: 60px;
    }
    
    .woocommerce .coupon input.input-text {
        width: 150px;
    }
    
    .woocommerce-breadcrumb {
        font-size: 12px;
    }
}

/* ============================================
   HOME PAGE STYLES (Static Home Page Template)
   ============================================ */

/* Home Page Wrapper */
.home-page-wrapper,
.static-home-page .home-page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Fixed header only for static home page */
.static-home-page .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-card);
    box-shadow: 0 2px 8px var(--shadow-color);
}

/* Home Main Container */
.static-home-page .home-main {
    padding-top: 80px;
    flex: 1;
}

/* Hero Banner Section */
.hero-banner {
    width: 100%;
}

.banner-image {
    width: 100%;
    height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(92, 58, 46, 0.4), rgba(92, 58, 46, 0.7));
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-content {
    text-align: center;
    color: #fff;
    padding: 20px;
}

.banner-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease;
}

.banner-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease 0.2s backwards;
}

/* What is Gramatura Section */
.what-is-gramatura-section {
    padding: 80px 0;
    background: var(--bg-primary);
}

.what-is-gramatura-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.feature-row {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 80px;
}

.feature-row:last-child {
    margin-bottom: 0;
}

.feature-row-reverse {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
    position: relative;
}

.feature-number {
    position: absolute;
    top: -30px;
    left: -40px;
    width: 80px;
    height: 80px;
    background: var(--text-secondary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    box-shadow: 0 4px 12px var(--shadow-color);
}

.feature-text h3 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 15px;
    font-weight: 600;
}

.feature-text p {
    font-size: 1.1rem;
    color: var(--text-primary);
    line-height: 1.8;
}

.feature-image {
    flex: 1;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 24px var(--shadow-color);
}

.feature-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.feature-image:hover img {
    transform: scale(1.05);
}

/* Instagram Feed Section */
.instagram-feed-section {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.instagram-feed-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 600;
}

/* Menu Preview Section */
.menu-preview-section {
    padding: 80px 0;
    background: var(--bg-primary);
}

.menu-preview-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.menu-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.menu-item-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.menu-item-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px var(--shadow-color);
}

.menu-item-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.menu-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.menu-item-card:hover .menu-item-image img {
    transform: scale(1.1);
}

.menu-item-content {
    padding: 20px;
    text-align: center;
}

.menu-item-title {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 10px;
    font-weight: 600;
}

.menu-item-price {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 700;
}

.menu-preview-actions {
    text-align: center;
    margin-top: 30px;
}

/* Quick Reservation Section */
.quick-reservation-section {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.quick-reservation-section .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.reservation-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 30px;
}

.quick-reservation-form {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 12px var(--shadow-color);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group input[type="time"],
.form-group select {
    width: 100%;
    padding: 12px 15px;
    font-size: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--text-secondary);
    box-shadow: 0 0 0 3px rgba(131, 58, 39, 0.1);
}

.form-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn {
    flex: 1;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: var(--text-secondary);
    color: #fff;
}

.btn-primary:hover {
    background: #A04830;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(131, 58, 39, 0.3);
}

.btn-secondary {
    background: var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--text-primary);
    color: var(--bg-card);
    transform: translateY(-2px);
}

.reservation-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
}

.reservation-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.reservation-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .home-main {
        padding-top: 70px;
    }
    
    .banner-image {
        height: 350px;
    }
    
    .banner-title {
        font-size: 2.5rem;
    }
    
    .banner-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .what-is-gramatura-section {
        padding: 50px 0;
    }
    
    .feature-row,
    .feature-row-reverse {
        flex-direction: column;
        gap: 30px;
        margin-bottom: 50px;
    }
    
    .feature-number {
        position: static;
        margin: 0 auto 20px;
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .feature-text h3 {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .feature-text p {
        text-align: center;
        font-size: 1rem;
    }
    
    .feature-image img {
        height: 300px;
    }
    
    .menu-preview-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .quick-reservation-form {
        padding: 30px 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
        margin-bottom: 0;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-buttons {
        flex-direction: column;
    }
    
    .instagram-feed-section,
    .menu-preview-section,
    .quick-reservation-section {
        padding: 50px 0;
    }
}

@media (max-width: 480px) {
    .banner-image {
        height: 250px;
    }
    
    .banner-title {
        font-size: 2rem;
    }
    
    .banner-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .quick-reservation-form {
        padding: 20px 15px;
    }
    
    .btn {
        padding: 12px 30px;
        font-size: 1rem;
    }
}
