/* Product Styles */
.gi-product-content {
  margin-bottom: 30px;
  overflow: visible;
}

.gi-product-inner {
  position: relative;
  border: 1px solid #e9e9e9;
  border-radius: 5px;
  overflow: visible;
  transition: all 0.3s ease;
}

.gi-product-inner:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.gi-pro-image-outer {
  position: relative;
}

.gi-pro-image {
  position: relative;
  overflow: hidden;
  display: block;
}

.gi-pro-image img {
  width: 100%;
  height: auto;
  transition: all 0.5s ease;
}

.gi-pro-image .hover-image {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  transition: all 0.5s ease;
}

.gi-product-inner:hover .hover-image {
  opacity: 1;
}

.gi-pro-content {
  padding: 15px;
}

.gi-pro-stitle {
  font-size: 14px;
  margin-bottom: 5px;
  color: #666;
}

.gi-pro-title {
  font-size: 16px;
  margin-bottom: 10px;
  font-weight: 600;
}

.gi-pro-title a {
  color: #222;
  text-decoration: none;
}

.gi-pro-title a:hover {
  color: #007bff;
}

.gi-info {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
  line-height: 1.5;
}

.gi-pro-rat-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gi-pro-rating {
  display: flex;
  align-items: center;
}

.gi-pro-rating .rating {
  color: #ffc107;
  margin-right: 5px;
}

.gi-pro-rating .qty {
  font-size: 12px;
  color: #999;
}

.gi-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.new-price {
  font-weight: 600;
  color: #222;
}

.old-price {
  text-decoration: line-through;
  color: #999;
  font-size: 13px;
}

.flags {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
}

.flags .sale, .flags .new {
  display: inline-block;
  padding: 2px 8px;
  font-size: 12px;
  border-radius: 3px;
  color: #fff;
}

.flags .sale {
  background-color: #f44336;
}

.flags .new {
  background-color: #4caf50;
}

.gi-pro-actions {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  padding: 10px;
  background-color: rgba(255, 255, 255, 0.9);
  transform: translateY(100%);
  transition: all 0.3s ease;
}

.gi-product-inner:hover .gi-pro-actions {
  transform: translateY(0);
}

.gi-btn-group {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background-color: #fff;
  border: 1px solid #e9e9e9;
  margin: 0 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gi-btn-group:hover {
  background-color: #007bff;
  border-color: #007bff;
  color: #fff;
}

.gi-btn-group i {
  font-size: 16px;
}

/* Shop Styles */
.gi-shop {
  padding: 40px 0;
  overflow: visible;
}

.gi-pro-list-top {
  margin-bottom: 20px;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 5px;
}

.gi-grid-list {
  display: flex;
  align-items: center;
}

.gi-gl-btn {
  display: flex;
}

.gi-gl-btn button {
  width: 35px;
  height: 35px;
  border: 1px solid #e9e9e9;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  cursor: pointer;
}

.gi-gl-btn button.active {
  background-color: #007bff;
  color: #fff;
  border-color: #007bff;
}

.gi-sort-select {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.gi-select-inner select {
  padding: 8px 15px;
  border: 1px solid #e9e9e9;
  border-radius: 5px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' class='bi bi-chevron-down' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
  width: 100%;
  cursor: pointer;
}

.shop-pro-content {
  margin-bottom: 30px;
}

.gi-pro-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
}

.gi-pro-pagination span {
  color: #666;
}

.gi-pro-pagination ul.pagination {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
}

.gi-pro-pagination ul.pagination li {
  margin: 0 5px;
}

.gi-pro-pagination ul.pagination li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border: 1px solid #e9e9e9;
  border-radius: 5px;
  color: #666;
  text-decoration: none;
  transition: all 0.3s ease;
}

.gi-pro-pagination ul.pagination li.active a,
.gi-pro-pagination ul.pagination li a:hover {
  background-color: #007bff;
  color: #fff;
  border-color: #007bff;
}

/* Sidebar Styles */
.gi-pro-sidebar {
  margin-bottom: 30px;
}

.gi-sidebar-wrap {
  border: 1px solid #e9e9e9;
  border-radius: 5px;
  overflow: hidden;
}

.gi-sidebar-block {
  margin-bottom: 20px;
  padding: 15px;
  border-bottom: 1px solid #e9e9e9;
}

.gi-sidebar-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.gi-sidebar-title {
  margin-bottom: 15px;
}

.gi-sidebar-title h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

.gi-sidebar-dropdown {
  list-style: none;
  padding: 0;
  margin: 0;
}

.gi-sidebar-dropdown li {
  margin-bottom: 10px;
}

.gi-sidebar-dropdown li:last-child {
  margin-bottom: 0;
}

.gi-sidebar-dropdown li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #666;
  text-decoration: none;
  transition: all 0.3s ease;
}

.gi-sidebar-dropdown li a:hover {
  color: #007bff;
}

.gi-sidebar-dropdown li a span {
  color: #999;
  font-size: 13px;
}

.gi-price-filter-inner {
  display: flex;
  flex-direction: column;
}

.price-range {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 15px;
}

.price-range input[type="range"] {
  width: 100%;
}

.price-input {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.price-input input {
  width: 70px;
  padding: 5px;
  border: 1px solid #e9e9e9;
  border-radius: 3px;
  text-align: center;
}

.gi-color-sidebar {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}

.gi-color-sidebar li {
  margin-right: 10px;
  margin-bottom: 10px;
}

.gi-color-sidebar li a {
  display: block;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  position: relative;
}

.gi-color-sidebar li a span {
  display: none;
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #222;
  color: #fff;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 12px;
  white-space: nowrap;
  margin-bottom: 5px;
}

.gi-color-sidebar li a:hover span {
  display: block;
}

/* Product Detail Styles */
.gi-single-product {
  padding: 40px 0;
  overflow: visible;
}

.single-pro-inner {
  display: flex;
  flex-wrap: wrap;
}

.single-pro-img {
  width: 100%;
  margin-bottom: 30px;
}

.single-product-scroll {
  position: relative;
}

.single-product-cover {
  margin-bottom: 15px;
}

.single-product-cover .single-slide {
  position: relative;
  overflow: hidden;
}

.single-product-cover .single-slide img {
  width: 100%;
  height: auto;
}

.single-nav-thumb {
  display: flex;
  gap: 10px;
}

.single-nav-thumb .single-slide {
  width: 80px;
  border: 1px solid #e9e9e9;
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
}

.single-nav-thumb .single-slide img {
  width: 100%;
  height: auto;
}

.single-pro-desc {
  width: 100%;
}

.single-pro-content {
  padding: 0 15px;
}

.gi-single-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 15px;
}

.gi-single-rating-wrap {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.gi-single-rating {
  display: flex;
  color: #ffc107;
  margin-right: 10px;
}

.gi-read-review a {
  color: #666;
  text-decoration: none;
}

.gi-single-price-stoke {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e9e9e9;
}

.gi-single-price .final-price {
  font-size: 24px;
  font-weight: 600;
  color: #222;
  display: flex;
  align-items: center;
}

.price-des {
  margin-left: 10px;
  color: #4caf50;
  font-size: 14px;
}

.mrp {
  font-size: 14px;
  color: #999;
  margin-top: 5px;
}

.mrp span {
  text-decoration: line-through;
}

.gi-single-stoke {
  text-align: right;
}

.gi-single-sku {
  display: block;
  font-size: 14px;
  color: #999;
  margin-bottom: 5px;
}

.gi-single-ps-title {
  color: #4caf50;
  font-weight: 600;
}

.gi-single-desc {
  margin-bottom: 20px;
  line-height: 1.6;
  color: #666;
}

.gi-single-list {
  margin-bottom: 20px;
}

.gi-single-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.gi-single-list ul li {
  margin-bottom: 10px;
  color: #666;
}

.gi-single-list ul li strong {
  font-weight: 600;
  color: #222;
  margin-right: 5px;
}

.gi-pro-variation {
  margin-bottom: 20px;
}

.gi-pro-variation-inner {
  margin-bottom: 15px;
}

.gi-pro-variation-inner span {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
}

.gi-pro-variation-content ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}

.gi-pro-variation-content ul li {
  margin-right: 10px;
  margin-bottom: 10px;
  position: relative;
}

.gi-pro-variation-content ul li span {
  display: block;
  padding: 5px 15px;
  border: 1px solid #e9e9e9;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gi-pro-variation-content ul li.active span,
.gi-pro-variation-content ul li:hover span {
  border-color: #007bff;
  background-color: #007bff;
  color: #fff;
}

.gi-single-qty {
  display: flex;
  align-items: center;
  margin-top: 20px;
}

.qty-plus-minus {
  display: flex;
  align-items: center;
  margin-right: 15px;
}

.qty-input {
  width: 60px;
  height: 40px;
  text-align: center;
  border: 1px solid #e9e9e9;
  border-radius: 3px;
}

.gi-single-cart {
  margin-right: 15px;
}

.gi-btn-1 {
  padding: 8px 20px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 3px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gi-btn-1:hover {
  background-color: #0069d9;
}

.gi-single-wishlist,
.gi-single-quickview {
  margin-right: 15px;
}

/* Responsive Styles */
@media (min-width: 768px) {
  .single-pro-img {
    width: 50%;
    padding-right: 15px;
    margin-bottom: 0;
  }
  
  .single-pro-desc {
    width: 50%;
    padding-left: 15px;
  }
}

@media (max-width: 767px) {
  .gi-pro-list-top {
    flex-direction: column;
  }
  
  .gi-grid-list,
  .gi-sort-select {
    width: 100%;
  }
  
  .gi-sort-select {
    margin-top: 15px;
    justify-content: flex-start;
  }
  
  .gi-pro-pagination {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .gi-pro-pagination ul.pagination {
    margin-top: 10px;
  }
}

/* 컴포넌트 타입별 특별 스타일 */
.component-type-product_detail,
.component-type-product_list {
  overflow: visible !important;
  height: auto !important;
  min-height: 500px !important;
}

.gi-shop .container,
.gi-single-product .container {
  width: 100%;
  padding: 0 15px;
  box-sizing: border-box;
}

.gi-shop .row,
.gi-single-product .row {
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
}

.gi-product-box {
  margin-bottom: 30px;
}

/* 상품 액션 버튼 스타일 - 업데이트 */
.product-action {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  background: rgba(0, 123, 255, 0.85);
  padding: 10px;
  opacity: 0;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: all 0.3s ease;
  z-index: 9;
  visibility: hidden;
}

/* 다양한 호버 상황에 대비한 선택자 추가 */
.gi-product-inner:hover .product-action,
.gi-pro-image:hover .product-action,
.gi-pro-image-outer:hover .product-action,
.product-hover-area:hover .product-action {
  opacity: 1;
  transform: scaleY(1);
  visibility: visible;
}

/* 추가 선택자로 확실하게 설정 */
.gi-pro-image {
  overflow: visible !important; /* 중요 */
}

.product-hover-area {
  position: relative;
  overflow: visible !important;
}

.pro-same-action {
  margin: 0 2px;
  display: inline-block;
}

.pro-same-action button {
  font-size: 16px;
  line-height: 36px;
  display: inline-block;
  width: 35px;
  height: 35px;
  margin: 0 3px;
  text-align: center;
  color: #000;
  border: none;
  border-radius: 50px;
  background-color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pro-same-action button:hover {
  color: #fff;
  background-color: #0069d9;
}

/* 미디어 쿼리 - 모바일 페이징 버튼 스타일 */
@media (max-width: 576px) {
  .gi-pro-pagination ul.pagination li {
    margin: 0 2px;
  }
  
  .gi-pro-pagination ul.pagination li a {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }
  
  .gi-pro-pagination ul.pagination li:last-child a {
    width: auto;
    padding: 0 10px;
  }
}

/* 미디어 쿼리 - 태블릿 페이징 버튼 스타일 */
@media (min-width: 577px) and (max-width: 768px) {
  .gi-pro-pagination ul.pagination li {
    margin: 0 3px;
  }
  
  .gi-pro-pagination ul.pagination li a {
    width: 32px;
    height: 32px;
  }
} 