/*
Theme Name: user theme by AGH
Theme URI: https://agh-intgroup.com
Author: Mustafa - AGH International Group
Author URI: https://agh-intgroup.com
Description: Premium fashion eCommerce WordPress theme for WooCommerce with luxury color system
Version: 1.0.0
License: GPL v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: agh-theme
Requires at least: 6.0
Requires PHP: 7.4
Requires Plugins: woocommerce, elementor
Tags: e-commerce, woocommerce, fashion, luxury, responsive, elementor
Developer Contact: mustafa@agh-intgroup.com
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
1.0 Reset & Base Styles
2.0 Typography
3.0 Layout & Structure
4.0 Header & Navigation
5.0 Hero Sections
6.0 Product Grids
7.0 WooCommerce Styles
8.0 Footer
9.0 Responsive Styles
--------------------------------------------------------------*/

/* Mobile-only UI */
@media (max-width: 767px) {
  body {
    padding-top: 0;
    padding-bottom: 78px;
  }

  /* Hide desktop header/footer on mobile but keep search overlay usable */
  footer,
  .site-footer {
    display: none !important;
  }
  header,
  header.site-header,
  .site-header,
  .main-header {
    display: none !important;
  }


  .agh-mobile-bottombar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 78px;
    background: #fff;
    border-top: 1px solid #dcdcdc;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
    z-index: 9999;
    display: grid;
    grid-auto-flow: column;
    grid-template-columns: repeat(3, auto);
    justify-content: center;
    column-gap: 70px;
    align-items: center;
    text-align: center;
  }
  .agh-tab {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #1f1f1f;
    font-size: 12px;
    text-decoration: none;
    position: relative;
  }
  .agh-tab .icon {
    width: 22px; height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .agh-tab .icon img {
    width: 22px; height: 22px;
    display: block;
    object-fit: contain;
    filter: invert(1);
  }
  .agh-tab .badge {
    position: absolute;
    top: -4px; right: 20%;
    background: #e53935; color: #fff;
    min-width: 16px; height: 16px;
    font-size: 10px; line-height: 16px;
    border-radius: 999px;
    padding: 0 3px;
  }

  /* Keep search overlay above mobile bars */
  .search-overlay {
    z-index: 10000;
  }

}

@media (min-width: 768px) {
  .agh-mobile-bottombar {
    display: none !important;
  }
}

/* Reviews redesign - single product only */
body.single-product #reviews {
  margin-top: 24px;
  font-family: inherit;
}

/* Header card */
body.single-product .agh-review-hero {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.08);
  padding: 18px;
  margin-bottom: 18px;
}
body.single-product .agh-review-hero-title {
  text-align: center;
  font-weight: 800;
  font-size: 20px;
  margin-bottom: 12px;
}
body.single-product .agh-review-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 16px;
  align-items: center;
}
body.single-product .agh-review-hero-left .agh-stars {
  margin-bottom: 6px;
}
body.single-product .agh-review-hero-left .agh-score-line {
  font-size: 18px;
  font-weight: 700;
}
body.single-product .agh-review-hero-left .agh-based {
  color: #666;
  font-size: 13px;
}
body.single-product .agh-review-hero-breakdown .agh-break-row {
  display: grid;
  grid-template-columns: 40px 1fr 30px;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
body.single-product .agh-review-hero-breakdown .agh-break-bar {
  display: block;
  background: #f2f2f2;
  height: 8px;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}
body.single-product .agh-review-hero-breakdown .agh-break-bar span {
  display: block;
  height: 100%;
  background: #0b0b0b;
}
body.single-product .agh-review-hero-cta .agh-review-cancel {
  background: #111;
  color: #fff;
  padding: 10px 14px;
  border-radius: 24px;
  border: none;
  cursor: pointer;
}
body.single-product .agh-review-hero-cta .agh-hidden { display: none; }

/* Form card */
body.single-product #review_form_wrapper,
body.single-product #respond {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.08);
  padding: 20px;
}
body.single-product #review_form #reply-title {
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 12px;
}
body.single-product #review_form .comment-form-rating-label,
body.single-product #review_form .comment-form-rating label {
  display: block;
  text-align: center;
  margin-bottom: 8px;
  font-weight: 700;
}
body.single-product #review_form .comment-form-rating p.stars a,
body.single-product #review_form .comment-form-rating .stars a {
  font-size: 24px;
  color: #0b0b0b;
}

/* Inputs */
body.single-product #review_form input[type="text"],
body.single-product #review_form input[type="url"],
body.single-product #review_form textarea {
  width: 100%;
  border: 1px solid #dcdcdc;
  border-radius: 24px;
  padding: 12px 14px;
  font-size: 14px;
  outline: none;
}
body.single-product #review_form textarea {
  border-radius: 12px;
  min-height: 160px;
}

/* Media upload */
body.single-product #review_form .comment-form-media label {
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}
body.single-product #review_form .comment-form-media input[type="file"] {
  border: 1px dashed #dcdcdc;
  border-radius: 12px;
  padding: 18px;
  width: 100%;
}

/* Buttons row */
body.single-product #review_form .form-submit {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
body.single-product #review_form .form-submit input[type="submit"] {
  background: #0b0b0b;
  color: #ffffff;
  border: none;
  border-radius: 24px;
  padding: 12px 20px;
  font-weight: 700;
}
body.single-product .agh-cancel-secondary {
  background: #f8f8f8;
  color: #111;
  border: 1px solid #dcdcdc;
  border-radius: 24px;
  padding: 12px 20px;
  font-weight: 700;
}

/* Hide author/email/url fields */
body.single-product #review_form .comment-form-author,
body.single-product #review_form .comment-form-email,
body.single-product #review_form .comment-form-url,
body.single-product #review_form .comment-form-display_name {
  display: none !important;
}

/* Ensure content does not overlap header site-wide */
body .site-main,
body .site-content {
  padding-top: 70px;
}

/* Extra spacing for single product pages */
body.single-product .site-main,
body.single-product .site-content {
  padding-top: 260px;
}

/* Force top spacing to avoid header overlap (high specificity) */
body main.site-main,
body .site-content {
  padding-top: 140px !important;
}
body.single-product main.site-main,
body.single-product .site-content {
  padding-top: 140px !important;
}

/* Responsive */
@media (max-width: 768px) {
  body.single-product .agh-review-hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  body.single-product #review_form .form-submit {
    flex-direction: column;
    align-items: stretch;
  }
}
