/*
 * Welcart (USC e-Shop) Styles for Stagehand Theme
 * 
 * @package Stagehand
 */

/* Welcart General Styles */
.wc-content {
    padding: 2rem 0;
}

/* Product Pages */
.itemimg {
    text-align: center;
    margin-bottom: 2rem;
}

.itemimg img {
    max-width: 100%;
    height: auto;
    border: 1px solid #eee;
    border-radius: 8px;
}

.itemsubimg {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.itemsubimg a img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.3s ease;
}

.itemsubimg a:hover img {
    border-color: #333;
}

.item-info {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.item_name {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #333;
}

.itemPrice {
    font-size: 1.3rem;
    font-weight: bold;
    color: #c41e3a;
    margin-bottom: 1rem;
}

.skuform {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
}

.quantity input[type="number"] {
    width: 80px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}

.cart-button input[type="submit"] {
    background: #333;
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-left: 10px;
}

.cart-button input[type="submit"]:hover {
    background: #555;
}

/* Cart Navigation */
.cart_navi ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    padding: 0;
}

.cart_navi li {
    padding: 10px 20px;
    background: #f5f5f5;
    border-radius: 4px;
    font-weight: 500;
}

.cart_navi li.current {
    background: #333;
    color: #fff;
}

/* Cart Table */
.cart_table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.cart_table th,
.cart_table td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: left;
}

.cart_table th {
    background: #f5f5f5;
    font-weight: 600;
}

.cart_table .num {
    text-align: center;
}

.cart_table .itemimg img {
    width: 60px;
    height: 60px;
    object-fit: cover;
}

/* Cart Buttons */
.cart_button_area {
    text-align: center;
    margin: 2rem 0;
}

.cart_button_area input[type="submit"],
.cart_button_area input[type="button"] {
    background: #333;
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    margin: 0 5px;
    transition: background-color 0.3s ease;
}

.cart_button_area input[type="submit"]:hover,
.cart_button_area input[type="button"]:hover {
    background: #555;
}

.cart_button_area .btn-primary {
    background: #c41e3a;
}

.cart_button_area .btn-primary:hover {
    background: #a01829;
}

/* Member Pages */
.member-form {
    max-width: 600px;
    margin: 0 auto;
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
}

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

.member-form th,
.member-form td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
    vertical-align: top;
}

.member-form th {
    background: #f5f5f5;
    font-weight: 600;
    width: 30%;
}

.member-form input[type="text"],
.member-form input[type="email"],
.member-form input[type="password"],
.member-form select,
.member-form textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.member-form .required {
    color: #c41e3a;
}

/* Error Messages */
.error_message {
    color: #c41e3a;
    font-size: 14px;
    margin-top: 8px;
    padding: 8px 12px;
    background: #ffeaea;
    border: 1px solid #ffcaca;
    border-radius: 4px;
}

/* Success Messages */
.success_message {
    color: #2d5016;
    font-size: 14px;
    margin: 1rem 0;
    padding: 12px;
    background: #f0f8e7;
    border: 1px solid #d4edda;
    border-radius: 4px;
}

/* Search Box */
#searchbox {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
}

#searchbox .search-form {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

#searchbox input[type="text"] {
    flex: 1;
    min-width: 200px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#searchbox input[type="submit"] {
    background: #333;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cart_navi ul {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .cart_table {
        font-size: 14px;
    }
    
    .cart_table th,
    .cart_table td {
        padding: 8px;
    }
    
    .itemsubimg {
        justify-content: flex-start;
    }
    
    .item-info {
        padding: 1rem;
    }
    
    .member-form {
        padding: 1rem;
    }
    
    .member-form th,
    .member-form td {
        display: block;
        width: 100%;
    }
    
    .member-form th {
        background: transparent;
        font-weight: bold;
        padding-bottom: 4px;
    }
    
    .member-form td {
        padding-top: 0;
        padding-bottom: 1rem;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #333;
    color: #fff;
}

.btn-primary:hover {
    background: #555;
    color: #fff;
}

.btn-secondary {
    background: #6c757d;
    color: #fff;
}

.btn-secondary:hover {
    background: #5a6268;
    color: #fff;
}