/**
 * NEOTUR - WooCommerce Custom Styles
 * Based on HTML templates design
 */

/* ========================================
   1. ACCOUNT SECTION
   ======================================== */
.woocommerce .woocommerce-breadcrumb {display: none;}
.account-section {
    padding: 80px 0;
    background: #f8f9fa;
    min-height: 600px;
}

.account-forms-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.form-card {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.form-header {
    margin-bottom: 30px;
    text-align: center;
}

.form-header h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 10px;
}

.form-header p {
    color: #666;
    font-size: 14px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.form-group .required {
    color: #e74c3c;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

.password-input {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 5px;
}

.password-toggle:hover {
    color: var(--primary-color);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.remember-me {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.remember-me input {
    margin-right: 8px;
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
}

.forgot-password:hover {
    text-decoration: underline;
}

.btn-block {
    width: 100%;
}

.form-footer {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #eee;
    text-align: center;
}

.social-login p {
    color: #666;
    margin-bottom: 15px;
}

.social-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.social-btn {
    flex: 1;
    padding: 10px 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
    color: #333;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.social-btn:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

.google-btn:hover {
    border-color: #ea4335;
    color: #ea4335;
}

.facebook-btn:hover {
    border-color: #1877f2;
    color: #1877f2;
}

/* Single form layout */
.account-forms.single-form {
    max-width: 500px;
    margin: 0 auto;
}

.account-forms.single-form .login-form-wrapper {
    width: 100%;
}

/* ========================================
   2. CART SECTION
   ======================================== */

.cart-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.cart-content {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
}

.cart-main {
    background: white;
    border-radius: 12px;
    padding: 0;
}

.cart-table-wrapper {
    overflow-x: auto;
    margin-bottom: 30px;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table thead th {
    background: #f8f9fa;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #dee2e6;
}

.cart-table tbody td {
    padding: 20px 15px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.cart-item-product .product-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-item-product img,
.cart-item-product .product-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.product-details h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.product-details h4 a {
    color: #333;
    text-decoration: none;
}

.product-details h4 a:hover {
    color: var(--primary-color);
}

.product-category,
.product-date {
    font-size: 13px;
    color: #666;
    margin: 3px 0;
}

.product-date i {
    color: var(--primary-color);
    margin-right: 5px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    width: fit-content;
}

.quantity-btn {
    background: #f8f9fa;
    border: none;
    width: 36px;
    height: 36px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.quantity-input,
.quantity-controls input {
    width: 60px;
    text-align: center;
    border: none;
    padding: 8px;
    font-weight: 600;
}

.quantity-controls input[type="number"]::-webkit-inner-spin-button,
.quantity-controls input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cart-item-price .price,
.cart-item-subtotal {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
}

.remove-item {
    background: #fee;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #e74c3c;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-item:hover {
    background: #e74c3c;
    color: white;
    transform: rotate(90deg);
}

.cart-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.cart-actions .btn {
    padding: 12px 24px;
}

/* Coupon Section */
.coupon-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
}

.coupon-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

.coupon-input-group {
    display: flex;
    gap: 10px;
}

.coupon-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.coupon-info {
    margin-top: 10px;
    font-size: 13px;
    color: #666;
}

.coupon-info i {
    color: var(--primary-color);
    margin-right: 5px;
}

/* Cart Sidebar */
.cart-sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.cart-totals {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.cart-totals h3 {
    font-size: 20px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.cart-totals-content {
    margin-bottom: 25px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.total-row:last-child {
    border-bottom: none;
}

.total-label {
    color: #666;
    font-size: 14px;
}

.total-value {
    font-weight: 600;
    color: #333;
}

.discount-value {
    color: #28a745;
}

.total-final {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #333;
}

.total-final .total-label {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.total-final .total-value {
    font-size: 24px;
    color: var(--primary-color);
}

.cart-proceed {
    margin-top: 25px;
}

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

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

.wc-proceed-to-checkout .checkout-button:hover {
    background: var(--primary-color-dark);
    transform: translateY(-2px);
}

.secure-checkout {
    text-align: center;
    padding: 15px;
    background: #f0f9ff;
    border-radius: 8px;
    margin-bottom: 20px;
}

.secure-checkout p {
    margin: 5px 0;
    font-size: 13px;
    color: #666;
}

.secure-checkout i {
    color: #28a745;
    margin-right: 5px;
}

.payment-methods {
    text-align: center;
}

.payment-methods p {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
}

.payment-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.payment-icons i {
    font-size: 32px;
    color: #999;
}

/* ========================================
   3. SHOP/ARCHIVE PAGE
   ======================================== */

.woocommerce-products-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 0;
    text-align: center;
    color: white;
    margin-bottom: 60px;
}

.woocommerce-products-header__title {
    font-size: 48px;
    margin-bottom: 20px;
}

.woocommerce-result-count {
    color: #666;
    margin-bottom: 20px;
}

.woocommerce-ordering {
    margin-bottom: 30px;
}

.woocommerce-ordering select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
}

.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.product {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.product:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.woocommerce-loop-product__link {
    text-decoration: none;
    color: inherit;
}

.woocommerce-loop-product__title {
    padding: 15px;
    font-size: 18px;
    margin: 0;
}

.price {
    padding: 0 15px 15px;
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
}

.price del {
    color: #999;
    font-size: 16px;
    margin-right: 10px;
}

.add_to_cart_button {
    display: block;
    width: calc(100% - 30px);
    margin: 0 15px 15px;
    padding: 12px;
    background: var(--primary-color);
    color: white;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
}

.add_to_cart_button:hover {
    background: var(--primary-color-dark);
}

/* ========================================
   4. SINGLE PRODUCT GALLERY
   ======================================== */

.tour-gallery {
    margin-bottom: 30px;
}

.gallery-main-wrapper {
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
    border-radius: 12px;
}

.main-image-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-image {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
}

/* Navigation Arrows */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.gallery-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.gallery-nav i {
    font-size: 20px;
    color: #333;
}

.gallery-prev {
    left: 20px;
}

.gallery-next {
    right: 20px;
}

/* Thumbnails */
.gallery-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    overflow-x: hidden;
    padding: 10px 0;
}

.gallery-thumbs::-webkit-scrollbar {
    height: 8px;
}

.gallery-thumbs::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.gallery-thumbs::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.gallery-thumbs::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.gallery-thumb {
    flex: 0 0 80px;
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    opacity: 0.7;
}

.gallery-thumb:hover {
    opacity: 1;
    transform: scale(1.05);
}

.gallery-thumb.active {
    border-color: var(--primary-color);
    opacity: 1;
    box-shadow: 0 2px 10px rgba(0,123,255,0.3);
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .gallery-nav {
        width: 40px;
        height: 40px;
    }
    
    .gallery-nav i {
        font-size: 16px;
    }
    
    .gallery-prev {
        left: 10px;
    }
    
    .gallery-next {
        right: 10px;
    }
    
    .main-image-container {

    }
    
    .gallery-thumbs {
        gap: 5px;
    }
    
    .gallery-thumb {
        flex: 0 0 60px;
        width: 60px;
        height: 60px;
    }
}

/* Lightbox effect on hover */
.gallery-main-wrapper:hover .gallery-nav {
    opacity: 1;
}

.gallery-nav {
    opacity: 0.7;
}

/* Zoom cursor on main image */
.main-image {
    cursor: zoom-in;
}

/* ========================================
   5. RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 991px) {
    .cart-content {
        grid-template-columns: 1fr;
    }
    
    .cart-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .account-forms-container {
        grid-template-columns: 1fr;
    }
    
    .cart-table thead {
        display: none;
    }
    
    .cart-table tbody td {
        display: block;
        text-align: right;
        padding: 10px 15px;
        position: relative;
        padding-left: 50%;
    }
    
    .cart-table tbody td:before {
        content: attr(data-title);
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        font-weight: 600;
        text-align: left;
    }
    
    .cart-item-product .product-info {
        flex-direction: column;
        text-align: left;
    }
    
    .cart-actions {
        grid-template-columns: 1fr;
    }
    
    .products {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .form-card {
        padding: 25px 20px;
    }
    
    .cart-main {
        padding: 0;
    }
    
    .products {
        grid-template-columns: 1fr;
    }
}