/*!
Theme Name: marrazi
Author: Gela Kurtanidze
Description: Description
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: marrazi
Tags: marrazi
*/
:root {
    /* Pantone 186 C */
    --primary-red: #C8102E;
    --secondary-black: #111923;
    --dark-gray: #53565b;
    --gray: #98989a;
    --white: #ffffff;
    --topbar-height: 36px;
}

@font-face {
    font-family: 'BPG Nino Mtavruli Bold';
    src: url('/wp-content/themes/marrazi/assets/fonts/bpg_nino_mtavruli_bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'BPG Nino Mtavruli';
    src: url('/wp-content/themes/marrazi/assets/fonts/bpg_nino_mtavruli_normal.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-transform: uppercase !important;
}

body {
    font-family: "BPG Nino Mtavruli", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--secondary-black);
    background: var(--white);
}

/* Header Styles */
.header {
    background: var(--white);
    box-shadow: 0 2px 20px rgba(17, 25, 35, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}
/* Fix overlap with WordPress admin bar when logged in */
@media (min-width: 783px) {
  body.admin-bar .header { top: 32px; }
}
@media (max-width: 782px) {
  body.admin-bar .header { top: 46px; }
}

.top-bar {
    background: var(--secondary-black);
    color: var(--white);
    padding: 8px 0;
    font-size: 14px;
    min-height: var(--topbar-height);
    display: block;
    /* Mask any sub-pixel gap with an inner bottom edge */
    box-shadow: inset 0 -1px 0 #0f1a24;
}
/* Seam is handled by .header gradient */
/* (legacy 'border-bottom' fix removed) */
/* Tagline color (green) */
.top-bar .tagline { color: #2b8d43; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 22px; }
@media (max-width: 600px) {
  .top-bar .tagline { font-size: 20px; }
}

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

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* right area: language + socials */
.top-right { display: flex; align-items: center; gap: 16px; }
.top-socials { display: flex; gap: 12px; }
.top-socials a { color: var(--white); opacity: 0.9; text-decoration: none; font-size: 16px; }
.top-socials a:hover { opacity: 1; color: var(--primary-red); }

.language-switcher {
    display: flex;
    gap: 15px;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.lang-btn:hover,
.lang-btn.active {
    background: var(--primary-red);
}

.main-header {
    padding: 20px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-red);
    text-decoration: none;
    letter-spacing: -1px;
}

/* Ensure consistent logo size across all pages */
.header .logo img {
    max-height: 72px;
    height: auto;
    width: auto;
    display: block;
}
@media (max-width: 600px) {
    .header .logo img { max-height: 60px; }
}

.search-bar {
    flex: 1;
    max-width: 500px;
    margin: 0 40px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 2px solid #f0f0f0;
    border-radius: 50px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(205, 32, 48, 0.1);
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-red);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: #a91829;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-icon {
    position: relative;
    color: var(--dark-gray);
    font-size: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 10px;
}

.header-icon:hover {
    color: var(--primary-red);
}

.cart-count {
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--primary-red);
    color: var(--white);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Navigation */
.navigation {
    /* Full menu bar color set to Pantone 186 C */
    background: var(--primary-red);
    padding: 0;
}

.nav-container {
    display: flex;
    align-items: center;
}

.nav-menu {
    list-style: none;
    display: flex;
    margin: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    color: var(--white);
    text-decoration: none;
    padding: 18px 25px;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.nav-link:hover {
    background: var(--primary-red);
    border-bottom-color: var(--primary-red);
}

/* Collapse top bar on scroll */
.header--compact .top-bar { }
.header--compact .main-header { margin-top: 0 !important; }

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 280px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: block;
    color: var(--secondary-black);
    text-decoration: none;
    padding: 12px 20px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.dropdown-link:hover {
    background: #f8f9fa;
    border-left-color: var(--primary-red);
    color: var(--primary-red);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 20px;
    cursor: pointer;
    padding: 18px;
    width: 100%
}

/* Hero Section */
.hero {
    background: linear-gradient(
        135deg,
        var(--secondary-black) 0%,
        var(--dark-gray) 100%
    );
    color: var(--white);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1.5" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.5;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-text {
    flex: 1;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-btn {
    background: var(--primary-red);
    color: var(--white);
    padding: 15px 35px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    background: #a91829;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(205, 32, 48, 0.3);
}

/* Category Grid */
.categories-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 60px;
    color: var(--secondary-black);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.category-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.category-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-red), #e74c3c);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--white);
}

.category-content {
    padding: 25px;
}

.category-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--secondary-black);
}

.category-desc {
    color: var(--gray);
    font-size: 14px;
}

/* Products Section */
.products-section {
    padding: 60px 0; /* slightly tighter */
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

/* Thin tricolor separator below section and page titles */
.section-title,
.entry-title {
    position: relative;
    display: inline-block; /* shrink to text width */
}

.section-title::after,
.entry-title::after {
    content: "";
    display: block;
    height: 3px; /* thinner */
    width: 100%; /* follow text width */
    margin-top: 6px;
    border-radius: 2px;
    background: linear-gradient(90deg, #2b8d43 0 33%, #ffffff 33% 66%, var(--primary-red) 66% 100%);
    box-shadow: 0 1px 2px rgba(17,25,35,.18), 0 0 0 1px rgba(17,25,35,.06);
}

@media (max-width: 600px) {
    .section-title::after,
    .entry-title::after { height: 2px; }
}

.filter-tabs {
    display: flex;
    gap: 20px;
}

.filter-btn {
    background: none;
    border: 2px solid #e0e0e0;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--dark-gray);
}

.filter-btn.active,
.filter-btn:hover {
    border-color: var(--primary-red);
    color: var(--primary-red);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.product-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.product-image {
    height: 200px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--gray);
    position: relative;
    flex: 0 0 200px; /* hard stop to prevent overlap */
}

/* Ensure image never overflows and keeps ratio */
.product-image img,
.product-image a img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.product-info {
    padding: 14px;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
    background: #fff; /* ensure text never sits over the image */
    border-top: 1px solid #f0f0f0;
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--secondary-black);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* clamp to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(1.35em * 2); /* keep equal height across cards */
}

.product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: 10px;
}

.product-actions {
    display: flex;
    gap: 10px;
    margin-top: auto; /* push actions to bottom */
}

.btn-secondary {
    background: var(--secondary-black);
    color: var(--white);
    padding: 8px 14px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s ease;
    flex: 1;
}

.btn-secondary:hover {
    background: var(--primary-red);
}

.wishlist-btn {
    background: none;
    border: 2px solid #e0e0e0;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    color: var(--gray);
    transition: all 0.3s ease;
}

.wishlist-btn:hover {
    border-color: var(--primary-red);
    color: var(--primary-red);
}
.wishlist-btn.wishlisted {
    border-color: var(--primary-red);
    color: var(--primary-red);
}

/* Footer */
.footer {
    background: var(--secondary-black);
    color: var(--white);
    padding: 40px 0 16px; /* slightly smaller */
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--white);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: var(--gray);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-red);
}

/* Footer social icons */
.footer-icons { display:flex; gap:12px; }
.footer-icons a { width:38px; height:38px; display:grid; place-items:center; background:#1a2330; color:#fff; border-radius:8px; text-decoration:none; transition:all .2s; border:1px solid #2a3442; }
.footer-icons a:hover { background: var(--primary-red); border-color: var(--primary-red); }

.footer-bottom {
    border-top: 1px solid var(--dark-gray);
    padding-top: 16px;
    text-align: center;
    color: var(--gray);
}

/* Hide old Top Sells section on homepage */
#products-top-sells { display: none !important; }
#products-sales { display: none !important; }
#products { display: none !important; }

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-menu {
        display: none;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .header-content {
        flex-wrap: wrap;
    }

    .search-bar {
        order: 3;
        width: 100%;
        margin: 20px 0 0 0;
    }

    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .products-header {
        flex-direction: column;
        gap: 20px;
    }

    .filter-tabs {
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Compact product grid on small screens */
    .product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
    .product-image { height: 160px; }
    .product-title { font-size: .95rem; }
    .product-price { font-size: 1rem; }
}

/* Loading Animation */
.loading {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    z-index: 9999;
}

.spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

@media only screen and (max-width: 500px) {
    .top-bar-content span {
        display: none
    }
}

.entry-title {
    text-align: center;
    margin: 48px 24px;
    font-size: 32px
}

.woocommerce ul.products li.product .woocommerce-loop-category__title, .woocommerce ul.products li.product .woocommerce-loop-product__title, .woocommerce ul.products li.product h3 {
    color: #000 !important;
}

/* seam fixes replaced by gradient at .header */
/* My Account page styles */
.woocommerce-account .woocommerce {
  max-width: 1100px;
  margin: 40px auto;
}
.woocommerce-account .u-columns,
.woocommerce-account .col2-set,
.woocommerce-account .u-columns.woocommerce-Addresses {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 800px) {
  .woocommerce-account .u-columns,
  .woocommerce-account .col2-set,
  .woocommerce-account .u-columns.woocommerce-Addresses { grid-template-columns: 1fr; }
}
.woocommerce-account form.login,
.woocommerce-account form.register,
.woocommerce-account .woocommerce-Address,
.woocommerce-account .woocommerce-address-fields__field-wrapper {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}
.woocommerce-account h2,
.woocommerce-account h3,
.woocommerce-account .woocommerce-Address-title h3 {
  font-size: 20px;
  font-weight: 700;
  color: #111923;
  margin: 0 0 14px;
}
.woocommerce form .form-row label { color: #53565b; font-weight: 600; }
.woocommerce form .form-row input.input-text,
.woocommerce form input[type=email],
.woocommerce form input[type=password],
.woocommerce form input[type=text] {
  width: 100%;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 12px 14px;
  background: #fff;
  outline: none;
}
.woocommerce form .form-row input:focus { border-color: #C8102E; box-shadow: 0 0 0 3px rgba(200,16,46,0.1); }
.woocommerce-account .woocommerce button.button,
.woocommerce-account .woocommerce a.button {
  background: #C8102E;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.woocommerce-account .woocommerce button.button:hover,
.woocommerce-account .woocommerce a.button:hover { filter: brightness(0.92); }
.woocommerce-LostPassword a { color: #C8102E; }
.woocommerce form .woocommerce-privacy-policy-text { font-size: 13px; color: #53565b; }
.woocommerce-account .woocommerce-message, .woocommerce-account .woocommerce-error { border-radius: 10px; }
/* Marrazi account layout */
.marrazi-account { max-width: 1100px; margin: 40px auto; }
.marrazi-account--two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.marrazi-account--single { max-width: 680px; }
@media (max-width: 900px){ .marrazi-account--two-col { grid-template-columns: 1fr; } }
.marrazi-account__title { font-size: 22px; font-weight: 800; color: #111923; margin: 0 0 16px; }
.marrazi-card { background:#fff; border:1px solid #e6e6e6; border-radius:14px; box-shadow:0 10px 30px rgba(0,0,0,.06); padding:22px; }
.marrazi-account__actions { display:flex; align-items:center; justify-content:space-between; gap: 12px; }
.marrazi-card .form-row { margin-bottom: 14px; }
.marrazi-card label { display:block; margin-bottom:6px; font-weight:600; color:#53565b; }
.marrazi-card input[type=text],
.marrazi-card input[type=email],
.marrazi-card input[type=password] { width:100%; border:1px solid #e0e0e0; border-radius:10px; padding:12px 14px; outline: none; }
.marrazi-card input:focus { border-color:#C8102E; box-shadow:0 0 0 3px rgba(200,16,46,.1); }
.marrazi-card .button, .marrazi-card button.button { background:#C8102E; color:#fff; border:none; border-radius:10px; padding:12px 18px; font-weight:700; text-transform:uppercase; letter-spacing:.5px; }
.marrazi-card .button:hover, .marrazi-card button.button:hover { filter:brightness(.92); }
.woocommerce-LostPassword a { color:#C8102E; }
/* Marrazi account layout – refine equal heights and accents */
.marrazi-account--two-col{align-items:stretch}
.marrazi-account__col{display:flex}
.marrazi-card{display:flex;flex-direction:column;height:100%}
.marrazi-account__title i{color:#C8102E;margin-right:8px}
body.woocommerce-account{background:linear-gradient(180deg,#f7f8fa 0%, #ffffff 100%)}
.marrazi-card .woocommerce-privacy-policy-text{margin-top:8px}
/* Marrazi account – refined equal layout */
.marrazi-account--two-col { display:grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items:stretch; }
.marrazi-account__col { display:flex; }
.marrazi-account__title { display:flex; align-items:center; gap:8px; margin: 0 0 18px; line-height:1; }
.marrazi-form-grid { display:grid; grid-template-columns: 1fr 1fr; gap:14px; }
.marrazi-form-grid .form-row { margin-bottom: 0; }
@media (max-width: 700px){ .marrazi-form-grid { grid-template-columns: 1fr; } }
/* Card fills column height */
.marrazi-card { display:flex; flex-direction:column; height:100%; }
/* Consistent spacing */
.marrazi-card .form-row { margin-bottom: 16px; }
/* Buttons alignment */
.marrazi-account__actions { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:auto; }
.marrazi-account__actions .button { min-width: 160px; }
/* Center the two cards and constrain widths */
.marrazi-account { max-width: 1100px; margin: 40px auto; }
.marrazi-account--two-col { display:flex; gap:32px; justify-content:center; align-items:stretch; flex-wrap:wrap; }
.marrazi-account__col { flex:1 1 480px; min-width:320px; display:flex; }
.marrazi-card { width:100%; }
@media (max-width: 900px){ .marrazi-account--two-col { flex-direction:column; } }
/* Title inside card */
.marrazi-card .marrazi-account__title { margin:0 0 16px; }
.marrazi-register-toggle a{cursor:pointer}

















fieldset[data-attr="brand"] {
    display: none;
}
}